Skip to content

Commit

Permalink
Update to Loom 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Feb 14, 2025
1 parent c502408 commit 355d3c0
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish 1.9 experimental
name: Publish 1.10 experimental

on:
push:
branches:
- "exp/1.9"
- "exp/1.10"

jobs:
build:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish 1.9
name: Publish 1.10

on:
push:
branches:
- "dev/1.9"
- "dev/1.10"

jobs:
build:
Expand Down
16 changes: 8 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

group = "babric"
base.archivesName = project.name
def baseVersion = "1.9"
def baseVersion = "1.10"

def ENV = System.getenv()

Expand Down Expand Up @@ -43,7 +43,7 @@ dependencies {
implementation(gradleApi())

implementation("net.fabricmc:fabric-loom:${loomVersion}")
compileOnly("net.fabricmc:mapping-io:0.6.1")
compileOnly("net.fabricmc:mapping-io:0.7.1")
api("babric:stitch:0.6.2-babric.1")

testImplementation(platform("org.junit:junit-bom:5.9.1"))
Expand Down Expand Up @@ -94,18 +94,18 @@ publishing {
if (!ENV.containsKey("EXPERIMENTAL") && !ENV.EXPERIMENTAL) {
// Also publish a snapshot so people can use the latest version if they wish
snapshot(MavenPublication) { publication ->
groupId project.group
artifactId project.base.archivesName.get()
version baseVersion + '-SNAPSHOT'
groupId = project.group
artifactId = project.base.archivesName.get()
version = baseVersion + '-SNAPSHOT'

from components.java
}

// Manually crate the plugin marker for snapshot versions
snapshotPlugin(MavenPublication) { publication ->
groupId 'babric-loom-extension'
artifactId 'babric-loom-extension.gradle.plugin'
version baseVersion + '-SNAPSHOT'
groupId = 'babric-loom-extension'
artifactId = 'babric-loom-extension.gradle.plugin'
version = baseVersion + '-SNAPSHOT'

pom.withXml({
// Based off org.gradle.plugin.devel.plugins.MavenPluginPublishPlugin
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Mar 21 21:38:16 CET 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
1 change: 0 additions & 1 deletion src/main/java/babric/processor/GambacLibraryProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import net.fabricmc.loom.configuration.providers.minecraft.library.LibraryProcessor;
import net.fabricmc.loom.util.Platform;
import org.gradle.api.Project;
import org.gradle.api.artifacts.dsl.RepositoryHandler;

import java.util.function.Consumer;
import java.util.function.Predicate;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/babric/processor/LWJGL2LibraryProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import net.fabricmc.loom.configuration.providers.minecraft.library.LibraryContext;
import net.fabricmc.loom.configuration.providers.minecraft.library.LibraryProcessor;
import net.fabricmc.loom.util.Platform;
import org.gradle.api.artifacts.dsl.RepositoryHandler;

import java.util.function.Consumer;
import java.util.function.Predicate;
Expand Down
2 changes: 1 addition & 1 deletion test-mod/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version "1.9-SNAPSHOT"
id 'fabric-loom' version "1.10-SNAPSHOT"
id 'maven-publish'
id 'babric-loom-extension'
}
Expand Down
2 changes: 1 addition & 1 deletion test-mod/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 355d3c0

Please sign in to comment.