-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
48 lines (40 loc) · 947 Bytes
/
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
plugins {
`java-library`
`maven-publish`
}
group = "org.altronmaxx"
version = "2.0"
description = "nerfphantoms-folia"
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenLocal()
maven {
url = uri("https://maven.pkg.github.com/Edenor-Minecraft/Foldenor/")
credentials {
username = System.getenv("USERNAME")
password = System.getenv("TOKEN")
}
}
}
dependencies {
compileOnly("dev.edenor.foldenor:foldenor-api:1.20.4-R0.1-SNAPSHOT")
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks.withType<ProcessResources> {
outputs.upToDateWhen { false }
filesMatching("plugin.yml") {
expand(
"version" to project.version
)
}
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc>() {
options.encoding = "UTF-8"
}