diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-02-23 21:40:53 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-02-23 21:40:53 +0100 |
| commit | 15fcd1a10018605f59ca7a644b8f3b3960e7b6b0 (patch) | |
| tree | cbbbcd759f16b8d0aa87c41b7f10dcc5fdf7087a /simulator/buildSrc/src | |
| parent | 481706adc89d502840c967d94a165c55d8ac0e1a (diff) | |
Use Java Platform for shared dependency constraints
This change uses the Java Platform functionality from Gradle to enable
shared dependency constraints across modules.
Diffstat (limited to 'simulator/buildSrc/src')
| -rw-r--r-- | simulator/buildSrc/src/main/kotlin/dependency-conventions.gradle.kts | 43 | ||||
| -rw-r--r-- | simulator/buildSrc/src/main/kotlin/kotlin-library-conventions.gradle.kts | 7 |
2 files changed, 6 insertions, 44 deletions
diff --git a/simulator/buildSrc/src/main/kotlin/dependency-conventions.gradle.kts b/simulator/buildSrc/src/main/kotlin/dependency-conventions.gradle.kts deleted file mode 100644 index ee9ea793..00000000 --- a/simulator/buildSrc/src/main/kotlin/dependency-conventions.gradle.kts +++ /dev/null @@ -1,43 +0,0 @@ -import org.gradle.kotlin.dsl.`java-library` -import org.gradle.kotlin.dsl.kotlin -import org.gradle.kotlin.dsl.repositories - -/* - * Copyright (c) 2021 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. - */ - -plugins { - `java-library` -} - -repositories { - mavenCentral() - jcenter() -} - -/* Dependency constraints across modules */ -dependencies { - constraints { - api("org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.kotlinxCoroutines}") - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:${versions.kotlinxCoroutines}") - implementation("io.github.microutils:kotlin-logging:${versions.kotlinLogging}") - } -} diff --git a/simulator/buildSrc/src/main/kotlin/kotlin-library-conventions.gradle.kts b/simulator/buildSrc/src/main/kotlin/kotlin-library-conventions.gradle.kts index e9fee735..8d6420be 100644 --- a/simulator/buildSrc/src/main/kotlin/kotlin-library-conventions.gradle.kts +++ b/simulator/buildSrc/src/main/kotlin/kotlin-library-conventions.gradle.kts @@ -28,7 +28,12 @@ plugins { `java-library` kotlin("jvm") id("org.jlleitschuh.gradle.ktlint") - id("dependency-conventions") +} + +/* Project configuration */ +repositories { + mavenCentral() + jcenter() } java { |
