-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
67 lines (51 loc) · 1.74 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
plugins {
id("java")
id("com.github.johnrengelman.shadow") version("8.1.1")
}
dependencies {
// The below should be passed from the api (unsure why they are not)
compileOnly("org.spigotmc:spigot:${findProperty("minecraftVersion")}-R0.1-SNAPSHOT")
// Libraries
implementation("org.lushplugins:LushLib:${findProperty("lushlibVersion")}")
// Projects
implementation(project(":api"))
}
allprojects {
apply(plugin="java")
apply(plugin="com.github.johnrengelman.shadow")
group = "org.lushplugins"
version = "0.3.3"
repositories {
mavenCentral()
mavenLocal()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") // Spigot
maven("https://repo.lushplugins.org/releases/") // ChatColorHandler
maven("https://repo.lushplugins.org/snapshots/") // LushLib
maven("https://repo.opencollab.dev/main/") // Floodgate
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
registerFeature("optional") {
usingSourceSet(sourceSets["main"])
}
withSourcesJar()
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
shadowJar {
relocate("org.lushplugins.lushlib", "org.lushplugins.rewardsapi.libs.lushlib")
minimize()
archiveFileName.set("${project.name}-${project.version}.jar")
}
processResources{
expand(project.properties)
inputs.property("version", rootProject.version)
filesMatching("plugin.yml") {
expand("version" to rootProject.version)
}
}
}
}