-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (58 loc) · 2.23 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
plugins {
id "com.github.johnrengelman.shadow" version "8.1.1"
id 'io.papermc.paperweight.userdev' version '1.7.1'
id 'java'
}
group = 'com.ixbob.thepitplugin'
version = '1.0'
repositories {
maven{ url 'https://maven.aliyun.com/nexus/content/groups/public/'}
mavenCentral()
maven { url "https://repo.papermc.io/repository/maven-public/" }
maven {
name = 'papermc-repo'
url = 'https://papermc.io/repo/repository/maven-public/'
}
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url "https://repo.codemc.org/repository/maven-public/" }
maven { url "https://repo.dmulloy2.net/repository/public/" }
maven { url = "https://jitpack.io/" }
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
compileOnly("io.papermc.paper:paper-api:1.18.1-R0.1-SNAPSHOT")
paperweight.paperDevBundle("1.18.1-R0.1-SNAPSHOT")
// compileOnly files('lib/spigot-1.18.1-R0.1-SNAPSHOT.jar')
// compileOnly files('lib/authlib-3.2.38.jar')
implementation 'org.mongodb:mongo-java-driver:2.13.1'
implementation 'org.mongodb:mongodb-driver-sync:4.2.1'
implementation 'de.tr7zw:item-nbt-api-plugin:2.12.3'
compileOnly group: "com.comphenix.protocol", name: "ProtocolLib", version: "4.8.0"
implementation 'com.alibaba.fastjson2:fastjson2:2.0.49'
compileOnly 'org.projectlombok:lombok:1.18.32'
annotationProcessor 'org.projectlombok:lombok:1.18.32'
compileOnly 'com.github.decentsoftware-eu:decentholograms:2.8.8'
compileOnly files('lib/citizens-2.0.29-SNAPSHOT.jar')
}
shadowJar {
project.configurations.implementation.canBeResolved = true
configurations = [project.configurations.implementation]
}
test {
useJUnitPlatform()
}
javadoc {
options.encoding = 'UTF-8'
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks.register('moveOutput', Exec) {
workingDir = file('C:\\Users\\IXBOB\\Desktop\\ThePitPlugin\\ThePitPlugin')
commandLine 'cmd', '/c', 'move_output.bat'
}
tasks.assemble {
dependsOn(reobfJar)
} //https://docs.papermc.io/paper/dev/userdev