Skip to content

Commit 659ebdb

Browse files
nitzanjAmir Tocker
authored andcommitted
Consolidate java gradle config, setup test logging.
1 parent ff0e395 commit 659ebdb

File tree

8 files changed

+29
-66
lines changed

8 files changed

+29
-66
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ cache:
1919

2020
jdk:
2121
- oraclejdk8
22-
- oraclejdk7
23-
- openjdk7
22+
23+
# Android build tools 25 require java 8 - until project separation java 7 tests are disabled
24+
# - oraclejdk7
25+
# - openjdk7
26+
2427
# Temporarily disabled, test fail because Hamcrest needs java 1.7
2528
# - openjdk6
2629

cloudinary-core/build.gradle

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
apply plugin: 'java'
2-
3-
sourceCompatibility = 1.7
4-
targetCompatibility = 1.7
5-
tasks.withType(JavaCompile) {
6-
options.encoding = 'UTF-8'
7-
}
1+
apply from: "../java_shared.gradle"
82

93
dependencies {
104
testCompile group: 'org.hamcrest', name: 'java-hamcrest', version:'2.0.0.0'

cloudinary-http42/build.gradle

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
apply plugin: 'java'
2-
3-
sourceCompatibility = 1.7
4-
targetCompatibility = 1.7
5-
tasks.withType(JavaCompile) {
6-
options.encoding = 'UTF-8'
7-
}
1+
apply from: "../java_shared.gradle"
82

93
dependencies {
104
compile project(':cloudinary-core')
@@ -18,12 +12,6 @@ dependencies {
1812
testCompile group: 'junit', name: 'junit', version: '4.12'
1913
}
2014

21-
task ciTest( type: Test ) {
22-
useJUnit {
23-
excludeCategories 'com.cloudinary.test.TimeoutTest'
24-
}
25-
}
26-
2715
uploadArchives {
2816
repositories {
2917
mavenDeployer {

cloudinary-http43/build.gradle

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
apply plugin: 'java'
2-
3-
sourceCompatibility = 1.7
4-
targetCompatibility = 1.7
5-
tasks.withType(JavaCompile) {
6-
options.encoding = 'UTF-8'
7-
}
1+
apply from: "../java_shared.gradle"
82

93
dependencies {
104
compile project(':cloudinary-core')
@@ -17,12 +11,6 @@ dependencies {
1711
testCompile group: 'junit', name: 'junit', version: '4.12'
1812
}
1913

20-
task ciTest( type: Test ) {
21-
useJUnit {
22-
excludeCategories 'com.cloudinary.test.TimeoutTest'
23-
}
24-
}
25-
2614
uploadArchives {
2715
repositories {
2816
mavenDeployer {

cloudinary-http44/build.gradle

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
apply plugin: 'java'
2-
3-
sourceCompatibility = 1.7
4-
targetCompatibility = 1.7
5-
tasks.withType(JavaCompile) {
6-
options.encoding = 'UTF-8'
7-
}
1+
apply from: "../java_shared.gradle"
82

93
dependencies {
104
compile project(':cloudinary-core')
@@ -17,12 +11,6 @@ dependencies {
1711
testCompile group: 'junit', name: 'junit', version: '4.12'
1812
}
1913

20-
task ciTest( type: Test ) {
21-
useJUnit {
22-
excludeCategories 'com.cloudinary.test.TimeoutTest'
23-
}
24-
}
25-
2614
uploadArchives {
2715
repositories {
2816
mavenDeployer {

cloudinary-taglib/build.gradle

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
apply plugin: 'java'
2-
3-
sourceCompatibility = 1.7
4-
targetCompatibility = 1.7
5-
6-
tasks.withType(JavaCompile) {
7-
options.encoding = 'UTF-8'
8-
}
9-
10-
configurations.all {
11-
}
1+
apply from: "../java_shared.gradle"
122

133
dependencies {
144
compile project(':cloudinary-core')

cloudinary-test-common/build.gradle

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
apply plugin: 'java'
2-
3-
sourceCompatibility = 1.7
4-
targetCompatibility = 1.7
5-
tasks.withType(JavaCompile) {
6-
options.encoding = 'UTF-8'
7-
}
1+
apply from: "../java_shared.gradle"
82

93
dependencies {
104
compile project(':cloudinary-core')

java_shared.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apply plugin: 'java'
2+
3+
sourceCompatibility = 1.7
4+
targetCompatibility = 1.7
5+
tasks.withType(JavaCompile) {
6+
options.encoding = 'UTF-8'
7+
}
8+
9+
test {
10+
testLogging.showStandardStreams = true
11+
testLogging.exceptionFormat = 'full'
12+
}
13+
14+
task ciTest( type: Test ) {
15+
useJUnit {
16+
excludeCategories 'com.cloudinary.test.TimeoutTest'
17+
}
18+
}

0 commit comments

Comments
 (0)