-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle
75 lines (57 loc) · 1.81 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id 'com.gradleup.shadow' version '8.3.1'
id 'net.ltgt.errorprone' version '4.0.1'
}
repositories {
mavenLocal()
mavenCentral()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
// Spigot
maven {
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
}
maven {
url = uri('https://repo.codemc.org/repository/maven-public')
}
// ProtocolLib
maven {
url = uri("https://repo.dmulloy2.net/repository/public/")
}
}
dependencies {
compileOnly 'org.jetbrains:annotations:24.1.0'
compileOnly 'org.spigotmc:spigot-api:1.21.1-R0.1-SNAPSHOT'
implementation 'org.bstats:bstats-bukkit:3.0.3'
compileOnly group: "com.comphenix.protocol", name: "ProtocolLib", version: "5.1.0"
errorprone("com.google.errorprone:error_prone_core:2.32.0")
}
group = 'de.flo56958'
version = '2.0'
description = 'A TinkersConstruct (and other mods) inspired spigot server plugin'
java.sourceCompatibility = JavaVersion.VERSION_21
jar.dependsOn(processResources)
assemble.dependsOn(shadowJar)
shadowJar {
relocate('org.bstats', 'de.flo56958.minetinker.bStats')
archiveFileName = "MineTinker.jar"
}
compileJava {
options.encoding = 'UTF-8'
options.deprecation = true
options.errorprone.disable('MissingSummary')
options.errorprone.error(
'NonCanonicalType', 'JdkObsolete', 'MissingOverride',
'UnnecessaryParentheses', 'OperatorPrecedence')
}
processResources {
filteringCharset = 'UTF-8'
filter ReplaceTokens, tokens: [
"project.version" : project.version,
"project.url" : "https://github.com/Flo56958/MineTinker",
"project.description": project.description
]
}