-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
88 lines (78 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
87
88
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id "com.github.johnrengelman.shadow" version "6.0.0"
}
group = 'com.github.jenya705'
version = '1.0'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(16)
}
withJavadocJar()
withSourcesJar()
}
shadowJar {
archiveBaseName.set("Pancake")
if (project.hasProperty("dir")) {
destinationDir(new File((String) project.getProperties().get("dir")))
}
}
tasks.withType(JavaCompile).configureEach {
options.incremental = false
}
tasks.named("processResources").configure() {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
test {
useJUnitPlatform()
}
repositories {
maven {
name = 'papermc-repo'
url = 'https://papermc.io/repo/repository/maven-public/'
} // PaperMC
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
} // Sonatype
mavenCentral() // MavenCentral
maven {
name = 'codemc-repo'
url = 'https://repo.codemc.io/repository/maven-public/'
} // CodeMC
maven {
name = 'dmulloy2-repo'
url = 'https://repo.dmulloy2.net/repository/public/'
} // Dmulloy2
maven {
name = "jitpack"
url = 'https://jitpack.io'
} // JitPack
maven {
name = "Spigot"
url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
}
}
dependencies {
compileOnly 'com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT' // PaperMC
compileOnly 'com.comphenix.protocol:ProtocolLib:4.6.0' // ProtocolLib
compileOnly 'org.spigotmc:spigot:1.16.5-R0.1-SNAPSHOT' // Spigot (for NMS)
implementation 'de.tr7zw:item-nbt-api:2.7.1' // NBTApi
implementation 'org.reflections:reflections:0.9.12' // Reflections
/* Lombok */
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
testCompileOnly 'org.projectlombok:lombok:1.18.20'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.20'
/* Lombok */
/* JUnit */
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
/* JUnit */
testImplementation 'com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT'
}
processResources {
from "src/main"
filter ReplaceTokens, tokens: [version: version, pack_format: "6"]
}