corda/jdk8u-deterministic/build.gradle
Chris Rankin 9148d0529a
ENT-1463, ENT-1903: Refactor Gradle for deterministic modules (#3387)
* Export locations of both deterministic rt.jar and its JDK_HOME as properties.
* Refactor deterministic Java/Kotlin configuration into a script plugin.
2018-06-18 14:14:48 +01:00

32 lines
564 B
Groovy

repositories {
maven {
url "$artifactory_contextUrl/corda-releases"
}
maven {
url "$artifactory_contextUrl/corda-dev"
}
}
ext {
jdk_home = "$projectDir/jdk"
rt_jar = "$jdk_home/jre/lib/rt.jar".toString()
}
configurations {
jdk
}
dependencies {
jdk "net.corda:deterministic-rt:$deterministic_rt_version:api"
}
task copyJdk(type: Copy) {
from(configurations.jdk.asPath) {
rename 'deterministic-rt-(.*).jar', 'rt.jar'
}
into "$jdk_home/jre/lib"
}
assemble.dependsOn copyJdk
jar.enabled = false