Gradle test config improvements

This commit is contained in:
str4d
2014-06-25 02:50:24 +00:00
parent f6108b51a2
commit aa3ac75470
7 changed files with 33 additions and 11 deletions

View File

@ -17,7 +17,6 @@ dependencies {
compile project(':core')
providedCompile project(':apps:ministreaming')
providedCompile project(':apps:jetty')
testCompile 'junit:junit:4.+'
}
war {

View File

@ -15,5 +15,16 @@ sourceSets {
dependencies {
compile project(':core')
testCompile 'junit:junit:4.+'
}
configurations {
tests
}
task testJar(type: Jar) {
baseName = 'mstreaming-test'
dependsOn classes
from sourceSets.test.output
}
artifacts {
tests testJar
}

View File

@ -14,5 +14,4 @@ sourceSets {
dependencies {
compile project(':core')
compile project(':apps:ministreaming')
testCompile 'junit:junit:4.+'
}

View File

@ -14,5 +14,5 @@ sourceSets {
dependencies {
compile project(':core')
compile project(':apps:ministreaming')
testCompile 'junit:junit:4.+'
testCompile project(path: ':apps:ministreaming', configuration: 'tests')
}

View File

@ -1,14 +1,19 @@
subprojects {
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.+'
}
sourceCompatibility = 1.5
jar {
manifest {
attributes 'Implementation-Version': '0.9.13-8'
}
}
repositories {
mavenCentral()
}
}

View File

@ -13,6 +13,14 @@ sourceSets {
}
}
dependencies {
testCompile 'junit:junit:4.+'
configurations {
tests
}
task testJar(type: Jar) {
baseName = 'i2p-test'
dependsOn classes
from sourceSets.test.output
}
artifacts {
tests testJar
}

View File

@ -13,5 +13,5 @@ sourceSets {
dependencies {
compile project(':core')
testCompile 'junit:junit:4.+'
testCompile project(path: ':core', configuration: 'tests')
}