diff --git a/ripple-core-0.0.1/build.gradle b/ripple-core-0.0.1/build.gradle index 31be8312e1..7ee498ed2c 100644 --- a/ripple-core-0.0.1/build.gradle +++ b/ripple-core-0.0.1/build.gradle @@ -1,2 +1,52 @@ -configurations.maybeCreate("default") -artifacts.add("default", file('ripple-core-0.0.1-SNAPSHOT.jar')) \ No newline at end of file +apply plugin: 'java' +apply plugin: 'kotlin' + +description = 'ripple-core' + +version = '0.0.1-SNAPSHOT' + +sourceCompatibility = 1.8 +targetCompatibility = 1.8 + +dependencies { + compile 'net.i2p.crypto:eddsa:0.2.0' + compile 'org.bouncycastle:bcprov-jdk15on:1.58' + compile 'org.json:json:20171018' + compile 'com.fasterxml.jackson.core:jackson-databind:2.9.3' + testCompile 'junit:junit:4.12' + testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" + testCompile "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.5" +} +buildscript { + ext.kotlin_version = '1.3.0' + repositories { + mavenCentral() + } + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} +repositories { + mavenCentral() +} +compileKotlin { + kotlinOptions { + jvmTarget = "1.8" + } +} +compileTestKotlin { + kotlinOptions { + jvmTarget = "1.8" + } +} + +task getDeps(type: Copy) { + from configurations.compile + into "$rootDir/jars/" +} + +kotlin { + experimental { + coroutines "enable" + } +} \ No newline at end of file