-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
86 lines (73 loc) · 2.39 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
plugins {
id "java-library"
id "net.kyori.indra.checkstyle" version "2.1.1"
id "xyz.jpenilla.run-paper" version "1.0.6"
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group "com.github.colebennett.abbacaving"
version "0.1-ALPHA"
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://repo.papermc.io/repository/maven-public/" }
maven { url "https://maven.enginehub.org/repo" }
maven { url "https://repo.extendedclip.com/content/repositories/placeholderapi/" }
maven { url "https://maven.playpro.com/" }
maven { url "https://jitpack.io" }
maven {
url "https://repo.minebench.de/"
content {
includeGroup "de.themoep"
includeGroupByRegex "de\\.themoep.*"
}
}
//mavenLocal()
}
dependencies {
checkstyle 'ca.stellardrift:stylecheck:0.2.0'
implementation "org.mariadb.jdbc:mariadb-java-client:3.0.6"
implementation "com.zaxxer:HikariCP:5.0.1"
implementation "com.github.KyoriPowered:adventure-text-feature-pagination:-SNAPSHOT"
implementation 'commons-io:commons-io:2.11.0'
compileOnly "io.papermc.paper:paper-api:1.19.2-R0.1-SNAPSHOT"
//compileOnly "net.luckperms:api:5.4"
compileOnly "me.clip:placeholderapi:2.9.2"
compileOnly "com.sk89q.worldedit:worldedit-bukkit:7.2.12"
compileOnly "net.coreprotect:coreprotect:21.2"
compileOnly "de.themoep.randomteleport:randomteleport-plugin:2.0-SNAPSHOT"
// compile fileTree(dir: "lib", include: ["*.jar"])
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
jar {
archiveBaseName = "AbbaCaving"
archiveVersion = "0.1.0"
}
task fatJar(type: Jar) {
classifier = "all"
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
tasks {
runServer {
// Configure the Minecraft version for our task.
// This is the only required configuration besides applying the plugin.
// Your plugin's jar (or shadowJar if present) will be used automatically.
minecraftVersion("1.19.2")
jvmArgs "-XX:+AllowEnhancedClassRedefinition"
}
build {
dependsOn(shadowJar)
}
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}