forked from LostCityRS/RuneScriptKt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
63 lines (50 loc) · 1.43 KB
/
build.gradle.kts
File metadata and controls
63 lines (50 loc) · 1.43 KB
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
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
defaultTasks("build")
plugins {
base
kotlin("jvm")
id("org.jmailen.kotlinter") apply false
}
allprojects {
group = "me.filby.neptune"
version = "0.0.1-SNAPSHOT"
plugins.withType<BasePlugin> {
configure<BasePluginExtension> {
archivesName.set("${rootProject.name}-$name")
}
}
plugins.withType<JavaPlugin> {
configure<JavaPluginExtension> {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.release.set(17)
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
}
subprojects {
plugins.withType<KotlinPluginWrapper> {
apply(plugin = "org.jmailen.kotlinter")
dependencies {
implementation(libs.inlineLogger)
implementation(libs.guava)
testImplementation(kotlin("test-junit5"))
testImplementation(libs.junit.api)
testImplementation(libs.junit.params)
testRuntimeOnly(libs.junit.engine)
}
}
}