forked from DaRacci/slimjar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
51 lines (43 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
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
import org.jetbrains.kotlin.gradle.plugin.KotlinBasePlugin
import java.net.URI
plugins {
java
kotlin("jvm") version "2.1.0"
id("com.github.hierynomus.license-base") version "0.16.1"
}
allprojects {
apply(plugin = "java")
apply(plugin = "com.github.hierynomus.license-base")
repositories {
mavenCentral()
}
license {
header = rootProject.file("LICENSE")
includes(listOf("**/*.java', '**/*.kt"))
mapping("kt", "DOUBLESLASH_STYLE")
mapping("java", "DOUBLESLASH_STYLE")
}
plugins.withType<KotlinBasePlugin> {
extensions.configure<KotlinProjectExtension> {
jvmToolchain(17)
explicitApi()
}
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
afterEvaluate {
plugins.withType<MavenPublishPlugin> {
extensions.getByName<PublishingExtension>("publishing").apply {
repositories.maven {
name = "CrazyDev22Repo"
url = URI("https://repo.crazydev22.de/public")
credentials(PasswordCredentials::class)
}
}
}
}
}