-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (53 loc) · 1.44 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
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath 'com.github.johnrengelman:shadow:8.1.1'
}
}
plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'java'
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8" //这里最好选择UTF-8
}
shadowJar{
manifest {
attributes 'Main-Class': 'org.eu.pcraft.Main'
}
relocate("de.tr7zw.changeme.nbtapi", "YOUR PACKAGE WHERE THE API SHOULD END UP")
}
group = 'org.eu.pcraft'
version = '1.0-SNAPSHOT'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
repositories {
mavenCentral()
maven {
url "https://repo.papermc.io/repository/maven-public/"
}
maven {
url "https://repo.extendedclip.com/content/repositories/placeholderapi/"
}
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
implementation("com.squareup.okhttp3:okhttp:4.12.0")
compileOnly "com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT"
compileOnly 'me.clip:placeholderapi:2.11.5'
compileOnly(fileTree(dir: 'libs', include: '*.jar'))
}
test {
useJUnitPlatform()
}
build {
dependsOn(shadowJar)
}
java{
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}