-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
75 lines (62 loc) · 2.11 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.net.URL
plugins {
kotlin("jvm") version "1.4.10"
id("org.jetbrains.dokka") version "1.4.20"
}
group = "yugen"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
implementation("com.squareup.okhttp3:okhttp:4.9.0")
implementation("com.google.code.gson:gson:2.8.6")
implementation("org.slf4j:slf4j-api:1.7.30")
implementation("com.github.vladimir-bukhtoyarov:bucket4j-core:6.0.0")
// logging for tests
testImplementation("ch.qos.logback:logback-classic:1.2.3")
testImplementation("ch.qos.logback:logback-core:1.2.3")
// kotlin test
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
// junit
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.0")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.7.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.0")
}
tasks {
withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
}
test {
useJUnitPlatform()
systemProperties["logback.configurationFile"] =
File(projectDir, "src/test/resources/logback-test.xml").absolutePath
}
jar {
manifest {
attributes("Implementation-Version" to archiveVersion)
}
}
dokkaHtml {
outputDirectory.set(buildDir.resolve("../docs"))
dokkaSourceSets {
named("main") {
//moduleName.set("Yugen")
//moduleVersion.set(version as String)
sourceLink {
localDirectory.set(file("src/main/kotlin"))
remoteUrl.set(URL("https://github.com/LewisTehMinerz/Yugen/tree/${version}/" +
"src/main/kotlin"
))
remoteLineSuffix.set("#L")
}
}
}
}
}