Skip to content

Commit 8b126c2

Browse files
committed
Merge 1.10
2 parents 7204a7d + 8b0e718 commit 8b126c2

File tree

78 files changed

+2514
-776
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+2514
-776
lines changed

bootstrap/.gitignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

bootstrap/build.gradle

Lines changed: 0 additions & 32 deletions
This file was deleted.

bootstrap/src/main/java/net/fabricmc/loom/bootstrap/BootstrappedPlugin.java

Lines changed: 0 additions & 7 deletions
This file was deleted.

bootstrap/src/main/java/net/fabricmc/loom/bootstrap/LoomGradlePluginBootstrap.java

Lines changed: 0 additions & 103 deletions
This file was deleted.

bootstrap/test-project/build.gradle

Lines changed: 0 additions & 8 deletions
This file was deleted.

bootstrap/test-project/settings.gradle

Lines changed: 0 additions & 10 deletions
This file was deleted.

build.gradle

Lines changed: 14 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
2323
}
2424

2525
group = "dev.architectury"
26-
def baseVersion = '1.9'
26+
def baseVersion = '1.10'
2727

2828
def ENV = System.getenv()
2929
def runNumber = ENV.GITHUB_RUN_NUMBER ?: "9999"
@@ -60,15 +60,6 @@ repositories {
6060
}
6161
}
6262

