-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle.kts
133 lines (120 loc) · 4.48 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
group = "me.xemor"
version = "6.1.9"
description = "superheroes"
java.sourceCompatibility = JavaVersion.VERSION_17
plugins {
java
`maven-publish`
id("com.github.johnrengelman.shadow") version("7.1.2")
id("io.sentry.jvm.gradle") version("3.12.0")
}
repositories {
mavenCentral()
maven { url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") }
maven { url = uri("https://papermc.io/repo/repository/maven-public/")}
maven { url = uri("https://repo.codemc.org/repository/maven-public") }
maven { url = uri("https://repo.minebench.de/") }
maven { url = uri("https://repo.maven.apache.org/maven2/") }
maven { url = uri("https://maven.enginehub.org/repo/")}
maven { url = uri("https://mvn-repo.arim.space/lesser-gpl3")}
maven { url = uri("https://repo.xemor.zip/releases")}
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/") {
name = "sonatype-oss-snapshots"
}
mavenLocal()
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.21.3-R0.1-SNAPSHOT")
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.9")
compileOnly("me.xemor:skillslibrary:2.23.0")
shadow("me.xemor:configurationdata:3.5.1-SNAPSHOT")
shadow("org.bstats:bstats-bukkit:1.7")
shadow("me.xemor:userinterfaces:2.0.2-SNAPSHOT")
shadow("org.jetbrains:annotations:20.1.0")
shadow("net.kyori:adventure-platform-bukkit:4.3.3-SNAPSHOT")
shadow("net.kyori:adventure-text-minimessage:4.17.0")
shadow("mysql:mysql-connector-java:8.0.29")
shadow("me.sepdron:HeadCreator:2.0.0")
shadow("com.zaxxer:HikariCP:4.0.3")
shadow("org.apache.commons:commons-lang3:3.12.0")
shadow("io.sentry:sentry:6.29.0")
shadow("space.arim.morepaperlib:morepaperlib:0.4.3")
shadow("me.xemor:foliahacks:1.3")
shadow("io.papermc:paperlib:1.0.7")
shadow("me.xemor:particleslibrary:1.1-SNAPSHOT")
}
java {
configurations.shadow.get().dependencies.remove(dependencies.gradleApi())
}
tasks.shadowJar {
minimize()
relocate("net.kyori", "me.xemor.superheroes.kyori")
relocate("me.xemor.configurationdata", "me.xemor.superheroes.configurationdata")
relocate("org.jetbrains", "me.xemor.superheroes.org.jetbrains")
relocate("mysql", "me.xemor.superheroes.mysql")
relocate("com.zaxxer", "me.xemor.superheroes.com.zaxxer")
relocate("me.sepdron", "me.xemor.superheroes.me.sepdron")
relocate("org.apache.commons", "me.xemor.superheroes.org.apache.commons")
relocate("org.bstats", "me.xemor.superheroes.org.bstats")
relocate("io.sentry", "me.xemor.sentry")
relocate("space.arim.morepaperlib", "me.xemor.superheroes.morepaperlib")
relocate("me.xemor.foliahacks", "me.xemor.superheroes.foliahacks")
relocate("me.creeves.particleslibrary", "me.xemor.superheroes.particleslibrary")
relocate("io.papermc.paperlib", "me.xemor.superheroes.paperlib")
configurations = listOf(project.configurations.shadow.get())
val folder = System.getenv("pluginFolder")
destinationDirectory.set(file(folder))
}
sentry {
var token = System.getenv("SENTRY_AUTH_TOKEN")
if (token != null) {
includeSourceContext.set(true)
org.set("samuel-hollis-139014fe7")
projectName.set("superheroes")
authToken.set(token)
autoInstallation {
enabled.set(true)
}
}
}
publishing {
repositories {
maven {
name = "xemorReleases"
url = uri("https://repo.xemor.zip/releases")
credentials(PasswordCredentials::class)
authentication {
isAllowInsecureProtocol = true
create<BasicAuthentication>("basic")
}
}
maven {
name = "xemorSnapshots"
url = uri("https://repo.xemor.zip/snapshots")
credentials(PasswordCredentials::class)
authentication {
isAllowInsecureProtocol = true
create<BasicAuthentication>("basic")
}
}
}
publications {
create<MavenPublication>("maven") {
groupId = rootProject.group.toString()
artifactId = rootProject.name
version = rootProject.version.toString()
from(project.components["java"])
}
}
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}
//End of auto generated
// Handles version variables etc
tasks.processResources {
inputs.property("version", rootProject.version)
expand("version" to rootProject.version)
}
publishing {
}