2018-07-04 14:42:43 +00:00
|
|
|
ext {
|
|
|
|
javaassist_version = "3.12.1.GA"
|
2017-10-11 08:54:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
|
|
|
|
description 'A javaagent to allow hooking into Kryo'
|
|
|
|
|
|
|
|
dependencies {
|
2018-04-24 13:03:41 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2017-10-11 08:54:19 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
|
|
compile "javassist:javassist:$javaassist_version"
|
|
|
|
compile "com.esotericsoftware:kryo:4.0.0"
|
2018-02-14 17:32:00 +00:00
|
|
|
compile "$quasar_group:quasar-core:$quasar_version:jdk8"
|
2017-10-11 08:54:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
archiveName = "${project.name}.jar"
|
|
|
|
manifest {
|
|
|
|
attributes(
|
|
|
|
'Premain-Class': 'net.corda.kryohook.KryoHookAgent',
|
|
|
|
'Can-Redefine-Classes': 'true',
|
|
|
|
'Can-Retransform-Classes': 'true',
|
|
|
|
'Can-Set-Native-Method-Prefix': 'true',
|
|
|
|
'Implementation-Title': "KryoHook",
|
|
|
|
'Implementation-Version': rootProject.version
|
|
|
|
)
|
|
|
|
}
|
|
|
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
|
|
}
|