2017-12-12 13:34:26 +00:00
|
|
|
buildscript {
|
|
|
|
// For sharing constants between builds
|
|
|
|
Properties constants = new Properties()
|
|
|
|
file("../../constants.properties").withInputStream { constants.load(it) }
|
|
|
|
|
|
|
|
ext.kotlin_version = constants.getProperty("kotlinVersion")
|
|
|
|
ext.bouncycastle_version = constants.getProperty("bouncycastleVersion")
|
|
|
|
ext.resteasy_version = '3.1.4.Final'
|
2017-12-22 14:42:42 +00:00
|
|
|
ext.httpclient_version = "4.5.3"
|
2017-12-12 13:34:26 +00:00
|
|
|
ext.jackson_version = '2.9.2'
|
|
|
|
ext.slf4j_version = '1.7.25'
|
|
|
|
ext.log4j_version = '2.9.1'
|
|
|
|
ext.junit_version = '4.12'
|
|
|
|
|
2017-12-22 14:42:42 +00:00
|
|
|
// Port numbers to launch the different components on.
|
|
|
|
ext.hostHttpPort = 8080
|
|
|
|
ext.isvHttpPort = 8084
|
|
|
|
|
|
|
|
ext.testHttpPort = 9080
|
|
|
|
ext.iasTestHttpsPort = 9443
|
|
|
|
|
2017-12-12 13:34:26 +00:00
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-noarg:$kotlin_version"
|
2017-12-22 14:42:42 +00:00
|
|
|
classpath 'org.akhikhl.gretty:gretty:2.0.0'
|
2017-12-12 13:34:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
tasks.withType(KotlinCompile).all {
|
|
|
|
kotlinOptions {
|
|
|
|
languageVersion = "1.1"
|
|
|
|
apiVersion = "1.1"
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
javaParameters = true // Useful for reflection.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(Test) {
|
|
|
|
// Prevent the project from creating temporary files outside of the build directory.
|
|
|
|
systemProperties['java.io.tmpdir'] = buildDir
|
2017-12-22 14:42:42 +00:00
|
|
|
|
|
|
|
// Set logging directory for all tests.
|
|
|
|
systemProperties["attestation.home"] = "$buildDir/logs"
|
2017-12-12 13:34:26 +00:00
|
|
|
}
|
|
|
|
|
2018-01-13 11:00:01 +00:00
|
|
|
group 'com.r3.corda'
|
2017-12-12 13:34:26 +00:00
|
|
|
version '1.0-SNAPSHOT'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
compile {
|
|
|
|
// We want to use SLF4J's version of these bindings: jcl-over-slf4j
|
|
|
|
// Remove any transitive dependency on Apache's version.
|
|
|
|
exclude group: 'commons-logging', module: 'commons-logging'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task wrapper(type: Wrapper) {
|
|
|
|
gradleVersion = "4.3.1"
|
|
|
|
}
|