-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
101 lines (83 loc) · 2.25 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
plugins {
id 'java'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.0'
}
repositories {
mavenLocal()
maven {
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
}
maven {
url = uri('https://oss.sonatype.org/content/groups/public/')
}
maven {
url = uri('https://repo.codemc.org/repository/maven-public')
}
maven {
url = uri('https://repo.extendedclip.com/releases/')
}
maven {
url = uri('https://maven.citizensnpcs.co/repo')
}
maven {
url = uri('https://maven.enginehub.org/repo/')
}
maven {
url = uri('https://oss.sonatype.org/content/repositories/snapshots/')
}
maven {
url = uri('https://nexus.iridiumdevelopment.net/repository/maven-releases/')
}
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
implementation 'org.bstats:bstats-bukkit:3.0.0'
implementation 'com.iridium:IridiumColorAPI:1.0.9'
implementation 'com.github.cryptomorin:XSeries:11.2.1'
compileOnly 'org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT'
compileOnly 'me.clip:placeholderapi:2.11.6'
compileOnly('net.citizensnpcs:citizens-main:2.0.30-SNAPSHOT') {
exclude group: '*', module: '*'
}
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.5'
compileOnly 'com.mojang:authlib:1.5.21'
}
group = 'dev.syrent'
version = '2.6.4'
description = 'Wanted'
java.sourceCompatibility = JavaVersion.VERSION_1_8
shadowJar {
relocate('org.bstats', 'ir.syrent.bstats')
}
def targetJavaVersion = 8
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
compileJava {
sourceCompatibility = '1.' + targetJavaVersion
targetCompatibility = '1.' + targetJavaVersion
options.encoding = "UTF-8"
}
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}