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-engine-omega | |
| 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-engine-omega')
| -rw-r--r-- | odcsim-engine-omega/build.gradle.kts (renamed from odcsim-engine-omega/build.gradle) | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/odcsim-engine-omega/build.gradle b/odcsim-engine-omega/build.gradle.kts index cefd3e20..347e2bb4 100644 --- a/odcsim-engine-omega/build.gradle +++ b/odcsim-engine-omega/build.gradle.kts @@ -23,23 +23,28 @@ */ /* 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 { - api project(':odcsim-core') + api(project(":odcsim-core")) - implementation "org.jetbrains.kotlin:kotlin-stdlib" - implementation "io.github.microutils:kotlin-logging:1.6.20" + implementation(kotlin("stdlib")) + implementation("io.github.microutils:kotlin-logging:1.6.20") - testApi project(':odcsim-engine-tests') - 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" - testRuntimeOnly "org.slf4j:slf4j-simple:1.7.25" + testCompile(project(":odcsim-engine-tests")) + testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion") + testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion") + testImplementation("org.junit.platform:junit-platform-launcher:$junitPlatformVersion") + testRuntimeOnly("org.slf4j:slf4j-simple:1.7.25") } |
