-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
54 lines (43 loc) · 1.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
plugins {
java
`java-library`
`maven-publish`
}
group = "io.github.prcraftmc"
version = "0.1.7"
repositories {
mavenCentral()
}
dependencies {
api("org.ow2.asm:asm:9.5")
compileOnly("org.jetbrains:annotations:24.0.1")
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.ow2.asm:asm-util:9.5")
testImplementation("org.ow2.asm:asm-commons:9.5")
}
tasks.test {
useJUnitPlatform()
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
repositories {
maven {
name = "gaming32"
credentials(PasswordCredentials::class)
val baseUri = "https://maven.jemnetworks.com"
url = uri(baseUri + if (version.toString().endsWith("-SNAPSHOT")) "/snapshots" else "/releases")
}
}
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
from(components["java"])
}
}
}