mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-01 01:30:00 -04:00
Update loom and misc buildscript fixes (#1864)
Fixes sources not being published to maven.
This commit is contained in:
parent
6f53a73db5
commit
6f8dfbb3f7
3 changed files with 14 additions and 11 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -25,3 +25,7 @@ jobs:
|
|||
with:
|
||||
name: Artifacts
|
||||
path: ./*/build/libs/
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Maven Local
|
||||
path: /root/.m2/repository
|
||||
|
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
@ -1,5 +1,9 @@
|
|||
name: Release
|
||||
on: [workflow_dispatch] # Manual trigger
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
|
@ -23,6 +27,6 @@ jobs:
|
|||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
||||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
||||
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
|
||||
GITHUB_TOKEN: ${{ secrets.GH_API_KEY }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
||||
CHANGELOG: ${{ steps.changelog.outputs.changelog }}
|
||||
|
|
15
build.gradle
15
build.gradle
|
@ -9,7 +9,7 @@ plugins {
|
|||
id "eclipse"
|
||||
id "idea"
|
||||
id "maven-publish"
|
||||
id "fabric-loom" version "0.10.55" apply false
|
||||
id "fabric-loom" version "0.10.60" apply false
|
||||
id "org.cadixdev.licenser" version "0.6.1"
|
||||
id "org.ajoberstar.grgit" version "3.1.0"
|
||||
id "com.matthewprenger.cursegradle" version "1.4.0"
|
||||
|
@ -132,9 +132,8 @@ allprojects {
|
|||
include "**/*.java"
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
archiveClassifier = "sources"
|
||||
from sourceSets.main.allSource
|
||||
java {
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
checkstyle {
|
||||
|
@ -242,10 +241,6 @@ subprojects {
|
|||
genSourcesWithFernFlower.enabled = false
|
||||
genSourcesWithCfr.enabled = false
|
||||
unpickJar.enabled = false
|
||||
|
||||
// Work around a loom bug causing empty jars to be pushed to maven local.
|
||||
publishMavenJavaPublicationToMavenLocal.dependsOn rootProject.tasks.getByName("remapAllJars")
|
||||
publishMavenJavaPublicationToMavenLocal.dependsOn rootProject.tasks.getByName("remapAllSources")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -339,7 +334,7 @@ curseforge {
|
|||
project {
|
||||
id = "306612"
|
||||
changelog = ENV.CHANGELOG ?: "No changelog provided"
|
||||
releaseType = project.prerelease ? "beta" : "release"
|
||||
releaseType = project.prerelease as Boolean ? "beta" : "release"
|
||||
addGameVersion "1.18-Snapshot"
|
||||
addGameVersion "Fabric"
|
||||
|
||||
|
@ -389,7 +384,7 @@ task modrinth(type: com.modrinth.minotaur.TaskModrinthUpload, dependsOn: remapMa
|
|||
projectId = "P7dR8mSH"
|
||||
versionNumber = version
|
||||
versionName = "[$project.minecraft_version] Fabric API $project.version"
|
||||
releaseType = project.prerelease ? "beta" : "release"
|
||||
releaseType = project.prerelease as Boolean ? "beta" : "release"
|
||||
changelog = ENV.CHANGELOG ?: "No changelog provided"
|
||||
|
||||
uploadFile = remapJar
|
||||
|
|
Loading…
Add table
Reference in a new issue