-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
81 lines (64 loc) · 2.14 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
}
}
apply plugin: 'java'
group = pluginGroup
version = pluginVersion
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
apply plugin: "com.github.johnrengelman.shadow"
build.dependsOn shadowJar
compileJava {
options.compilerArgs += ["-parameters"]
options.fork = true
options.forkOptions.executable = 'javac'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
shadowJar {
minimize()
archiveClassifier.set("")
archiveFileName.set(project.name + ".jar")
}
jar {
archiveFileName.set(project.name + ".jar")
}
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
task relocateShadowJar(type: ConfigureShadowRelocation) {
target = tasks.shadowJar
prefix = "net.draycia.uranium.libs" // Default value is "shadow"
}
tasks.shadowJar.dependsOn tasks.relocateShadowJar
repositories {
mavenCentral()
maven {url = 'https://papermc.io/repo/repository/maven-public/'}
maven {url = 'https://oss.sonatype.org/content/groups/public/'}
maven {url = 'https://repo.spongepowered.org/maven'}
maven {url = 'https://repo.aikar.co/content/groups/aikar/'}
maven {url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly 'com.destroystokyo.paper:paper-api:1.15.2-R0.1-SNAPSHOT'
compileOnly 'me.clip:placeholderapi:2.10.5'
compile 'net.kyori:adventure-api:4.0.0-SNAPSHOT'
compile 'net.kyori:text-adapter-bukkit:3.0.3'
compile 'net.kyori:adventure-platform-bukkit:4.0.0-SNAPSHOT'
compile 'net.kyori:adventure-text-minimessage:3.0.0-SNAPSHOT'
compile 'org.spongepowered:configurate-yaml:3.7'
compile "co.aikar:acf-bukkit:0.5.0-SNAPSHOT"
compile "com.zaxxer:HikariCP:2.4.1"
compile "co.aikar:idb-bukkit:1.0.0-SNAPSHOT"
}
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}