Skip to content

Commit ca9b20a

Browse files
author
Martin
committed
moved common definitions from the module build files to the parent build file
1 parent e812275 commit ca9b20a

File tree

3 files changed

+9
-20
lines changed

3 files changed

+9
-20
lines changed

build.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,17 @@ ext {
3434
}
3535

3636
subprojects {
37+
38+
repositories {
39+
mavenCentral()
40+
}
41+
3742
apply plugin: 'java'
3843

44+
dependencies {
45+
testCompile group: 'junit', name: 'junit', version: '4.12'
46+
}
47+
3948
if (!isCi) {
4049
// we don't need the bintray features for the ci build
4150
apply from: rootProject.file('gradle/bintray.gradle')
@@ -57,7 +66,4 @@ subprojects {
5766
*/
5867
}
5968

60-
repositories {
61-
mavenCentral()
62-
}
6369

enum-mapper-lib/build.gradle

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
group 'com.tmtron.enums'
2-
version '1.0-SNAPSHOT'
3-
41
// we also want o use the library for Android projects
52
sourceCompatibility = 1.7
63

7-
repositories {
8-
mavenCentral()
9-
}
10-
114
dependencies {
125
/* e.g. javax.annotation.Generated
136
* Note: do NOT upgrade to 1.3 (java-8) but keep 1.2 (java6)
@@ -18,6 +11,4 @@ dependencies {
1811
* see also: http://stackoverflow.com/questions/4963300/which-notnull-java-annotation-should-i-use
1912
*/
2013
compileOnly 'com.google.code.findbugs:jsr305:2.0.1'
21-
22-
testCompile group: 'junit', name: 'junit', version: '4.12'
2314
}

enum-mapper-processor/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
1-
group 'com.tmtron.enums'
2-
version '1.0-SNAPSHOT'
3-
41
sourceCompatibility = 1.8
52

6-
repositories {
7-
mavenCentral()
8-
}
9-
103
dependencies {
114
compile project(':enum-mapper-lib')
125

136
compile 'com.squareup:javapoet:1.8.0'
147
compile 'com.google.auto.service:auto-service:1.0-rc3'
158
compile 'com.google.auto:auto-common:0.8'
169

17-
testCompile group: 'junit', name: 'junit', version: '4.12'
1810
testCompile 'com.google.testing.compile:compile-testing:0.10'
1911
testCompile 'com.google.truth:truth:0.32'
2012
/* we need the JVM tools, otherwise the tests may fail with:

0 commit comments

Comments
 (0)