-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
108 lines (95 loc) · 2.83 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
98
99
100
101
102
103
104
105
106
107
108
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id 'idea'
id 'xyz.jpenilla.run-paper' version '1.0.3'
id 'com.github.johnrengelman.shadow' version '7.0.0'
}
group = groupId
java.sourceCompatibility JavaVersion.VERSION_11
java.targetCompatibility JavaVersion.VERSION_11
repositories {
mavenCentral()
// paper-api
maven { url 'https://papermc.io/repo/repository/maven-public/' }
// afc-paper
maven { url 'https://repo.aikar.co/content/groups/aikar/' }
// ADKUtils
maven {
url 'https://maven.pkg.github.com/Advanced-Kind-MC/ADKUtils'
credentials {
username = project.property("github.username")
password = project.findProperty("github.token")
}
}
// ProtocolLib
maven { url 'https://repo.dmulloy2.net/repository/public/' }
// WorldEdit
maven { url 'https://maven.enginehub.org/repo/' }
// mavenLocal()
}
dependencies {
implementation 'co.aikar:acf-paper:0.5.0-SNAPSHOT'
implementation 'com.advancedkind.plugin:utils:1.2.0'
compileOnly 'org.jetbrains:annotations:20.1.0'
compileOnly 'com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT'
compileOnly 'com.sk89q.worldedit:worldedit-core:7.2.5'
compileOnly 'com.sk89q.worldedit:worldedit-bukkit:7.2.5'
compileOnly 'com.comphenix.protocol:ProtocolLib:4.6.1-SNAPSHOT'
compileOnly files('dependencies/CustomItemsAPI_PLACEHOLDER.jar')
//system 'com.github.jojodmo:CustomItems:3.8.31'
}
shadowJar {
classifier ''
relocate 'co.aikar.commands', "${groupId}.${artifact}.acf"
relocate 'co.aikar.locales', "${groupId}.${artifact}.locales"
relocate 'com.advancedkind.plugin.utils', "${groupId}.${artifact}.utils"
}
build.dependsOn shadowJar
compileJava.options.encoding 'UTF-8'
compileTestJava.options.encoding 'UTF-8'
javadoc.options.encoding 'UTF-8'
compileJava {
options.compilerArgs << '-parameters'
}
sourceSets {
main {
java {
srcDir('src')
}
resources {
srcDir('resources')
}
}
test {
java {
srcDir('test')
}
}
}
idea {
module {
downloadJavadoc true
downloadSources true
}
}
tasks {
runServer {
dependsOn 'build'
minecraftVersion('1.16.5')
}
}
processResources {
outputs.upToDateWhen { false }
filesMatching('**/plugin.yml') {
filter(ReplaceTokens, tokens: [
version : project.property('version'),
api : project.property('api'),
name : project.property('pluginname'),
artifact : project.property('artifact'),
main : project.property('main'),
description: project.property('description'),
group : project.property('groupId'),
])
}
}