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 /build.gradle.kts | |
| 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 'build.gradle.kts')
| -rw-r--r-- | build.gradle.kts | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 00000000..01f95b26 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,51 @@ +/* + * MIT License + * + * Copyright (c) 2017 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 { + kotlin("jvm") version "1.3.30" apply false + id("org.jetbrains.dokka") version "0.9.18" apply false + id("org.jlleitschuh.gradle.ktlint") version "7.4.0" apply false +} + +allprojects { + group = "com.atlarge.opendc" + version = "2.0.0" + + + extra["junitJupiterVersion"] = "5.4.2" + extra["junitPlatformVersion"] = "1.4.2" + extra["githubUrl"] = "https://github.com/atlarge-research/${rootProject.name}" +} + +tasks.wrapper { + gradleVersion = "5.1" +} + +// Wait for children to evaluate so we can configure tasks that are dependant on children +project.evaluationDependsOnChildren() + +apply { + from("gradle/jacoco.gradle") + from("gradle/dokka.gradle") +} |
