-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed multiproject build so that the resulting jar does not contain a…
…ll the dependencies
- Loading branch information
Showing
4 changed files
with
76 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
allprojects { | ||
apply plugin: 'java-gradle-plugin' | ||
apply plugin: 'groovy' | ||
|
||
def versionNumber = "0.14.0" | ||
|
||
if (project.hasProperty("versionNumber")) { | ||
versionNumber = project.versionNumber | ||
} | ||
if (project.hasProperty("versionSuffix")) { | ||
versionNumber += project.versionSuffix | ||
} | ||
if (project.hasProperty("buildNumber")) { | ||
versionNumber += "." + project.buildNumber | ||
} | ||
|
||
|
||
group = 'org.openbakery' | ||
version = versionNumber | ||
|
||
sourceCompatibility = "1.6" | ||
targetCompatibility = "1.6" | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compile localGroovy() | ||
compile 'commons-io:commons-io:2.2' | ||
compile 'commons-configuration:commons-configuration:1.10' | ||
compile 'commons-collections:commons-collections:3.2.2' | ||
compile 'commons-codec:commons-codec:1.10' | ||
compile 'ch.qos.logback:logback-core:1.0.13' | ||
|
||
testCompile 'junit:junit:4.12' | ||
testCompile 'org.hamcrest:hamcrest-all:1.3' | ||
testCompile 'org.codehaus.groovy:groovy-all:2.4.4' | ||
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4' | ||
testCompile 'org.objenesis:objenesis:1.2' | ||
testCompile 'cglib:cglib-nodep:2.2.2' | ||
testCompile('org.spockframework:spock-core:1.0-groovy-2.4') { | ||
exclude module: 'groovy-all' | ||
} | ||
|
||
} | ||
} | ||
|
||
|
||
|
||
project(':plugin') { | ||
dependencies { | ||
compile project(':libxcode') | ||
testCompile project(':libtest') | ||
} | ||
} | ||
|
||
|
||
project(':libxcode') { | ||
dependencies { | ||
testCompile project(':libtest') | ||
} | ||
} | ||
|
||
project(':libtest') { | ||
dependencies { | ||
compile project(':libxcode') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,2 @@ | ||
apply plugin: 'java-gradle-plugin' | ||
apply plugin: 'groovy' | ||
|
||
configurations { | ||
includeInJar | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compile localGroovy() | ||
includeInJar project(':libxcode') | ||
compile 'commons-io:commons-io:2.2' | ||
compile 'commons-configuration:commons-configuration:1.10' | ||
compile 'commons-collections:commons-collections:3.2.2' | ||
configurations.compile.extendsFrom(configurations.includeInJar) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +0,0 @@ | ||
apply plugin: 'java-gradle-plugin' | ||
apply plugin: 'groovy' | ||
|
||
configurations { | ||
includeInTest | ||
} | ||
|
||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compile localGroovy() | ||
includeInTest project(':libtest') | ||
|
||
compile 'commons-io:commons-io:2.2' | ||
compile 'commons-configuration:commons-configuration:1.10' | ||
compile 'commons-collections:commons-collections:3.2.2' | ||
compile 'commons-codec:commons-codec:1.10' | ||
compile 'ch.qos.logback:logback-core:1.0.13' | ||
compile 'org.slf4j:slf4j-api:1.7.21' | ||
|
||
testCompile 'junit:junit:4.12' | ||
testCompile 'org.hamcrest:hamcrest-all:1.3' | ||
testCompile 'org.codehaus.groovy:groovy-all:2.4.4' | ||
testCompile 'org.objenesis:objenesis:1.2' | ||
testCompile 'cglib:cglib-nodep:2.2.2' | ||
testCompile('org.spockframework:spock-core:1.0-groovy-2.4') { | ||
exclude module: 'groovy-all' | ||
} | ||
configurations.testCompile.extendsFrom(configurations.includeInTest) | ||
|
||
} | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters