Skip to content

Commit 9f3bddc

Browse files
committed
Release 1.2.8
2 parents 15e818c + 1ced48c commit 9f3bddc

File tree

182 files changed

+4971
-3141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+4971
-3141
lines changed

build.gradle

Lines changed: 89 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -19,138 +19,115 @@
1919
* <http://www.gnu.org/licenses/gpl-3.0.html>.
2020
* END
2121
*/
22-
2322
import org.apache.tools.ant.filters.ReplaceTokens
2423

2524
plugins {
26-
id 'com.github.johnrengelman.shadow' version '6.1.0'
2725
id 'java'
2826
id 'maven-publish'
27+
id 'com.github.johnrengelman.shadow' version '6.1.0'
2928
}
30-
shadowJar {
31-
classifier ''
32-
relocate 'com.vdurmont', "tk.bluetree242.discordsrvutils.dependencies.emoji-java"
33-
relocate 'org.bstats', "tk.bluetree242.discordsrvutils.dependencies.bstats"
34-
relocate 'space.arim.dazzleconf', "tk.bluetree242.discordsrvutils.dependencies.dazzleconf"
35-
relocate 'com.zaxxer', "tk.bluetree242.discordsrvutils.dependencies.hikariCP"
36-
relocate 'org.hsqldb', "tk.bluetree242.discordsrvutils.dependencies.hsqldb"
37-
relocate 'org.mariadb.jdbc', "tk.bluetree242.discordsrvutils.dependencies.mariadb"
38-
relocate 'org.yaml', "tk.bluetree242.discordsrvutils.dependencies.yaml"
39-
relocate 'com.squareup.okhttp3', "tk.bluetree242.discordsrvutils.dependencies.okhttp"
40-
relocate 'org.flywaydb', "tk.bluetree242.discordsrvutils.dependencies.flywaydb"
41-
relocate 'org.bstats', "tk.bluetree242.discordsrvutils.dependencies.bstats"
42-
relocate 'com.github.benmanes.caffeine', 'tk.bluetree242.discordsrvutils.dependencies.caffeine'
43-
relocate 'org.json', 'tk.bluetree242.discordsrvutils.dependencies.json'
44-
relocate 'com.google.errorprone', 'tk.bluetree242.discordsrvutils.dependencies.google'
45-
}
46-
def buildNumber = project.properties['buildNumber'] == null ? "NONE" : project.properties['buildNumber']
47-
System.out.println("Build Number is " + buildNumber)
48-
def commit = project.properties['commit'] == null ? "NONE" : project.properties['commit']
49-
System.out.println("Commit Hash is " + commit)
29+
compileJava.options.encoding 'UTF-8'
30+
allprojects {
31+
repositories {
32+
mavenLocal()
33+
mavenCentral()
34+
jcenter()
35+
maven {
36+
url = uri('https://repo.citizensnpcs.co')
37+
}
38+
maven {
39+
url = uri('https://nexus.vankka.dev/repository/maven-public/')
40+
}
41+
maven {
42+
url = uri('http://repo.extendedclip.com/content/repositories/placeholderapi/')
43+
}
5044

51-
build.finalizedBy shadowJar
52-
repositories {
53-
mavenLocal()
54-
mavenCentral()
55-
jcenter()
56-
maven {
57-
url = uri('https://repo.citizensnpcs.co')
58-
}
59-
maven {
60-
url = uri('https://nexus.vankka.dev/repository/maven-public/')
61-
}
62-
maven {
63-
url = uri('http://repo.extendedclip.com/content/repositories/placeholderapi/')
64-
}
45+
maven {
46+
url = uri('https://jitpack.io')
47+
}
6548

66-
maven {
67-
url = uri('https://jitpack.io')
68-
}
49+
maven {
50+
url = uri('https://repo.codemc.org/repository/maven-public')
51+
}
6952

70-
maven {
71-
url = uri('https://repo.codemc.org/repository/maven-public')
72-
}
53+
maven {
54+
url = uri('https://ci.ender.zone/plugin/repository/everything/')
55+
}
7356

74-
maven {
75-
url = uri('https://ci.ender.zone/plugin/repository/everything/')
76-
}
57+
maven {
58+
url = uri('https://papermc.io/repo/repository/maven-public/')
59+
}
7760

78-
maven {
79-
url = uri('https://papermc.io/repo/repository/maven-public/')
80-
}
61+
maven {
62+
url = uri('https://nexus.scarsz.me/content/groups/public/')
63+
}
8164

82-
maven {
83-
url = uri('https://nexus.scarsz.me/content/groups/public/')
84-
}
65+
maven {
66+
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
67+
}
8568

86-
maven {
87-
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
88-
}
69+
maven {
70+
url = uri("https://papermc.io/repo/repository/maven-public/")
71+
}
8972

90-
maven {
91-
url = uri("https://papermc.io/repo/repository/maven-public/")
92-
}
73+
maven {
74+
name = "sonatype-oss-snapshots"
75+
url = "https://oss.sonatype.org/content/repositories/snapshots/"
76+
}
9377

94-
maven {
95-
name = "sonatype-oss-snapshots"
96-
url = "https://oss.sonatype.org/content/repositories/snapshots/"
78+
maven {
79+
url = uri('https://repo.maven.apache.org/maven2/')
80+
}
81+
maven {
82+
name 'm2-dv8tion'
83+
url 'https://m2.dv8tion.net/releases'
84+
}
85+
maven { url "https://mvn-repo.arim.space/affero-gpl3" }
86+
maven { url "https://mvn-repo.arim.space/gpl3" }
87+
maven { url "https://mvn-repo.arim.space/lesser-gpl3" }
9788
}
89+
}
9890

99-
maven {
100-
url = uri('https://repo.maven.apache.org/maven2/')
101-
}
102-
maven {
103-
name 'm2-dv8tion'
104-
url 'https://m2.dv8tion.net/releases'
91+
allprojects {
92+
apply plugin: 'java'
93+
dependencies {
94+
compileOnly 'org.projectlombok:lombok:1.18.22'
95+
annotationProcessor 'org.projectlombok:lombok:1.18.22'
96+
97+
testCompileOnly 'org.projectlombok:lombok:1.18.22'
98+
testAnnotationProcessor 'org.projectlombok:lombok:1.18.22'
10599
}
106-
maven { url "https://mvn-repo.arim.space/affero-gpl3" }
107-
maven { url "https://mvn-repo.arim.space/gpl3" }
108-
maven { url "https://mvn-repo.arim.space/lesser-gpl3" }
109100
}
110-
def urlFile = { url, name ->
111-
File file = new File("$buildDir/download/${name}.jar")
112-
file.parentFile.mkdirs()
113-
if (!file.exists()) {
114-
new URL(url).withInputStream { downloadStream ->
115-
file.withOutputStream { fileOut ->
116-
fileOut << downloadStream
117-
}
101+
def buildNumber = project.properties['buildNumber'] == null ? "NONE" : project.properties['buildNumber']
102+
System.out.println("Build Number is " + buildNumber)
103+
def commit = project.properties['commit'] == null ? "NONE" : project.properties['commit']
104+
System.out.println("Commit Hash is " + commit)
105+
subprojects {
106+
apply plugin: 'java'
107+
apply plugin: 'maven'
108+
apply plugin: 'maven-publish'
109+
project.jar {
110+
archivesBaseName = 'DiscordSRVUtils-' + project.name
111+
}
112+
project.processResources {
113+
from(sourceSets.main.resources.srcDirs) {
114+
filter ReplaceTokens, tokens: [version : version,
115+
build : buildNumber,
116+
commit : commit,
117+
description: description,
118+
buildDate : System.currentTimeMillis() + ""
119+
]
118120
}
121+
119122
}
120-
files(file.absolutePath)
123+
124+
}
125+
shadowJar {
126+
classifier ''
121127
}
122128
dependencies {
123-
implementation 'com.vdurmont:emoji-java:5.1.1'
124-
implementation 'org.yaml:snakeyaml:1.27'
125-
implementation 'space.arim.dazzleconf:dazzleconf-ext-snakeyaml:1.2.0-M2'
126-
implementation 'com.zaxxer:HikariCP:3.4.5'
127-
implementation 'org.hsqldb:hsqldb:2.4.1'
128-
implementation 'org.bstats:bstats-bukkit:2.2.1'
129-
implementation 'org.mariadb.jdbc:mariadb-java-client:2.7.0'
130-
compileOnly 'net.ess3:EssentialsX:2.17.2'
131-
compileOnly 'org.spigotmc:spigot-api:1.16.3-R0.1-SNAPSHOT'
132-
compileOnly 'com.github.DevLeoko:AdvancedBan:b4bbb6a'
133-
compileOnly ('com.discordsrv:discordsrv:1.24.0') {
134-
exclude group: 'net.kyori'
135-
}
136-
compileOnly 'me.clip:placeholderapi:2.9.2'
137-
compileOnly 'com.gitlab.ruany:LiteBansAPI:0.3.4'
138-
implementation "org.flywaydb:flyway-core:7.5.3"
139-
implementation group: 'org.json', name: 'json', version: '20210307'
140-
implementation 'com.github.ben-manes.caffeine:caffeine:3.0.4'
141-
compileOnly 'space.arim.libertybans:bans-api:0.8.0'
142-
compileOnly urlFile("https://github.com/Zrips/CMI-API/releases/download/8.7.8.2/CMIAPI8.7.8.2.jar", "CMI-API")
143-
compileOnly 'com.github.LeonMangler:SuperVanish:6.2.6-2'
144-
compileOnly urlFile("https://api.spiget.org/v2/resources/35065/download", "AFKPLUS-API")
145-
compileOnly 'org.apache.logging.log4j:log4j-core:2.0-beta9'
129+
implementation project(":bukkit")
146130
}
147-
148-
group = 'me.bluetree.discordsrvutils'
149-
version = '1.2.7'
150-
description = 'DiscordSRVUtils'
151-
compileJava.options.encoding 'UTF-8'
152-
java.sourceCompatibility = JavaVersion.VERSION_11
153-
154131
publishing {
155132
publications {
156133
maven(MavenPublication) {
@@ -159,15 +136,10 @@ publishing {
159136
}
160137
}
161138

162-
processResources {
163-
from(sourceSets.main.resources.srcDirs) {
164-
filter ReplaceTokens, tokens: [version : version,
165-
build : buildNumber,
166-
commit : commit,
167-
buildDate: System.currentTimeMillis() + ""
168-
]
169-
}
170-
139+
allprojects {
140+
java.sourceCompatibility = JavaVersion.VERSION_1_8
141+
java.targetCompatibility = JavaVersion.VERSION_1_8
171142
}
172143

173144

145+

bukkit/build.gradle

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
plugins {
2+
id 'java'
3+
id 'maven-publish'
4+
}
5+
apply plugin: 'maven'
6+
apply plugin: 'maven-publish'
7+
publishing {
8+
publications {
9+
maven(MavenPublication) {
10+
from(components.java)
11+
}
12+
}
13+
}
14+
def urlFile = { url, name ->
15+
File file = new File("$buildDir/download/${name}.jar")
16+
file.parentFile.mkdirs()
17+
if (!file.exists()) {
18+
new URL(url).withInputStream { downloadStream ->
19+
file.withOutputStream { fileOut ->
20+
fileOut << downloadStream
21+
}
22+
}
23+
}
24+
files(file.absolutePath)
25+
}
26+
27+
dependencies {
28+
implementation 'org.bstats:bstats-bukkit:2.2.1'
29+
compileOnly 'org.spigotmc:spigot-api:1.16.3-R0.1-SNAPSHOT'
30+
compileOnly 'com.gitlab.ruany:LiteBansAPI:0.3.4'
31+
compileOnly 'space.arim.libertybans:bans-api:0.8.0'
32+
compileOnly 'com.github.LeonMangler:SuperVanish:6.2.6-2'
33+
compileOnly 'com.github.DevLeoko:AdvancedBan:b4bbb6a'
34+
compileOnly 'me.clip:placeholderapi:2.9.2'
35+
compileOnly urlFile("https://github.com/Zrips/CMI-API/releases/download/8.7.8.2/CMIAPI8.7.8.2.jar", "CMI-API")
36+
compileOnly urlFile("https://api.spiget.org/v2/resources/35065/download", "AFKPLUS-API")
37+
implementation project(":core")
38+
compileOnly('com.discordsrv:discordsrv:1.24.0') {
39+
exclude group: 'net.kyori'
40+
}
41+
compileOnly 'net.ess3:EssentialsX:2.17.2'
42+
}
43+
44+
45+
test {
46+
useJUnitPlatform()
47+
}

0 commit comments

Comments
 (0)