|
| 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 | +} |
0 commit comments