build: publish using fill (#1599)
This commit is contained in:
6
.github/workflows/gradle.yml
vendored
6
.github/workflows/gradle.yml
vendored
@@ -14,10 +14,10 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Set up Gradle
|
- name: Set up Gradle
|
||||||
uses: gradle/actions/setup-gradle@v4
|
uses: gradle/actions/setup-gradle@v4
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 21
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: 17
|
java-version: 21
|
||||||
distribution: 'temurin'
|
distribution: 'zulu'
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
|
@@ -6,6 +6,7 @@ log4j = "2.24.3"
|
|||||||
netty = "4.2.1.Final"
|
netty = "4.2.1.Final"
|
||||||
|
|
||||||
[plugins]
|
[plugins]
|
||||||
|
fill = "io.papermc.fill.gradle:1.0.3"
|
||||||
indra-publishing = "net.kyori.indra.publishing:2.0.6"
|
indra-publishing = "net.kyori.indra.publishing:2.0.6"
|
||||||
shadow = "io.github.goooler.shadow:8.1.5"
|
shadow = "io.github.goooler.shadow:8.1.5"
|
||||||
spotless = "com.diffplug.spotless:6.25.0"
|
spotless = "com.diffplug.spotless:6.25.0"
|
||||||
|
@@ -1,9 +1,11 @@
|
|||||||
import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
|
import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
|
||||||
|
import io.papermc.fill.model.BuildChannel
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
application
|
application
|
||||||
id("velocity-init-manifest")
|
id("velocity-init-manifest")
|
||||||
alias(libs.plugins.shadow)
|
alias(libs.plugins.shadow)
|
||||||
|
alias(libs.plugins.fill)
|
||||||
}
|
}
|
||||||
|
|
||||||
application {
|
application {
|
||||||
@@ -108,6 +110,24 @@ tasks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val projectVersion = version as String
|
||||||
|
fill {
|
||||||
|
project("velocity")
|
||||||
|
|
||||||
|
build {
|
||||||
|
channel = BuildChannel.STABLE
|
||||||
|
versionFamily("3.0.0")
|
||||||
|
version(projectVersion)
|
||||||
|
|
||||||
|
downloads {
|
||||||
|
register("server:default") {
|
||||||
|
file = tasks.shadowJar.flatMap { it.archiveFile }
|
||||||
|
nameResolver.set { project, _, version, build -> "$project-$version-$build.jar" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":velocity-api"))
|
implementation(project(":velocity-api"))
|
||||||
implementation(project(":velocity-native"))
|
implementation(project(":velocity-native"))
|
||||||
|
Reference in New Issue
Block a user