diff options
| author | Fabian Mastenbroek <fabianishere@outlook.com> | 2018-07-11 23:38:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-11 23:38:40 +0200 |
| commit | 5fb2d1cb376d94540b6dff9ff769bbd56bcab153 (patch) | |
| tree | a16c87718b83c3ba12e46496a266878848f29bb8 /build.gradle | |
| parent | bc814ab5b5a4becf3dbc5f796a165955c0305d70 (diff) | |
| parent | 8c7e208233c86614ac29157efba24e3a57d7f21c (diff) | |
chore: Update build toolchain (#23)
This pull requests updates the project as follows:
1. **Update Gradle version to 4.8**
This allows us to make use of new features such as native JUnit 5 integration and the build cache.
2. **Update Gradle build configuration according to new changes**
This change allows us to share configuration across modules and easily change the versions for shared dependencies. In addition, we now make use of the `java-library` plugin which allows for various optimizations. See https://docs.gradle.org/current/userguide/java_library_plugin.html
3. **Add support for Jacoco**
We add support code coverage tracking via the latest version of Jacoco which has increasing support for Kotlin.
Closes #22
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle new file mode 100644 index 00000000..8ce1956a --- /dev/null +++ b/build.gradle @@ -0,0 +1,45 @@ +/* + * 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 { + id 'org.jetbrains.kotlin.jvm' version '1.2.51' apply false + id 'org.jetbrains.kotlin.plugin.jpa' version '1.2.51' apply false + id 'org.jetbrains.dokka' version '0.9.17' apply false +} + +allprojects { + group = 'com.atlarge.opendc' + version = '1.2' + + ext { + kotlinx_coroutines_version = '0.23.4' + junit_jupiter_version = '5.2.0' + junit_platform_version = '1.2.0' + jacoco_version = '0.8.2-SNAPSHOT' + } +} + +wrapper { + gradleVersion = '4.8' +} |
