From 38828ab3708a22bbd321c76d936648a2010f5c60 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Thu, 25 Apr 2019 15:06:29 +0200 Subject: 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. --- odcsim-engine-tests/build.gradle | 39 -------------------------------- odcsim-engine-tests/build.gradle.kts | 43 ++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 39 deletions(-) delete mode 100644 odcsim-engine-tests/build.gradle create mode 100644 odcsim-engine-tests/build.gradle.kts (limited to 'odcsim-engine-tests') diff --git a/odcsim-engine-tests/build.gradle b/odcsim-engine-tests/build.gradle deleted file mode 100644 index da568319..00000000 --- a/odcsim-engine-tests/build.gradle +++ /dev/null @@ -1,39 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2019 atlarge-research - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -/* Build configuration */ -apply from: '../gradle/kotlin.gradle' -apply plugin: 'java-library' - -/* Project configuration */ -repositories { - jcenter() -} - -dependencies { - api project(':odcsim-core') - - implementation "org.jetbrains.kotlin:kotlin-stdlib" - implementation "org.junit.jupiter:junit-jupiter-api:$junit_jupiter_version" -} diff --git a/odcsim-engine-tests/build.gradle.kts b/odcsim-engine-tests/build.gradle.kts new file mode 100644 index 00000000..8b19019a --- /dev/null +++ b/odcsim-engine-tests/build.gradle.kts @@ -0,0 +1,43 @@ +/* + * MIT License + * + * Copyright (c) 2019 atlarge-research + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* Build configuration */ +apply(from = "../gradle/kotlin.gradle") +plugins { + `java-library` +} + +/* Project configuration */ +repositories { + jcenter() +} + +val junitJupiterVersion: String by extra + +dependencies { + api(project(":odcsim-core")) + + implementation(kotlin("stdlib")) + implementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion") +} -- cgit v1.2.3