35 lines
765 B
Groovy
35 lines
765 B
Groovy
// Set properties before any plugins get loaded
|
|
ext {
|
|
minJavaVersionForTests = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
apply from: "$rootDir/gradle/instrumentation.gradle"
|
|
|
|
// building against 2.3 and testing against 2.4 because JettyHandler is available since 2.4 only
|
|
muzzle {
|
|
pass {
|
|
group = "com.sparkjava"
|
|
module = 'spark-core'
|
|
versions = "[2.3,)"
|
|
assertInverse = true
|
|
}
|
|
}
|
|
|
|
compileTestJava {
|
|
sourceCompatibility = "1.8"
|
|
targetCompatibility = "1.8"
|
|
}
|
|
|
|
compileJava {
|
|
sourceCompatibility = "1.7"
|
|
targetCompatibility = "1.7"
|
|
}
|
|
|
|
dependencies {
|
|
library group: 'com.sparkjava', name: 'spark-core', version: '2.3'
|
|
|
|
testImplementation project(':instrumentation:jetty-8.0')
|
|
|
|
testLibrary group: 'com.sparkjava', name: 'spark-core', version: '2.4'
|
|
}
|