-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
149 lines (135 loc) · 5.04 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
kotlin("jvm") version "1.9.22"
kotlin("plugin.serialization") version "1.9.22"
id("com.github.johnrengelman.shadow") version "7.0.0"
java
`maven-publish`
}
group = "net.azisaba"
version = "6.19.0+1.15.2"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(11))
withJavadocJar()
withSourcesJar()
}
repositories {
mavenLocal()
mavenCentral()
maven {
name = "papermc-repo"
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
name = "sonatype"
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven {
name = "jitpack"
url = uri("https://jitpack.io")
}
maven {
name = "azisaba-repo"
url = uri("https://repo.azisaba.net/repository/maven-public/")
}
if (properties["azisabaNmsUsername"] != null && properties["azisabaNmsPassword"] != null) {
maven {
name = "azisabaNms"
credentials(PasswordCredentials::class)
url = uri("https://repo.azisaba.net/repository/nms/")
}
}
maven {
name = "lumine"
url = uri("https://mvn.lumine.io/repository/maven-public/")
}
maven {
name = "mypet"
url = uri("https://repo.mypet-plugin.de/")
}
maven("https://repo.onarandombox.com/content/groups/public/")
}
dependencies {
implementation(kotlin("stdlib"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2")
implementation("com.charleskorn.kaml:kaml:0.57.0")
//noinspection GradlePackageUpdate
implementation("com.zaxxer:HikariCP:4.0.3")
implementation("org.mariadb.jdbc:mariadb-java-client:3.0.6")
implementation("org.yaml:snakeyaml:2.0")
implementation("xyz.acrylicstyle.java-util:expression:2.0.0-SNAPSHOT")
implementation("net.azisaba:lifepvelevel:1.3.0")
compileOnly("net.azisaba:JoinFilter:1.0.0")
compileOnly("net.azisaba.ballotbox:receiver:1.0.1")
compileOnly("net.azisaba.azipluginmessaging:api:4.0.3")
compileOnly("net.azisaba:RyuZUPluginChat:4.2.0") {
exclude("co.aikar", "taskchain-core")
}
compileOnly("net.azisaba.rarity:api:1.0.1-SNAPSHOT")
compileOnly("net.azisaba:ItemStash:1.0.0-SNAPSHOT")
//noinspection VulnerableLibrariesLocal
compileOnly("com.destroystokyo.paper:paper-api:1.15.2-R0.1-SNAPSHOT")
compileOnly("org.spigotmc:spigot:1.15.2-R0.1-SNAPSHOT")
compileOnly("io.lumine:Mythic-Dist:4.13.0")
compileOnly("com.onarandombox.multiversecore:multiverse-core:4.3.12")
compileOnly("com.github.MilkBowl:VaultAPI:1.7")
compileOnly("com.github.MyPetORG.MyPet:mypet-api:5c8ceeac6a")
compileOnly("de.keyle:knbt:0.0.5")
compileOnly("com.github.Staartvin:Autorank-2:4.5.1")
compileOnly("com.github.Staartvin:Statz:v1.5.5") {
exclude("nl.lolmewn.stats", "Stats")
exclude("me.staartvin", "PluginLibrary")
}
}
publishing {
repositories {
maven {
name = "repo"
credentials(PasswordCredentials::class)
url = uri(
if (project.version.toString().endsWith("SNAPSHOT"))
project.findProperty("deploySnapshotURL") ?: System.getProperty("deploySnapshotURL", "https://repo.azisaba.net/repository/maven-snapshots/")
else
project.findProperty("deployReleasesURL") ?: System.getProperty("deployReleasesURL", "https://repo.azisaba.net/repository/maven-releases/")
)
}
}
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
}
tasks {
javadoc {
options.encoding = "UTF-8"
}
compileJava {
options.encoding = "UTF-8"
}
compileKotlin {
kotlinOptions {
freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn")
}
}
processResources {
doNotTrackState("plugin.yml should be updated every time")
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from(sourceSets.main.get().resources.srcDirs) {
filter(ReplaceTokens::class, mapOf("tokens" to mapOf("version" to project.version.toString())))
filteringCharset = "UTF-8"
}
}
shadowJar {
exclude("org/slf4j/**")
relocate("org.mariadb", "com.github.mori01231.lifecore.lib.org.mariadb")
relocate("com.zaxxer.hikari", "com.github.mori01231.lifecore.lib.com.zaxxer.hikari")
relocate("kotlin", "com.github.mori01231.lifecore.lib.kotlin")
relocate("org.jetbrains", "com.github.mori01231.lifecore.lib.org.jetbrains")
relocate("com.charleskorn.kaml", "com.github.mori01231.lifecore.lib.com.charleskorn.kaml")
relocate("org.yaml", "com.github.mori01231.lifecore.lib.org.yaml")
relocate("org.snakeyaml", "com.github.mori01231.lifecore.lib.org.snakeyaml")
relocate("org.intellij", "com.github.mori01231.lifecore.lib.org.intellij")
relocate("xyz.acrylicstyle.util", "com.github.mori01231.lifecore.lib.xyz.acrylicstyle.util")
}
}