63-
configurations {
64-
bootstrap {
65-
transitive false
66-
}
67-
compileClasspath.extendsFrom bootstrap
68-
runtimeClasspath.extendsFrom bootstrap
69-
testRuntimeClasspath.extendsFrom bootstrap
70-
}
71-
7263
configurations.configureEach {
7364
resolutionStrategy {
7465
// I am sorry, for now
@@ -108,8 +99,6 @@ sourceSets {
10899
dependencies {
109100
implementation gradleApi()
110101

111-
bootstrap project(":bootstrap")
112-
113102
// libraries
114103
implementation libs.commons.io
115104
implementation libs.gson
@@ -201,7 +190,6 @@ jar {
201190
attributes 'Implementation-Version': project.version
202191
}
203192

204-
from configurations.bootstrap.collect { it.isDirectory() ? it : zipTree(it) }
205193
from sourceSets.commonDecompiler.output.classesDirs
206194
from sourceSets.cfr.output.classesDirs
207195
from sourceSets.fernflower.output.classesDirs
@@ -277,7 +265,7 @@ gradlePlugin {
277265
plugins {
278266
fabricLoom {
279267
id = 'dev.architectury.loom'
280-
implementationClass = 'net.fabricmc.loom.bootstrap.LoomGradlePluginBootstrap'
268+
implementationClass = 'net.fabricmc.loom.LoomGradlePlugin'
281269
}
282270
}
283271
}
@@ -298,6 +286,11 @@ test {
298286
maxRetries = 3
299287
}
300288
}
289+
290+
testLogging {
291+
// Log everything to the console
292+
setEvents(TestLogEvent.values().toList())
293+
}
301294
}
302295

303296
// Workaround https://github.com/gradle/gradle/issues/25898
@@ -311,7 +304,7 @@ tasks.withType(Test).configureEach {
311304
}
312305

313306

314-
import org.gradle.api.internal.artifacts.configurations.ConfigurationRoles
307+
import org.gradle.api.tasks.testing.logging.TestLogEvent
315308
import org.gradle.util.GradleVersion
316309
import org.w3c.dom.Document
317310
import org.w3c.dom.Element
@@ -322,18 +315,18 @@ publishing {
322315
if (!isSnapshot && !ENV.EXPERIMENTAL) {
323316
// Also publish a snapshot so people can use the latest version if they wish
324317
snapshot(MavenPublication) { publication ->
325-
groupId project.group
326-
artifactId project.base.archivesName.get()
327-
version baseVersion + '-SNAPSHOT'
318+
groupId = project.group
319+
artifactId = project.base.archivesName.get()
320+
version = baseVersion + '-SNAPSHOT'
328321

329322
from components.java
330323
}
331324

332325
// Manually crate the plugin marker for snapshot versions
333326
snapshotPlugin(MavenPublication) {
334-
groupId 'dev.architectury.loom'
335-
artifactId 'dev.architectury.loom.gradle.plugin'
336-
version baseVersion + '-SNAPSHOT'
327+
groupId = 'dev.architectury.loom'
328+
artifactId = 'dev.architectury.loom.gradle.plugin'
329+
version = baseVersion + '-SNAPSHOT'
337330

338331
pom.withXml({
339332
// Based off org.gradle.plugin.devel.plugins.MavenPluginPublishPlugin
@@ -365,21 +358,6 @@ publishing {
365358
}
366359
}
367360

368-
// Need to tweak this file to pretend we are compatible with j8 so the bootstrap will run.
369-
tasks.withType(GenerateModuleMetadata).configureEach {
370-
doLast {
371-
def file = outputFile.get().asFile
372-
373-
def metadata = new groovy.json.JsonSlurper().parseText(file.text)
374-
375-
metadata.variants.each {
376-
it.attributes["org.gradle.jvm.version"] = 8
377-
}
378-
379-
file.text = groovy.json.JsonOutput.toJson(metadata)
380-
}
381-
}
382-
383361
// A task to output a json file with a list of all the test to run
384362
tasks.register('writeActionsTestMatrix') {
385363
doLast {

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[versions]
2-
kotlin = "2.0.20"
2+
kotlin = "2.0.21"
33
asm = "9.7.1"
44
commons-io = "2.15.1"
55
gson = "2.10.1"
66
guava = "33.0.0-jre"
77

88
stitch = "0.6.2"
9-
tiny-remapper = "0.10.4"
9+
tiny-remapper = "0.11.0"
1010
access-widener = "2.1.0"
11-
mapping-io = "0.6.1"
11+
mapping-io = "0.7.1"
1212
lorenz-tiny = "4.0.2"
1313
mercury = "0.1.4.17"
1414
loom-native = "0.2.0"

gradle/runtime.libs.versions.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
# Decompilers
33
fernflower = "2.0.0"
44
cfr = "0.2.2"
5-
vineflower = "1.10.1"
5+
vineflower = "1.11.0"
66

77
# Runtime depedencies
88
mixin-compile-extensions = "0.6.0"
99
dev-launch-injector = "0.2.1+build.8"
1010
terminal-console-appender = "1.3.0"
1111
jetbrains-annotations = "25.0.0"
1212
native-support = "1.0.1"
13+
fabric-installer = "1.0.1"
1314

1415
# Forge Runtime depedencies
1516
javax-annotations = "3.0.2"
@@ -33,6 +34,7 @@ dev-launch-injector = { module = "net.fabricmc:dev-launch-injector", version.ref
3334
terminal-console-appender = { module = "net.minecrell:terminalconsoleappender", version.ref = "terminal-console-appender" }
3435
jetbrains-annotations = { module = "org.jetbrains:annotations", version.ref = "jetbrains-annotations" }
3536
native-support = { module = "net.fabricmc:fabric-loom-native-support", version.ref = "native-support" }
37+
fabric-installer = { module = "net.fabricmc:fabric-installer", version.ref = "fabric-installer" }
3638

3739
# Forge Runtime depedencies
3840
javax-annotations = { module = "com.google.code.findbugs:jsr305", version.ref = "javax-annotations" }

gradle/test.libs.versions.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ mockito = "5.14.2"
66
java-debug = "0.52.0"
77
mixin = "0.15.3+mixin.0.8.7"
88

9-
gradle-nightly = "8.12-20241110002642+0000"
9+
gradle-nightly = "8.14-20250208001853+0000"
1010
fabric-loader = "0.16.9"
11-
fabric-installer = "1.0.1"
1211

1312
[libraries]
1413
spock = { module = "org.spockframework:spock-core", version.ref = "spock" }
@@ -19,5 +18,4 @@ mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" }
1918
java-debug = { module = "com.microsoft.java:com.microsoft.java.debug.core", version.ref = "java-debug" }
2019
mixin = { module = "net.fabricmc:sponge-mixin", version.ref = "mixin" }
2120
gradle-nightly = { module = "org.gradle:dummy", version.ref = "gradle-nightly" }
22-
fabric-loader = { module = "net.fabricmc:fabric-loader", version.ref = "fabric-loader" }
23-
fabric-installer = { module = "net.fabricmc:fabric-installer", version.ref = "fabric-installer" }
21+
fabric-loader = { module = "net.fabricmc:fabric-loader", version.ref = "fabric-loader" }

0 commit comments

Comments
 (0)