summaryrefslogtreecommitdiff
path: root/opendc-core/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-core/build.gradle')
-rw-r--r--opendc-core/build.gradle58
1 files changed, 7 insertions, 51 deletions
diff --git a/opendc-core/build.gradle b/opendc-core/build.gradle
index 210b8820..e6c7076b 100644
--- a/opendc-core/build.gradle
+++ b/opendc-core/build.gradle
@@ -23,63 +23,19 @@
*/
/* Build configuration */
-buildscript {
- ext.kotlin_version = '1.2.21'
- ext.dokka_version = '0.9.15'
-
- repositories {
- mavenCentral()
- jcenter()
- }
-
- dependencies {
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
- classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.3'
- }
-}
-
-apply plugin: 'java'
-apply plugin: 'kotlin'
-apply plugin: 'org.jetbrains.dokka'
-apply plugin: 'org.junit.platform.gradle.plugin'
-
-compileKotlin {
- kotlinOptions {
- jvmTarget = "1.8"
- }
-}
-
-compileTestKotlin {
- kotlinOptions {
- jvmTarget = "1.8"
- }
-}
-
-kotlin {
- experimental {
- coroutines 'enable'
- }
-}
-
-dokka {
- outputFormat = 'html'
- outputDirectory = "$buildDir/javadoc"
-}
+apply from: '../gradle/kotlin.gradle'
+apply plugin: 'java-library'
/* Project configuration */
-group 'com.atlarge.opendc'
-version '1.1'
-
repositories {
jcenter()
}
dependencies {
- compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.2"
+ implementation "org.jetbrains.kotlin:kotlin-stdlib"
+ api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinx_coroutines_version"
- testCompile "org.junit.jupiter:junit-jupiter-api:5.0.0-RC3"
- testRuntime "org.junit.jupiter:junit-jupiter-engine:5.0.0-RC3"
- testCompile "org.junit.platform:junit-platform-launcher:1.0.0-RC3"
+ testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_jupiter_version"
+ testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_jupiter_version"
+ testImplementation "org.junit.platform:junit-platform-launcher:$junit_platform_version"
}