Sync various build script changes from VR

This commit is contained in:
FlorianMichael 2025-01-02 15:34:50 +01:00
parent 2e6acfaf04
commit 6b495ebb20
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
6 changed files with 28 additions and 21 deletions

2
.github/FUNDING.yml vendored
View File

@ -1,2 +1,2 @@
github: FlorianMichael
custom: ['https://florianmichael.de/donate', 'https://viaversion.com/donate', 'https://creeper123123321.github.io/#donate']
custom: ['https://florianmichael.de/donate', 'https://creeper123123321.github.io/#donate']

10
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

View File

@ -1,4 +1,4 @@
name: ViaRewind-Legacy-Support CI
name: Build
on: [pull_request, push, workflow_dispatch]
jobs:
@ -7,22 +7,15 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
with:
persist-credentials: false
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
check-latest: true
- name: Cache Dependencies
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build
run: ./gradlew build

View File

@ -12,8 +12,10 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
with:
persist-credentials: false
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:

View File

@ -16,8 +16,10 @@ repositories {
}
}
version = project.maven_version
group = project.maven_group
base {
version = project.maven_version
group = project.maven_group
}
dependencies {
compileOnly "com.viaversion:viaversion-api:4.10.0"

View File

@ -2,9 +2,9 @@
org.gradle.jvmargs=-Xmx8G
org.gradle.parallel=true
# project
maven_version=1.5.2-SNAPSHOT
maven_group=com.viaversion
maven_version=1.5.2-SNAPSHOT
mcVersionRange=1.8-1.21
# Smile emoji
mcVersionRange=1.8-1.21.4