diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2019-04-25 15:06:29 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2019-05-13 20:26:46 +0200 |
| commit | 38828ab3708a22bbd321c76d936648a2010f5c60 (patch) | |
| tree | 31f5e2a8005d7cc8d2b19b3341fc6594b59b8ba9 /odcsim-core | |
| parent | 164fa3764ef7b75f04a07aa1dbf8b36dd98d7fb9 (diff) | |
chore: Migrate to Kotlin DSL for Gradle
This change migrates the build configuration for Gradle in Groovy to
Kotlin, where possible. The scripts in the `gradle/` directory have not
been migrated to extensive use of dynamicism.
Diffstat (limited to 'odcsim-core')
| -rw-r--r-- | odcsim-core/build.gradle.kts (renamed from odcsim-core/build.gradle) | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/odcsim-core/build.gradle b/odcsim-core/build.gradle.kts index a0cd8450..1596f3c8 100644 --- a/odcsim-core/build.gradle +++ b/odcsim-core/build.gradle.kts @@ -23,19 +23,24 @@ */ /* Build configuration */ -apply from: '../gradle/kotlin.gradle' -apply plugin: 'java-library' +apply(from = "../gradle/kotlin.gradle") +plugins { + `java-library` +} /* Project configuration */ repositories { jcenter() } +val junitJupiterVersion: String by extra +val junitPlatformVersion: String by extra + dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib" + implementation(kotlin("stdlib")) - 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" - testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0" + testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion") + testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion") + testImplementation("org.junit.platform:junit-platform-launcher:$junitPlatformVersion") + testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0") } |
