-
-
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.
- Loading branch information
0 parents
commit 87025eb
Showing
29 changed files
with
1,890 additions
and
0 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,9 @@ | ||
# | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
# | ||
# Linux start script should use lf | ||
/gradlew text eol=lf | ||
|
||
# These are Windows script files and should use crlf | ||
*.bat text eol=crlf | ||
|
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,25 @@ | ||
name: build | ||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Validate Gradle Wrapper | ||
uses: gradle/actions/wrapper-validation@v4 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
check-latest: true | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Upload Artifacts to GitHub | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Artifacts | ||
path: build/libs/ |
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,14 @@ | ||
name: update-gradle-wrapper | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
|
||
jobs: | ||
update-gradle-wrapper: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Update Gradle Wrapper | ||
uses: gradle-update/update-gradle-wrapper-action@v1 |
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,17 @@ | ||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
*.log.gz | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
# Project files | ||
/.idea/* | ||
!/.idea/copyright/ | ||
/.gradle/ | ||
/build/ | ||
/out/ | ||
/run/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
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,15 @@ | ||
# ViaProxyBeta2Release | ||
[ViaProxy](https://github.com/RaphiMC/ViaProxy) plugin which implements the [Beta2Release](https://github.com/DirtPowered/Beta2Release) proxy. | ||
|
||
**This plugin requires at least Java 21** | ||
|
||
## Installation and Usage | ||
1. Download the latest version from [GitHub Actions](https://github.com/ViaVersionAddons/ViaProxyBeta2Release/actions). | ||
2. Put the jar file into the plugins folder of ViaProxy | ||
3. Run ViaProxy. You should now be able to connect with a beta 1.7.3 client to ViaProxy (same port). | ||
|
||
## Contact | ||
If you encounter any issues, please report them on the | ||
[issue tracker](https://github.com/ViaVersionAddons/ViaProxyBeta2Release/issues). | ||
If you just want to talk or need help using ViaProxyBeta2Release feel free to join my | ||
[Discord](https://discord.gg/dCzT9XHEWu). |
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,77 @@ | ||
plugins { | ||
id "java" | ||
} | ||
|
||
base { | ||
java.toolchain.languageVersion = JavaLanguageVersion.of(21) | ||
compileJava.options.encoding = compileTestJava.options.encoding = javadoc.options.encoding = "UTF-8" | ||
|
||
group = project.maven_group ?: rootProject.maven_group | ||
archivesName = project.maven_name ?: rootProject.maven_name | ||
version = project.maven_version ?: rootProject.maven_version | ||
} | ||
|
||
configurations { | ||
include | ||
|
||
implementation.extendsFrom include | ||
api.extendsFrom include | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { | ||
name = "ViaVersion" | ||
url = "https://repo.viaversion.com" | ||
} | ||
maven { | ||
name = "Sonatype Snapshots" | ||
url = "https://oss.sonatype.org/content/repositories/snapshots" | ||
} | ||
maven { | ||
name = "DirtPowered Releases" | ||
url = "https://repo.mzga.dev/releases" | ||
} | ||
maven { | ||
name = "DirtPowered Snapshots" | ||
url = "https://repo.mzga.dev/snapshots" | ||
} | ||
maven { | ||
name = "Jitpack" | ||
url = "https://jitpack.io" | ||
|
||
content { | ||
includeGroup "com.github.steveice10" | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation "net.raphimc:ViaProxy:3.3.3" | ||
|
||
include "dev.mzga:Beta2Release:1.0-SNAPSHOT" | ||
} | ||
|
||
processResources { | ||
inputs.property "version", project.version | ||
|
||
filesMatching("viaproxy.yml") { | ||
expand "version": project.version | ||
} | ||
} | ||
|
||
jar { | ||
dependsOn configurations.include | ||
from { | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
configurations.include.collect { | ||
zipTree(it) | ||
} | ||
} { | ||
exclude "META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA", "io/netty/" | ||
} | ||
|
||
from("LICENSE") { | ||
rename { "${it}_${project.name ?: rootProject.name}" } | ||
} | ||
} |
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 @@ | ||
org.gradle.daemon=true | ||
org.gradle.parallel=true | ||
org.gradle.configureondemand=true | ||
|
||
maven_group=net.raphimc | ||
maven_name=ViaProxyBeta2Release | ||
maven_version=1.0.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,8 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionSha256Sum=5b9c5eb3f9fc2c94abaea57d90bd78747ca117ddbbf96c859d3741181a12bf2a | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.