2018-08-24 14:51:40 +00:00
|
|
|
plugins {
|
|
|
|
id 'com.github.johnrengelman.shadow' version '2.0.4'
|
2018-08-22 15:01:39 +00:00
|
|
|
}
|
2018-09-05 09:12:48 +00:00
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
|
|
|
|
|
|
|
description 'Corda deterministic JVM sandbox'
|
2018-08-22 15:01:39 +00:00
|
|
|
|
2018-08-24 14:51:40 +00:00
|
|
|
ext {
|
|
|
|
// Shaded version of ASM to avoid conflict with root project.
|
|
|
|
asm_version = '6.1.1'
|
2018-08-22 15:01:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
|
|
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
2018-09-05 13:05:52 +00:00
|
|
|
compile "org.slf4j:slf4j-api:$slf4j_version"
|
2018-08-22 15:01:39 +00:00
|
|
|
|
|
|
|
// ASM: byte code manipulation library
|
|
|
|
compile "org.ow2.asm:asm:$asm_version"
|
|
|
|
compile "org.ow2.asm:asm-tree:$asm_version"
|
|
|
|
compile "org.ow2.asm:asm-commons:$asm_version"
|
|
|
|
|
|
|
|
// Classpath scanner
|
|
|
|
compile "io.github.lukehutch:fast-classpath-scanner:$fast_classpath_scanner_version"
|
|
|
|
|
|
|
|
// Test utilities
|
|
|
|
testCompile "junit:junit:$junit_version"
|
|
|
|
testCompile "org.assertj:assertj-core:$assertj_version"
|
2018-09-05 13:05:52 +00:00
|
|
|
testCompile "org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version"
|
2018-08-22 15:01:39 +00:00
|
|
|
}
|
|
|
|
|
2018-08-24 14:51:40 +00:00
|
|
|
jar.enabled = false
|
2018-08-22 15:01:39 +00:00
|
|
|
|
|
|
|
shadowJar {
|
2018-09-05 09:12:48 +00:00
|
|
|
baseName 'corda-djvm'
|
|
|
|
classifier ''
|
2018-08-22 15:01:39 +00:00
|
|
|
dependencies {
|
|
|
|
exclude(dependency('org.jetbrains.*:.*:.*'))
|
|
|
|
exclude(dependency('org.slf4j:.*:.*'))
|
|
|
|
exclude(dependency('io.github.lukehutch:.*:.*'))
|
|
|
|
}
|
|
|
|
relocate 'org.objectweb.asm', 'djvm.org.objectweb.asm'
|
|
|
|
}
|
2018-08-24 14:51:40 +00:00
|
|
|
assemble.dependsOn shadowJar
|
2018-09-05 09:12:48 +00:00
|
|
|
|
|
|
|
artifacts {
|
|
|
|
publish shadowJar
|
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
|
|
|
disableDefaultJar true
|
|
|
|
name shadowJar.baseName
|
|
|
|
}
|