summaryrefslogtreecommitdiff
path: root/gradle
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2018-07-11 16:42:26 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2018-07-11 17:07:05 +0200
commitc5f88cc28f9d27f867247a713605368c558795a0 (patch)
treefa374ca7fb87dfc8b1b82bbcd2d493f0abfe1958 /gradle
parentf682ea3c1a4791f8515f4924acbc1213d17dce29 (diff)
chore: Update Gradle build configuration
This change updates the Gradle build configuration in order to make use of the native JUnit 5 integration and the newest Kotlin and Dokka plugins.
Diffstat (limited to 'gradle')
-rw-r--r--gradle/kotlin.gradle64
1 files changed, 64 insertions, 0 deletions
diff --git a/gradle/kotlin.gradle b/gradle/kotlin.gradle
new file mode 100644
index 00000000..7fd45326
--- /dev/null
+++ b/gradle/kotlin.gradle
@@ -0,0 +1,64 @@
+/*
+ * 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.
+ */
+
+/* Default configuration for Kotlin projects */
+apply plugin: 'kotlin'
+apply plugin: 'org.jetbrains.dokka'
+
+sourceCompatibility = 1.8
+
+compileKotlin {
+ kotlinOptions {
+ jvmTarget = "1.8"
+ }
+}
+
+compileTestKotlin {
+ kotlinOptions {
+ jvmTarget = "1.8"
+ }
+}
+
+kotlin {
+ experimental {
+ coroutines "enable"
+ }
+}
+
+/* Configure test setup */
+test {
+ useJUnitPlatform {}
+
+ testLogging {
+ events 'passed', 'skipped', 'failed'
+ }
+
+ reports {
+ html.enabled = true
+ }
+}
+
+/* Documentation generation */
+dokka {}
+