generated from AleIV/Templates
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
97 lines (81 loc) · 2.34 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
89
90
91
92
93
94
95
96
97
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds
*/
plugins{
id 'java'
id 'maven-publish'
id 'kr.entree.spigradle' version '2.2.4'
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'io.freefair.lombok' version '6.1.0'
}
group = 'net.aleiv'
version = '0.1-SNAPSHOT'
compileJava{
options.encoding = 'UTF-8'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(16)
}
}
javadoc {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
jcenter()
maven { url 'https://papermc.io/repo/repository/maven-public/' }
maven { url 'https://libraries.minecraft.net/' }
maven { url 'https://plugins.gradle.org/m2' }
maven { url 'https://repo.aikar.co/content/groups/aikar/' }
maven { url 'https://jitpack.io' }
}
dependencies {
//Spigot
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
//Lombok
//PROTOCOL LIB
compileOnly group: "com.comphenix.protocol", name: "ProtocolLib", version: "4.7.0";
// MiniMessage
implementation 'net.kyori:adventure-text-minimessage:4.1.0-SNAPSHOT'
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
testCompileOnly 'org.projectlombok:lombok:1.18.12'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.12'
//ACF
implementation 'co.aikar:acf-paper:0.5.0-SNAPSHOT'
implementation group: 'com.github.juliarn', name: 'npc-lib', version: '2.6-RELEASE'
}
spigot {
authors 'aleiv'
apiVersion '1.16'
version '0.1'
name 'CinematicTool'
load STARTUP
//depends = ['ProtocolLib']
}
shadowJar {
classifier = "";
relocate 'co.aikar.commands', 'shadded.acf'
relocate 'co.aikar.locales', 'shadded.acf.locales'
relocate 'us.jcedeno.libs.rapidinv', 'shaded.me.aleiv.rapidinv'
relocate 'io.github.znetworkw.znpcservers', 'shadded.aleiv.io.github.znetworkw.znpcservers'
minimize();
}
jar {
classifier = "original";
}
publishing {
publications {
mavenJava(MavenPublication) {
from project.shadow.component(it)
artifactId 'CinematicTool'
version version
artifact jar
}
}
}
tasks.build.dependsOn tasks.shadowJar