forked from WaterdogPE/WaterdogPE
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
CoolLoong
committed
May 25, 2024
1 parent
712f0f6
commit b2e5557
Showing
23 changed files
with
535 additions
and
992 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
name: Build and Publish | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags-ignore: | ||
- '**' | ||
branches: | ||
- '**' | ||
on: [] | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,6 @@ buildNumber.properties | |
# WaterdogPE test files | ||
config.yml | ||
lang.ini | ||
plugins/ | ||
plugins/ | ||
/build/ | ||
/.gradle/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
plugins { | ||
application | ||
`maven-publish` | ||
id("io.github.goooler.shadow") version "8.1.7" | ||
id("com.gorylenko.gradle-git-properties") version "2.4.1" | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
maven("https://repo.opencollab.dev/maven-releases/") | ||
maven("https://repo.opencollab.dev/maven-snapshots/") | ||
maven("https://repo.waterdog.dev/main") | ||
maven("https://repo.maven.apache.org/maven2/") | ||
} | ||
|
||
dependencies { | ||
implementation(libs.com.bugsnag.bugsnag) | ||
implementation(libs.org.bstats.bstats.base) | ||
implementation(libs.net.cubespace.yamler.core) | ||
implementation(libs.org.yaml.snakeyaml) | ||
implementation(libs.com.google.code.gson.gson) | ||
implementation(libs.it.unimi.dsi.fastutil) | ||
|
||
implementation(libs.org.projectlombok.lombok) | ||
annotationProcessor(libs.org.projectlombok.lombok) | ||
|
||
implementation(libs.org.apache.commons.commons.lang3) | ||
implementation(libs.org.apache.logging.log4j.log4j.api) | ||
implementation(libs.org.apache.logging.log4j.log4j.core) | ||
implementation(libs.com.lmax.disruptor) | ||
implementation(libs.jline.jline) | ||
implementation(libs.org.jline.jline.terminal) | ||
implementation(libs.org.jline.jline.terminal.jna) | ||
implementation(libs.org.jline.jline.reader) | ||
implementation(libs.net.minecrell.terminalconsoleappender) | ||
implementation(libs.org.cloudburstmc.protocol.bedrock.codec) | ||
implementation(libs.org.cloudburstmc.protocol.bedrock.connection) | ||
implementation(libs.org.cloudburstmc.netty.netty.transport.raknet) | ||
implementation(libs.io.netty.netty.transport.native.epoll) | ||
implementation(libs.io.netty.netty.transport.native.kqueue) | ||
implementation(libs.com.nimbusds.nimbus.jose.jwt) | ||
} | ||
|
||
group = "dev.waterdog.waterdogpe" | ||
version = "2.0.3-SNAPSHOT" | ||
description = "waterdog" | ||
java.sourceCompatibility = JavaVersion.VERSION_21 | ||
java.targetCompatibility = JavaVersion.VERSION_21 | ||
|
||
publishing { | ||
publications.create<MavenPublication>("maven") { | ||
from(components["java"]) | ||
} | ||
} | ||
|
||
tasks.withType<JavaCompile> { | ||
options.encoding = "UTF-8" | ||
sourceCompatibility = JavaVersion.VERSION_21.toString() | ||
targetCompatibility = JavaVersion.VERSION_21.toString() | ||
} | ||
|
||
tasks.withType<Javadoc> { | ||
options.encoding = "UTF-8" | ||
} | ||
|
||
tasks.build { | ||
dependsOn(tasks.shadowJar) | ||
} | ||
|
||
tasks.shadowJar{ | ||
transform(com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer::class.java) | ||
|
||
relocate("org.bstats","dev.waterdog.waterdogpe") | ||
} | ||
|
||
application { | ||
mainClass = "dev.waterdog.waterdogpe.WaterdogPE" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[versions] | ||
com-bugsnag-bugsnag = "[3.0,4.0)" | ||
com-google-code-gson-gson = "2.10.1" | ||
com-lmax-disruptor = "3.4.4" | ||
com-nimbusds-nimbus-jose-jwt = "9.10.1" | ||
netty = "4.1.101.Final" | ||
it-unimi-dsi-fastutil = "8.5.12" | ||
jline-jline = "2.14.6" | ||
net-cubespace-yamler-core = "2.4.1-SNAPSHOT" | ||
net-minecrell-terminalconsoleappender = "1.3.0" | ||
org-apache-commons-commons-lang3 = "3.12.0" | ||
org-apache-logging-log4j-log4j-api = "2.17.1" | ||
org-apache-logging-log4j-log4j-core = "2.17.1" | ||
org-bstats-bstats-base = "3.0.1" | ||
org-cloudburstmc-netty-netty-transport-raknet = "1.0.0.CR3-SNAPSHOT" | ||
org-cloudburstmc-protocol-bedrock-codec = "3.0.0.Beta2-SNAPSHOT" | ||
org-cloudburstmc-protocol-bedrock-connection = "3.0.0.Beta2-SNAPSHOT" | ||
org-jline-jline-reader = "3.23.0" | ||
org-jline-jline-terminal = "3.23.0" | ||
org-jline-jline-terminal-jna = "3.23.0" | ||
org-projectlombok-lombok = "1.18.32" | ||
org-yaml-snakeyaml = "1.31" | ||
|
||
[libraries] | ||
com-bugsnag-bugsnag = { module = "com.bugsnag:bugsnag", version.ref = "com-bugsnag-bugsnag" } | ||
com-google-code-gson-gson = { module = "com.google.code.gson:gson", version.ref = "com-google-code-gson-gson" } | ||
com-lmax-disruptor = { module = "com.lmax:disruptor", version.ref = "com-lmax-disruptor" } | ||
com-nimbusds-nimbus-jose-jwt = { module = "com.nimbusds:nimbus-jose-jwt", version.ref = "com-nimbusds-nimbus-jose-jwt" } | ||
io-netty-netty-transport-native-epoll = { module = "io.netty:netty-transport-native-epoll", version.ref = "netty" } | ||
io-netty-netty-transport-native-kqueue = { module = "io.netty:netty-transport-native-kqueue", version.ref = "netty" } | ||
it-unimi-dsi-fastutil = { module = "it.unimi.dsi:fastutil", version.ref = "it-unimi-dsi-fastutil" } | ||
jline-jline = { module = "jline:jline", version.ref = "jline-jline" } | ||
net-cubespace-yamler-core = { module = "net.cubespace:Yamler-Core", version.ref = "net-cubespace-yamler-core" } | ||
net-minecrell-terminalconsoleappender = { module = "net.minecrell:terminalconsoleappender", version.ref = "net-minecrell-terminalconsoleappender" } | ||
org-apache-commons-commons-lang3 = { module = "org.apache.commons:commons-lang3", version.ref = "org-apache-commons-commons-lang3" } | ||
org-apache-logging-log4j-log4j-api = { module = "org.apache.logging.log4j:log4j-api", version.ref = "org-apache-logging-log4j-log4j-api" } | ||
org-apache-logging-log4j-log4j-core = { module = "org.apache.logging.log4j:log4j-core", version.ref = "org-apache-logging-log4j-log4j-core" } | ||
org-bstats-bstats-base = { module = "org.bstats:bstats-base", version.ref = "org-bstats-bstats-base" } | ||
org-cloudburstmc-netty-netty-transport-raknet = { module = "org.cloudburstmc.netty:netty-transport-raknet", version.ref = "org-cloudburstmc-netty-netty-transport-raknet" } | ||
org-cloudburstmc-protocol-bedrock-codec = { module = "org.cloudburstmc.protocol:bedrock-codec", version.ref = "org-cloudburstmc-protocol-bedrock-codec" } | ||
org-cloudburstmc-protocol-bedrock-connection = { module = "org.cloudburstmc.protocol:bedrock-connection", version.ref = "org-cloudburstmc-protocol-bedrock-connection" } | ||
org-jline-jline-reader = { module = "org.jline:jline-reader", version.ref = "org-jline-jline-reader" } | ||
org-jline-jline-terminal = { module = "org.jline:jline-terminal", version.ref = "org-jline-jline-terminal" } | ||
org-jline-jline-terminal-jna = { module = "org.jline:jline-terminal-jna", version.ref = "org-jline-jline-terminal-jna" } | ||
org-projectlombok-lombok = { module = "org.projectlombok:lombok", version.ref = "org-projectlombok-lombok" } | ||
org-yaml-snakeyaml = { module = "org.yaml:snakeyaml", version.ref = "org-yaml-snakeyaml" } |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.