-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
77 lines (66 loc) · 1.85 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
74
75
76
77
plugins {
`java-library`
`maven-publish`
id("com.gradleup.shadow") version "9.0.0-beta4"
id("io.papermc.paperweight.userdev") version "2.0.0-beta.12" apply false
}
allprojects {
apply(plugin = "java-library")
repositories {
mavenLocal()
mavenCentral()
maven(url = "https://repo.papermc.io/repository/maven-public/")
maven(url = "https://repo.extendedclip.com/content/repositories/placeholderapi/")
}
tasks.compileJava {
options.encoding = "UTF-8"
}
tasks.javadoc {
options.encoding = "UTF-8"
}
}
dependencies {
api(project(":core"))
api(project(":v1_19_4", configuration = "reobf"))
api(project(":v1_20", configuration = "reobf"))
api(project(":v1_20_2", configuration = "reobf"))
api(project(":v1_20_3", configuration = "reobf"))
api(project(":v1_20_5", configuration = "reobf"))
api(project(":v1_21", configuration = "reobf"))
api(project(":v1_21_2", configuration = "reobf"))
api(project(":v1_21_4", configuration = "reobf"))
}
tasks {
shadowJar {
archiveClassifier = ""
minimize()
manifest {
attributes["paperweight-mappings-namespace"] = "spigot"
}
}
build {
dependsOn(shadowJar)
}
compileJava {
options.release = 17
}
processResources {
from("resources")
expand(
"name" to project.name,
"version" to project.version,
"description" to project.description,
"main" to "${project.group}.${project.name}Main"
)
}
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
from(project.components["java"])
}
}
}