Skip to content

Commit

Permalink
Merge pull request #59 from zeroBzeroT/1.20.4
Browse files Browse the repository at this point in the history
1.20.4
  • Loading branch information
nothub authored Jun 8, 2024
2 parents e7c1280 + 068018b commit 84266c0
Show file tree
Hide file tree
Showing 24 changed files with 509 additions and 709 deletions.
18 changes: 18 additions & 0 deletions .github/dependabot.yaml
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"
38 changes: 0 additions & 38 deletions .github/dependabot.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
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'
49 changes: 0 additions & 49 deletions .github/workflows/release.yml

This file was deleted.

34 changes: 3 additions & 31 deletions .gitignore
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/
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ Plugin for **Paper Minecraft Servers** to provide a static world for queue serve

## Tested Minecraft Versions

- 1.12.2
- 1.20.4
68 changes: 68 additions & 0 deletions build.gradle
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")
}
}
}
1 change: 0 additions & 1 deletion convenience
Submodule convenience deleted from 7a4ca0
2 changes: 2 additions & 0 deletions gradle.properties
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 added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
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
Loading

0 comments on commit 84266c0

Please sign in to comment.