Skip to content

Commit 512f64d

Browse files
committed
Update repo / deps / remove unnecessary code
1 parent 5588ae3 commit 512f64d

Some content is hidden

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

46 files changed

+1106
-1103
lines changed

build.gradle

Lines changed: 48 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'java'
3-
id 'com.github.johnrengelman.shadow' version '8.1.1'
3+
id 'io.github.goooler.shadow' version '8.1.8'
44
id 'net.kyori.blossom' version '2.1.0'
55
}
66

@@ -33,14 +33,15 @@ repositories {
3333
}
3434

3535
dependencies {
36-
compileOnly('io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT')
37-
compileOnly('com.velocitypowered:velocity-api:3.3.0-SNAPSHOT')
38-
annotationProcessor('com.velocitypowered:velocity-api:3.3.0-SNAPSHOT')
39-
compileOnly('net.md-5:bungeecord-api:1.20-R0.2')
36+
compileOnly 'dev.folia:folia-api:1.20.2-R0.1-SNAPSHOT'
37+
compileOnly 'io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT'
38+
compileOnly 'com.velocitypowered:velocity-api:3.3.0-SNAPSHOT'
39+
annotationProcessor 'com.velocitypowered:velocity-api:3.3.0-SNAPSHOT'
40+
compileOnly 'net.md-5:bungeecord-api:1.20-R0.2'
4041

41-
compileOnly('me.clip:placeholderapi:2.11.5')
42-
compileOnly('org.projectlombok:lombok:1.18.30')
43-
annotationProcessor('org.projectlombok:lombok:1.18.30')
42+
compileOnly 'me.clip:placeholderapi:2.11.6'
43+
compileOnly 'org.projectlombok:lombok:1.18.30'
44+
annotationProcessor 'org.projectlombok:lombok:1.18.30'
4445

4546
implementation('com.fasterxml.jackson.core:jackson-databind:2.15.2')
4647
implementation('com.fasterxml.jackson.core:jackson-core:2.15.2')
@@ -54,25 +55,57 @@ sourceSets {
5455
property("name", "GeyserVoice")
5556
property("version", version.toString())
5657
property("description", description)
57-
property("url", "https://mineserv.top")
58+
property("url", "https://uninode.de")
5859
}
5960
resources {
6061
property("name", "GeyserVoice")
6162
property("version", version.toString())
6263
property("description", description)
63-
property("url", "https://mineserv.top")
64+
property("url", "https://uninode.de")
6465
}
6566
}
6667
}
6768
}
6869

70+
tasks.withType(JavaCompile) {
71+
options.encoding = 'UTF-8'
72+
}
73+
74+
tasks.withType(Javadoc) {
75+
options.encoding = 'UTF-8'
76+
options.charSet = 'UTF-8'
77+
}
78+
79+
tasks.withType(Test) {
80+
systemProperty 'file.encoding', 'UTF-8'
81+
}
82+
83+
java {
84+
sourceCompatibility = JavaVersion.VERSION_17
85+
targetCompatibility = JavaVersion.VERSION_17
86+
}
87+
88+
shadowJar {
89+
archiveClassifier.set('all')
90+
relocate 'com.tcoded.folialib', 'io.greitan.avion.folialib'
91+
}
92+
6993
task deleteUnusableJar(type: Delete) {
70-
delete "build/libs/GeyserVoice-"+version+".jar"
94+
doLast {
95+
file("build/libs").listFiles().each { File file ->
96+
if (file.name.endsWith(".jar") && !file.name.contains("-all")) {
97+
file.delete()
98+
}
99+
}
100+
}
71101
}
72-
build.finalizedBy deleteUnusableJar
73-
build.finalizedBy shadowJar
74102

75-
tasks.withType(JavaCompile) {
76-
options.release = 17
103+
task copyToTestServer(type: Copy) {
104+
from shadowJar
105+
into "D:\\JavaTest\\plugins"
77106
}
107+
copyToTestServer.dependsOn shadowJar
78108

109+
build.finalizedBy shadowJar
110+
shadowJar.finalizedBy deleteUnusableJar
111+
if (project.hasProperty('DEV')) shadowJar.finalizedBy copyToTestServer

gradle/wrapper/gradle-wrapper.jar

-16.8 KB
Binary file not shown.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Sun Sep 24 22:55:30 MSK 2023
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

Lines changed: 31 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 21 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/jackson-core-2.15.2.jar

-536 KB
Binary file not shown.

libs/jackson-databind-2.15.2.jar

-1.55 MB
Binary file not shown.

src/main/java-templates/io/greitan/mineserv/common/utils/Constants.java renamed to src/main/java-templates/io/greitan/avion/common/utils/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.greitan.mineserv.common.utils;
1+
package io.greitan.avion.common.utils;
22

33
public class Constants {
44
public final static String NAME = "{{ name }}";

0 commit comments

Comments
 (0)