-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from zeroBzeroT/1.20.4
1.20.4
- Loading branch information
Showing
24 changed files
with
509 additions
and
709 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "gradle" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
assignees: | ||
- "bierdosenhalter" | ||
- "nothub" | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
assignees: | ||
- "bierdosenhalter" | ||
- "nothub" |
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,29 @@ | ||
name: '🚔' | ||
on: [ push, pull_request ] | ||
permissions: | ||
contents: write | ||
jobs: | ||
ci: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: gradle/actions/wrapper-validation@v3 | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
check-latest: true | ||
cache: 'gradle' | ||
|
||
- run: ./gradlew --console plain --no-daemon --full-stacktrace check build | ||
|
||
- uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
body: 'automated release at commit ${{ github.sha }}' | ||
files: 'build/dist/*.jar' |
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 |
---|---|---|
@@ -1,31 +1,3 @@ | ||
# ignore all files | ||
* | ||
# but include directories | ||
!*/ | ||
|
||
# git | ||
!/**/.gitkeep | ||
!/.gitignore | ||
!/.gitmodules | ||
|
||
# java | ||
!/src/** | ||
|
||
# maven | ||
!/**/pom.xml | ||
|
||
# submodules | ||
!/convenience | ||
|
||
# runtime dependencies | ||
!/plugin-dependencies/** | ||
|
||
# misc | ||
!/.github/** | ||
!/.run/** | ||
!/*.md | ||
!/.editorconfig | ||
!/LICENSE | ||
|
||
# logo | ||
!/logo.jpg | ||
/.gradle/ | ||
/build/ | ||
/run/ |
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
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,68 @@ | ||
plugins { | ||
id 'java' | ||
id 'xyz.jpenilla.run-paper' version '2.3.0' | ||
} | ||
|
||
group = 'org.cloudanarchy' | ||
version = '2.1.0' | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { | ||
url = 'https://repo.papermc.io/repository/maven-public/' | ||
content { | ||
includeGroup 'io.papermc.paper' | ||
includeGroup 'net.kyori' | ||
includeGroup 'net.md-5' | ||
} | ||
} | ||
maven { | ||
// ProtocolLib | ||
url = 'https://repo.dmulloy2.net/nexus/repository/public/' | ||
content { | ||
includeGroup 'com.comphenix.protocol' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
// https://jd.papermc.io/paper/1.20/ | ||
compileOnly group: 'io.papermc.paper', name: 'paper-api', version: "${project.minecraft_version}-R0.1-SNAPSHOT" | ||
// https://github.com/dmulloy2/ProtocolLib | ||
compileOnly group: 'com.comphenix.protocol', name: 'ProtocolLib', version: "${project.protocollib_version}-SNAPSHOT" | ||
} | ||
|
||
java { | ||
toolchain.languageVersion = JavaLanguageVersion.of(17) | ||
} | ||
tasks.withType(JavaCompile).configureEach { | ||
it.sourceCompatibility = it.targetCompatibility = JavaVersion.toVersion(17) | ||
it.options.release = 17 | ||
it.options.encoding = 'UTF-8' | ||
} | ||
|
||
processResources { | ||
filteringCharset "UTF-8" | ||
filesMatching("plugin.yml") { | ||
filter { line -> line.replace("@VERSION@", project.version) } | ||
} | ||
} | ||
|
||
def artifactName(String type, String fileExt) { | ||
return "${project.name.toLowerCase()}-${project.version}+${project.minecraft_version}-${type}.${fileExt}" | ||
} | ||
|
||
jar.archiveFileName.set(artifactName('paper', 'jar')) | ||
jar.destinationDirectory.set(layout.buildDirectory.dir('dist')) | ||
|
||
tasks { | ||
runServer { | ||
runDirectory = layout.projectDirectory.dir('run') | ||
minecraftVersion(project.minecraft_version) | ||
dependsOn('build') | ||
systemProperty('com.mojang.eula.agree', 'true') | ||
downloadPlugins { | ||
url("https://ci.dmulloy2.net/job/ProtocolLib/689/artifact/build/libs/ProtocolLib.jar") | ||
} | ||
} | ||
} |
Submodule convenience
deleted from
7a4ca0
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,2 @@ | ||
minecraft_version=1.20.4 | ||
protocollib_version=5.2.0 |
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.