-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (49 loc) · 1.55 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
// https://github.com/GradleUp/shadow
id 'com.gradleup.shadow' version '8.3.3'
// https://github.com/Minecrell/plugin-yml
id 'net.minecrell.plugin-yml.bukkit' version '0.6.0'
}
group 'fr.byswiizen.disabledamage'
version '5.2'
compileJava {
sourceCompatibility = '21'
targetCompatibility = '21'
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
// Sonatype
maven { url = 'https://oss.sonatype.org/content/groups/public/' }
// SpigotMC
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
}
dependencies {
// https://mvnrepository.com/artifact/org.jetbrains/annotations
implementation 'org.jetbrains:annotations:26.0.1'
// https://github.com/Bastian/bstats-metrics
implementation 'org.bstats:bstats-bukkit:3.1.0'
// https://hub.spigotmc.org/stash/projects/SPIGOT/repos/spigot/browse
compileOnly 'org.spigotmc:spigot-api:1.21.3-R0.1-SNAPSHOT'
}
shadowJar {
archiveFileName = project.name + "-" + project.version + ".jar"
relocate 'org.bstats', 'fr.byswiizen.disabledamage.metrics'
exclude 'META-INF/**', 'LICENSE'
}
build {
dependsOn(shadowJar)
}
bukkit {
name = 'DisableDamage'
main = 'fr.byswiizen.disabledamage.DisableDamage'
description = 'DisableDamage is a minecraft plugin that disables damage'
version = '@VERSION@'
apiVersion = '1.13'
author = ['BySwiizen']
}
processResources {
filter ReplaceTokens, tokens: ['VERSION' : project.version]
}