mirror of
https://github.com/corda/corda.git
synced 2024-12-27 00:21:12 +00:00
f9e07c0158
* Replace SandboxedRunnable with Function interface. Remove DJVM from "Key Concepts" release notes. Update installation of shell tool. Fix broken sandbox package names. Make sure we only resolve each class once when loading. Also remove some unused default parameter values. Don't discard "bootstrap" sandbox.* classes because SourceClassLoader may need them. * Restore DJVM to the "Key Concepts" docs. * Remove all mention of "whitelisting" from the DJVM CLI.
76 lines
1.7 KiB
Groovy
76 lines
1.7 KiB
Groovy
plugins {
|
|
id 'com.github.johnrengelman.shadow'
|
|
}
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
apply plugin: 'com.jfrog.artifactory'
|
|
apply plugin: 'idea'
|
|
|
|
description 'Corda deterministic JVM sandbox'
|
|
|
|
ext {
|
|
// Shaded version of ASM to avoid conflict with root project.
|
|
asm_version = '6.2.1'
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
url "$artifactory_contextUrl/corda-dev"
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
testCompile.extendsFrom shadow
|
|
jdkRt.resolutionStrategy {
|
|
// Always check the repository for a newer SNAPSHOT.
|
|
cacheChangingModulesFor 0, 'seconds'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
shadow "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
shadow "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
shadow "org.slf4j:slf4j-api:$slf4j_version"
|
|
|
|
// ASM: byte code manipulation library
|
|
compile "org.ow2.asm:asm:$asm_version"
|
|
compile "org.ow2.asm:asm-commons:$asm_version"
|
|
|
|
// ClassGraph: classpath scanning
|
|
shadow "io.github.classgraph:classgraph:$class_graph_version"
|
|
|
|
// Test utilities
|
|
testCompile "junit:junit:$junit_version"
|
|
testCompile "org.assertj:assertj-core:$assertj_version"
|
|
testCompile "org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version"
|
|
jdkRt "net.corda:deterministic-rt:latest.integration"
|
|
}
|
|
|
|
jar.enabled = false
|
|
|
|
shadowJar {
|
|
baseName 'corda-djvm'
|
|
classifier ''
|
|
relocate 'org.objectweb.asm', 'djvm.org.objectweb.asm'
|
|
}
|
|
assemble.dependsOn shadowJar
|
|
|
|
tasks.withType(Test) {
|
|
systemProperty 'deterministic-rt.path', configurations.jdkRt.asPath
|
|
}
|
|
|
|
artifacts {
|
|
publish shadowJar
|
|
}
|
|
|
|
publish {
|
|
dependenciesFrom configurations.shadow
|
|
name shadowJar.baseName
|
|
}
|
|
|
|
idea {
|
|
module {
|
|
downloadJavadoc = true
|
|
downloadSources = true
|
|
}
|
|
}
|