-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
104 lines (94 loc) · 2.87 KB
/
build.gradle
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
plugins {
id 'java'
id 'maven-publish'
id "net.kyori.blossom" version "2.1.0"
id "io.github.goooler.shadow" version "8.1.7"
id "org.jetbrains.gradle.plugin.idea-ext" version "1.1.9"
}
group = 'to.itsme'
version = '4.1.0'
description = 'ItsMyConfig'
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenLocal()
mavenCentral()
maven {
name = "papermc-repo"
url = "https://repo.papermc.io/repository/maven-public/"
}
maven {
name = "libby-repo"
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
maven {
name = "protocollib-repo"
url = "https://repo.dmulloy2.net/repository/public/"
}
maven {
name = "helpchat-repo"
url = "https://repo.helpch.at/releases"
}
maven {
name = "redempt.dev"
url = "https://redempt.dev"
}
maven {
name = "jitpack"
url = "https://jitpack.io"
}
maven {
name = "codemc"
url = "https://repo.codemc.io/repository/maven-releases/"
}
}
def lampVersion = "4.0.0-beta.7"
def adventureVersion = "4.17.0"
def adventurePlatformVersion = "4.3.4"
dependencies {
// lamp ->
implementation "io.github.revxrsal:lamp.common:${lampVersion}"
implementation "io.github.revxrsal:lamp.bukkit:${lampVersion}"
// other ->
implementation "org.bstats:bstats-bukkit:3.0.2"
implementation "com.github.Redempt:Crunch:2.0.3"
implementation "com.github.technicallycoded:FoliaLib:0.4.3"
implementation "com.alessiodp.libby:libby-bukkit:2.0.0-SNAPSHOT"
compileOnly "net.kyori:adventure-platform-bukkit:$adventurePlatformVersion"
compileOnly "io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT"
compileOnly "com.github.retrooper:packetevents-spigot:2.6.0"
compileOnly "com.comphenix.protocol:ProtocolLib:5.3.0"
compileOnly "me.clip:placeholderapi:2.11.6"
}
tasks.withType(JavaCompile).configureEach {
sourceCompatibility = '17'
targetCompatibility = '17'
options.encoding = "UTF-8"
options.compilerArgs += ["-parameters"]
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
sourceSets {
main {
blossom {
javaSources {
property("adventureVersion", adventureVersion)
property("adventurePlatformVersion", adventurePlatformVersion)
}
}
}
}
def shadePath = "to.itsme.itsmyconfig.shade."
shadowJar {
relocate("com.tcoded.folialib", "${shadePath}folialib")
relocate("redempt.crunch", "${shadePath}crunch")
relocate("revxrsal.commands", "${shadePath}lamp")
relocate("org.bstats", "${shadePath}bstats")
relocate("com.alessiodp.libby", "${shadePath}libby")
archiveFileName = "${project.name}-${project.version}.jar"
}