-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle.kts
57 lines (44 loc) · 1.38 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
plugins {
kotlin("jvm") version "1.5.10"
java
id("org.jetbrains.dokka") version "1.5.0"
}
repositories {
mavenCentral()
}
allprojects {
apply(plugin = "java")
apply(plugin = "kotlin")
apply(plugin = "org.jetbrains.dokka")
group = "io.github.jglrxavpok.hephaistos"
version = "2.6.1"
repositories {
mavenCentral()
}
dependencies {
// Use the Kotlin JDK 8 standard library.
implementation(kotlin("stdlib"))
// Use the JUpiter test library.
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
}
tasks {
test { useJUnitPlatform() }
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
}
val dokkaHtml by tasks.getting(org.jetbrains.dokka.gradle.DokkaTask::class)
val javadocJar: TaskProvider<Jar> by tasks.registering(Jar::class) {
dependsOn(dokkaHtml)
archiveClassifier.set("javadoc")
from(dokkaHtml.outputDirectory)
}
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
compileKotlin.kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()
compileKotlin.kotlinOptions.languageVersion = "1.5"
compileKotlin.kotlinOptions {
freeCompilerArgs = listOf("-Xuse-experimental=kotlin.MultiPlatform")
}
}