Skip to content

Commit a0e3617

Browse files
committed
Added jackson libraries with a custom failing test
added same test to gson to show it can handle the case
1 parent b216e41 commit a0e3617

File tree

12 files changed

+312
-2
lines changed

12 files changed

+312
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.gradle
22
build/
3+
*.iml
4+
\.idea/
35

46
# Ignore Gradle GUI config
57
gradle-app.setting

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ env:
1313
- TEST_DIR=joda-time-joda-time
1414
- TEST_DIR=org.joda-joda-primitives
1515
- TEST_DIR=org.apache.commons-commons-lang3
16+
- TEST_DIR=com.fasterxml.jackson.core
1617

1718
# Uncomment to add a library that should fail to build, along with documentation on why.
18-
# matrix:
19-
# allow_failures:
19+
matrix:
20+
allow_failures:
2021
# # Blocked on (github issue url)
2122
# - env: TEST_DIR=com.example-library
23+
# # Blocked on: https://github.com/j2objc-contrib/j2objc-common-libs-e2e-test/issues/48
24+
- env: TEST_DIR=com.fasterxml.jackson.core
2225

2326
branches:
2427
only:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../common/build.gradle
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2015 the authors of j2objc-common-libs-e2e-test
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
dependencies {
18+
compile project(':com.fasterxml.jackson.core-jackson-core')
19+
j2objcTranslation 'com.fasterxml.jackson.core:jackson-annotations:2.5.3:sources'
20+
}
21+
22+
j2objcConfig {
23+
// Almost always there are no tests provided in an external source jar.
24+
testMinExpectedTests 0
25+
finalConfigure()
26+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2015 the authors of j2objc-common-libs-e2e-test
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
dependencies {
18+
j2objcTranslation 'com.fasterxml.jackson.core:jackson-core:2.5.3:sources'
19+
}
20+
21+
j2objcConfig {
22+
// Almost always there are no tests provided in an external source jar.
23+
24+
autoConfigureDeps true
25+
forceFilenameCollisionCheck false
26+
translateArgs = ['--segmented-headers', '--extract-unsequenced', '--build-closure']
27+
28+
testMinExpectedTests 0
29+
finalConfigure()
30+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Copyright (c) 2015 the authors of j2objc-common-libs-e2e-test
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
sourceCompatibility = 1.7
17+
targetCompatibility = 1.7
18+
19+
dependencies {
20+
compile project(':com.fasterxml.jackson.core-jackson-core')
21+
compile project(':com.fasterxml.jackson.core-jackson-annotations')
22+
j2objcTranslation 'com.fasterxml.jackson.core:jackson-databind:2.5.3:sources'
23+
testCompile 'junit:junit:4.11'
24+
}
25+
26+
test {
27+
testLogging {
28+
// Provide full exception info on failure, instead
29+
// of just pointing to an HTML file.
30+
exceptionFormat = 'full'
31+
}
32+
}
33+
34+
35+
j2objcConfig {
36+
// Almost always there are no tests provided in an external source jar.
37+
// testMinExpectedTests 0
38+
autoConfigureDeps true
39+
forceFilenameCollisionCheck false
40+
translateArgs = ['--segmented-headers', '--extract-unsequenced', '--build-closure']
41+
translatePattern {
42+
exclude '**/fasterxml/jackson/databind/ext/DOMSerializer.java'
43+
}
44+
testPattern {
45+
include '**/*Test.java'
46+
}
47+
finalConfigure()
48+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../j2objc-gradle/gradlew
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../common/local.properties
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include ':com.fasterxml.jackson.core-jackson-core',':com.fasterxml.jackson.core-jackson-annotations',':com.fasterxml.jackson.core-jackson-databind'

libraryBuilds/com.google.code.gson-gson/com.google.code.gson-gson/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
dependencies {
1818
j2objcTranslation 'com.google.code.gson:gson:2.3.1:sources'
19+
testCompile 'junit:junit:4.11'
1920
}
2021

2122
j2objcConfig {

0 commit comments

Comments
 (0)