2019-08-01 08:40:52 +00:00
|
|
|
buildscript {
|
|
|
|
// For sharing constants between builds
|
|
|
|
Properties constants = new Properties()
|
|
|
|
file("$projectDir/../../constants.properties").withInputStream { constants.load(it) }
|
|
|
|
|
|
|
|
ext.kotlin_version = constants.getProperty("kotlinVersion")
|
|
|
|
ext.javaassist_version = "3.12.1.GA"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'idea'
|
2019-10-04 13:28:42 +00:00
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
2019-08-01 08:40:52 +00:00
|
|
|
|
|
|
|
description 'A javaagent to allow hooking into Kryo checkpoints'
|
|
|
|
|
|
|
|
dependencies {
|
2019-09-11 15:34:51 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2019-08-01 08:40:52 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
|
|
compile "javassist:javassist:$javaassist_version"
|
2020-03-03 15:55:17 +00:00
|
|
|
compile "com.esotericsoftware:kryo:$kryo_version"
|
2019-09-18 09:26:26 +00:00
|
|
|
compile "co.paralleluniverse:quasar-core:$quasar_version"
|
2019-08-01 08:40:52 +00:00
|
|
|
|
|
|
|
compile (project(':core')) {
|
|
|
|
transitive = false
|
|
|
|
}
|
|
|
|
|
|
|
|
// Unit testing helpers.
|
|
|
|
compile "org.junit.jupiter:junit-jupiter-api:${junit_jupiter_version}"
|
|
|
|
compile "junit:junit:$junit_version"
|
|
|
|
|
|
|
|
// SLF4J: commons-logging bindings for a SLF4J back end
|
|
|
|
compile "org.slf4j:jcl-over-slf4j:$slf4j_version"
|
|
|
|
compile "org.slf4j:slf4j-api:$slf4j_version"
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
2019-10-04 13:28:42 +00:00
|
|
|
archiveBaseName = "${project.name}"
|
2019-08-01 08:40:52 +00:00
|
|
|
manifest {
|
|
|
|
attributes(
|
|
|
|
'Premain-Class': 'net.corda.tools.CheckpointAgent',
|
|
|
|
'Can-Redefine-Classes': 'true',
|
|
|
|
'Can-Retransform-Classes': 'true',
|
|
|
|
'Can-Set-Native-Method-Prefix': 'true',
|
|
|
|
'Implementation-Title': "CheckpointAgent",
|
|
|
|
'Implementation-Version': rootProject.version
|
|
|
|
)
|
|
|
|
}
|
|
|
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
|
|
}
|
2019-10-04 13:28:42 +00:00
|
|
|
|
|
|
|
publish {
|
|
|
|
name 'corda-tools-checkpoint-agent'
|
|
|
|
}
|