mirror of
https://github.com/corda/corda.git
synced 2024-12-19 13:08:04 +00:00
9148d0529a
* Export locations of both deterministic rt.jar and its JDK_HOME as properties. * Refactor deterministic Java/Kotlin configuration into a script plugin.
32 lines
564 B
Groovy
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
|