mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-22 11:45:47 +01:00
Update ViaVersion, CI and MC dependencies. (#260)
* Update ViaVersion, CI and MC dependencies. * Ensure publish only works on ViaVersion repo. * Fix Mod Menu versions in 1.14.4 and 1.15.2. * Update yarn for 1.18.2, 1.19.4 and 1.20.1.
This commit is contained in:
parent
c55cd801ec
commit
bfc295e5b8
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@ -1,8 +1,3 @@
|
|||||||
# Automatically build the project and run any configured tests for every push
|
|
||||||
# and submitted pull request. This can help catch issues that only occur on
|
|
||||||
# certain platforms or Java versions, and provides a first line of defence
|
|
||||||
# against bad commits.
|
|
||||||
|
|
||||||
name: build
|
name: build
|
||||||
on: [ pull_request, push ]
|
on: [ pull_request, push ]
|
||||||
|
|
||||||
@ -10,13 +5,17 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout Repository
|
||||||
- uses: gradle/wrapper-validation-action@v1
|
uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- name: Validate Gradle Wrapper
|
||||||
|
uses: gradle/wrapper-validation-action@v1
|
||||||
|
- name: Set up JDK 17
|
||||||
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- uses: actions/cache@v3
|
- name: Cache Dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
@ -24,9 +23,10 @@ jobs:
|
|||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
- name: build
|
- name: Build with Gradle
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
- uses: actions/upload-artifact@v3
|
- name: Upload Artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Artifacts
|
name: Artifacts
|
||||||
path: build/libs/
|
path: build/libs/
|
||||||
|
22
.github/workflows/publish.yml
vendored
22
.github/workflows/publish.yml
vendored
@ -1,27 +1,27 @@
|
|||||||
# Automatically build the project and run any configured tests for every push
|
|
||||||
# and submitted pull request. This can help catch issues that only occur on
|
|
||||||
# certain platforms or Java versions, and provides a first line of defence
|
|
||||||
# against bad commits.
|
|
||||||
|
|
||||||
name: publish
|
name: publish
|
||||||
on: [workflow_dispatch] # Manual trigger
|
on: [workflow_dispatch] # Manual trigger
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
publish:
|
||||||
|
if: github.repository_owner == 'ViaVersion'
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout Repository
|
||||||
- uses: gradle/wrapper-validation-action@v1
|
uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- name: Validate Gradle Wrapper
|
||||||
|
uses: gradle/wrapper-validation-action@v1
|
||||||
|
- name: Set up JDK 17
|
||||||
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: build and publish
|
- name: Build and Publish
|
||||||
env:
|
env:
|
||||||
CURSEFORGE_API_KEY: ${{ secrets.CREEPER_CF }}
|
CURSEFORGE_API_KEY: ${{ secrets.CREEPER_CF }}
|
||||||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
||||||
run: ./gradlew curseforge modrinth
|
run: ./gradlew curseforge modrinth
|
||||||
- uses: actions/upload-artifact@v3
|
- name: Upload Artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Artifacts
|
name: Artifacts
|
||||||
path: build/libs/
|
path: build/libs/
|
@ -11,9 +11,9 @@ plugins {
|
|||||||
id "maven-publish"
|
id "maven-publish"
|
||||||
id "org.ajoberstar.grgit" version "5.2.0"
|
id "org.ajoberstar.grgit" version "5.2.0"
|
||||||
id "com.matthewprenger.cursegradle" version "1.4.0"
|
id "com.matthewprenger.cursegradle" version "1.4.0"
|
||||||
id "com.modrinth.minotaur" version "2.7.5"
|
id "com.modrinth.minotaur" version "2.8.1"
|
||||||
id "fabric-loom" version "1.2-SNAPSHOT" apply false
|
id "fabric-loom" version "1.2-SNAPSHOT" apply false
|
||||||
id "com.github.ben-manes.versions" version "0.46.0"
|
id "com.github.ben-manes.versions" version "0.47.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
def ENV = System.getenv()
|
def ENV = System.getenv()
|
||||||
|
@ -3,6 +3,6 @@ dependencies {
|
|||||||
mappings("net.fabricmc:yarn:1.14.4+build.18:v2")
|
mappings("net.fabricmc:yarn:1.14.4+build.18:v2")
|
||||||
|
|
||||||
modImplementation("net.fabricmc.fabric-api:fabric-api:0.28.5+1.14")
|
modImplementation("net.fabricmc.fabric-api:fabric-api:0.28.5+1.14")
|
||||||
modImplementation("io.github.prospector:modmenu:1.7.16.1.14.4+build.128")
|
modImplementation("io.github.prospector:modmenu:1.7.17+build.1")
|
||||||
modImplementation("com.github.TinfoilMC:ClientCommands:1.1.0")
|
modImplementation("com.github.TinfoilMC:ClientCommands:1.1.0")
|
||||||
}
|
}
|
@ -3,6 +3,6 @@ dependencies {
|
|||||||
mappings("net.fabricmc:yarn:1.15.2+build.17:v2")
|
mappings("net.fabricmc:yarn:1.15.2+build.17:v2")
|
||||||
|
|
||||||
modImplementation("net.fabricmc.fabric-api:fabric-api:0.28.5+1.15")
|
modImplementation("net.fabricmc.fabric-api:fabric-api:0.28.5+1.15")
|
||||||
modImplementation("io.github.prospector:modmenu:1.10.2+build.32")
|
modImplementation("io.github.prospector:modmenu:1.10.4+build.1")
|
||||||
modImplementation("com.github.TinfoilMC:ClientCommands:1.1.0")
|
modImplementation("com.github.TinfoilMC:ClientCommands:1.1.0")
|
||||||
}
|
}
|
@ -3,5 +3,5 @@ dependencies {
|
|||||||
mappings("net.fabricmc:yarn:1.16.5+build.10:v2")
|
mappings("net.fabricmc:yarn:1.16.5+build.10:v2")
|
||||||
|
|
||||||
modImplementation("net.fabricmc.fabric-api:fabric-api:0.42.0+1.16")
|
modImplementation("net.fabricmc.fabric-api:fabric-api:0.42.0+1.16")
|
||||||
modImplementation("com.terraformersmc:modmenu:1.16.9")
|
modImplementation("com.terraformersmc:modmenu:1.16.23")
|
||||||
}
|
}
|
@ -3,5 +3,5 @@ dependencies {
|
|||||||
mappings("net.fabricmc:yarn:1.17.1+build.65:v2")
|
mappings("net.fabricmc:yarn:1.17.1+build.65:v2")
|
||||||
|
|
||||||
modImplementation("net.fabricmc.fabric-api:fabric-api:0.46.1+1.17")
|
modImplementation("net.fabricmc.fabric-api:fabric-api:0.46.1+1.17")
|
||||||
modImplementation("com.terraformersmc:modmenu:2.0.2")
|
modImplementation("com.terraformersmc:modmenu:2.0.17")
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
dependencies {
|
dependencies {
|
||||||
minecraft("com.mojang:minecraft:1.18.2")
|
minecraft("com.mojang:minecraft:1.18.2")
|
||||||
mappings("net.fabricmc:yarn:1.18.2+build.3:v2")
|
mappings("net.fabricmc:yarn:1.18.2+build.4:v2")
|
||||||
|
|
||||||
modImplementation("net.fabricmc.fabric-api:fabric-api:0.55.1+1.18.2")
|
modImplementation("net.fabricmc.fabric-api:fabric-api:0.76.0+1.18.2")
|
||||||
modImplementation("com.terraformersmc:modmenu:3.0.0")
|
modImplementation("com.terraformersmc:modmenu:3.2.5")
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
dependencies {
|
dependencies {
|
||||||
minecraft("com.mojang:minecraft:1.19.4-rc2")
|
minecraft("com.mojang:minecraft:1.19.4")
|
||||||
mappings("net.fabricmc:yarn:1.19.4-rc2+build.1:v2")
|
mappings("net.fabricmc:yarn:1.19.4+build.2:v2")
|
||||||
|
|
||||||
modImplementation("net.fabricmc.fabric-api:fabric-api:0.75.3+1.19.4")
|
modImplementation("net.fabricmc.fabric-api:fabric-api:0.83.0+1.19.4")
|
||||||
modImplementation("com.terraformersmc:modmenu:5.0.0-alpha.4")
|
modImplementation("com.terraformersmc:modmenu:6.2.3")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.compileJava {
|
tasks.compileJava {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
dependencies {
|
dependencies {
|
||||||
minecraft("com.mojang:minecraft:1.20")
|
minecraft("com.mojang:minecraft:1.20.1")
|
||||||
mappings("net.fabricmc:yarn:1.20+build.1:v2")
|
mappings("net.fabricmc:yarn:1.20.1+build.2:v2")
|
||||||
|
|
||||||
modImplementation("net.fabricmc.fabric-api:fabric-api:0.83.0+1.20")
|
modImplementation("net.fabricmc.fabric-api:fabric-api:0.83.1+1.20.1")
|
||||||
modImplementation("com.terraformersmc:modmenu:7.0.0")
|
modImplementation("com.terraformersmc:modmenu:7.1.0")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.compileJava {
|
tasks.compileJava {
|
||||||
|
Loading…
Reference in New Issue
Block a user