-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
73 lines (61 loc) · 1.63 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
plugins {
java
`maven-publish`
id("de.chojo.publishdata") version "1.4.0"
}
group = "de.eldoria"
version = "1.1.3"
repositories {
maven("https://eldonexus.de/repository/maven-public")
maven("https://eldonexus.de/repository/maven-proxies")
}
dependencies {
compileOnly("org.spigotmc", "spigot-api", "1.16.5-R0.1-SNAPSHOT")
compileOnly("com.comphenix.protocol", "ProtocolLib", "5.0.0-SNAPSHOT")
compileOnly("org.jetbrains", "annotations", "24.1.0")
implementation("net.kyori", "adventure-api", "4.17.0")
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.10.3")
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine")
}
java{
withSourcesJar()
withJavadocJar()
sourceCompatibility = JavaVersion.VERSION_11
}
publishData{
useEldoNexusRepos()
publishTask("jar")
publishTask("sourcesJar")
publishTask("javadocJar")
}
publishing {
publications.create<MavenPublication>("maven") {
publishData.configurePublication(this)
}
repositories {
maven {
authentication {
credentials(PasswordCredentials::class) {
username = System.getenv("NEXUS_USERNAME")
password = System.getenv("NEXUS_PASSWORD")
}
}
name = "EldoNexus"
url = uri(publishData.getRepository())
}
}
}
tasks {
compileJava {
options.encoding = "UTF-8"
}
compileTestJava{
options.encoding = "UTF-8"
}
test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
}