-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
67 lines (56 loc) · 1.9 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
import com.vanniktech.maven.publish.SonatypeHost
plugins {
java
signing
id("com.vanniktech.maven.publish") version "0.31.0"
}
subprojects {
apply(plugin = "java")
apply(plugin = "signing")
apply(plugin = "com.vanniktech.maven.publish")
group = "dev.mudkip"
version = "0.1.1"
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
repositories {
mavenCentral()
}
dependencies {
compileOnly("org.jetbrains:annotations:26.0.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.2")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.12.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.12.2")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.12.2")
}
tasks.test {
useJUnitPlatform()
}
mavenPublishing {
coordinates(group.toString(), "${rootProject.name}-${project.name}", version.toString())
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
pom {
name = project.name
description = project.description
url = "https://github.com/mudkipdev/alpine"
licenses {
license {
name = "MIT"
url = "https://github.com/mudkipdev/alpine/blob/main/LICENSE"
}
}
developers {
developer {
name = "mudkip"
id = "mudkipdev"
email = "[email protected]"
url = "https://mudkip.dev"
}
}
scm {
url = "https://github.com/mudkipdev/alpine"
connection = "scm:git:git://github.com/mudkipdev/alpine.git"
developerConnection = "scm:git:ssh://[email protected]/mudkipdev/alpine.git"
}
}
}
}