diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-29 16:04:57 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 16:18:13 +0200 |
| commit | 46b06fb446e79c390c01953d31d700b8e73da24d (patch) | |
| tree | b2329630ebf2c90d297ba0d3046ccd558d12d042 /simulator/buildSrc/src/main/kotlin/kotlin-library-convention.gradle.kts | |
| parent | ebcacf96fbc1cd16a91523f95dd01db046fb7f90 (diff) | |
Prepare simulator repository for monorepo
This change prepares the simulator Git repository for the monorepo residing at
https://github.com/atlarge-research.com/opendc. To accomodate for this, we
move all files into a simulator subdirectory.
Diffstat (limited to 'simulator/buildSrc/src/main/kotlin/kotlin-library-convention.gradle.kts')
| -rw-r--r-- | simulator/buildSrc/src/main/kotlin/kotlin-library-convention.gradle.kts | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/simulator/buildSrc/src/main/kotlin/kotlin-library-convention.gradle.kts b/simulator/buildSrc/src/main/kotlin/kotlin-library-convention.gradle.kts new file mode 100644 index 00000000..c0c37a09 --- /dev/null +++ b/simulator/buildSrc/src/main/kotlin/kotlin-library-convention.gradle.kts @@ -0,0 +1,62 @@ +/* + * 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. + */ + +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + +plugins { + `java-library` + kotlin("jvm") + id("org.jlleitschuh.gradle.ktlint") + jacoco +} + +/* Project configuration */ +repositories { + jcenter() +} + +java { + sourceCompatibility = JavaVersion.VERSION_1_8 +} + +tasks.withType<KotlinCompile>().configureEach { + kotlinOptions.jvmTarget = "1.8" + kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn" +} + +tasks.test { + useJUnitPlatform() + reports.html.isEnabled = true +} + + +tasks.jacocoTestReport { + reports { + html.isEnabled = true + } +} + +dependencies { + implementation(kotlin("stdlib")) +} |
