mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-28 13:15:24 +01:00
Update build dependencies
This commit is contained in:
parent
ac86d891fe
commit
2ffa852c92
2
.github/workflows/gradle.yml
vendored
2
.github/workflows/gradle.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Validate Gradle Wrapper
|
- name: Validate Gradle Wrapper
|
||||||
uses: gradle/wrapper-validation-action@v1
|
uses: gradle/wrapper-validation-action@v2
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
|
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: gradle/wrapper-validation-action@v1
|
- uses: gradle/wrapper-validation-action@v2
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import io.papermc.hangarpublishplugin.model.Platforms
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("io.papermc.hangar-publish-plugin") version "0.1.0"
|
id("io.papermc.hangar-publish-plugin") version "0.1.2"
|
||||||
id("com.modrinth.minotaur") version "2.+"
|
id("com.modrinth.minotaur") version "2.+"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,36 +63,36 @@ if (!isRelease || isMainBranch) { // Only publish releases from the main branch
|
|||||||
|
|
||||||
hangarPublish {
|
hangarPublish {
|
||||||
publications.register("plugin") {
|
publications.register("plugin") {
|
||||||
version.set(suffixedVersion)
|
version = suffixedVersion
|
||||||
id.set("ViaBackwards")
|
id = "ViaBackwards"
|
||||||
channel.set(if (isRelease) "Release" else if (isMainBranch) "Snapshot" else "Alpha")
|
channel = if (isRelease) "Release" else if (isMainBranch) "Snapshot" else "Alpha"
|
||||||
changelog.set(changelogContent)
|
changelog = changelogContent
|
||||||
apiKey.set(System.getenv("HANGAR_TOKEN"))
|
apiKey = System.getenv("HANGAR_TOKEN")
|
||||||
platforms {
|
platforms {
|
||||||
register(Platforms.PAPER) {
|
paper {
|
||||||
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
jar = tasks.shadowJar.flatMap { it.archiveFile }
|
||||||
platformVersions.set(listOf(property("mcVersionRange") as String))
|
platformVersions = listOf(property("mcVersionRange") as String)
|
||||||
dependencies {
|
dependencies {
|
||||||
hangar("ViaVersion") {
|
hangar("ViaVersion") {
|
||||||
required.set(true)
|
required = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
register(Platforms.VELOCITY) {
|
velocity {
|
||||||
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
jar = tasks.shadowJar.flatMap { it.archiveFile }
|
||||||
platformVersions.set(listOf(property("velocityVersion") as String))
|
platformVersions = listOf(property("velocityVersion") as String)
|
||||||
dependencies {
|
dependencies {
|
||||||
hangar("ViaVersion") {
|
hangar("ViaVersion") {
|
||||||
required.set(true)
|
required = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
register(Platforms.WATERFALL) {
|
waterfall {
|
||||||
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
|
jar = tasks.shadowJar.flatMap { it.archiveFile }
|
||||||
platformVersions.set(listOf(property("waterfallVersion") as String))
|
platformVersions = listOf(property("waterfallVersion") as String)
|
||||||
dependencies {
|
dependencies {
|
||||||
hangar("ViaVersion") {
|
hangar("ViaVersion") {
|
||||||
required.set(true)
|
required = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user