Skip to content

Commit 60883d6

Browse files
fix: incorrect mc version range, continued gradle improvements
1 parent cecb410 commit 60883d6

7 files changed

Lines changed: 10 additions & 15 deletions

File tree

build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'java-library'
3-
id 'fabric-loom' version '1.11-SNAPSHOT' apply(false)
3+
id 'fabric-loom' version '1.12.0-alpha.48' apply(false)
44
id 'net.neoforged.moddev' version '2.0.112' apply(false)
55
id "me.modmuss50.mod-publish-plugin" version "0.8.4"
66
}
@@ -12,18 +12,16 @@ tasks.named('wrapper', Wrapper).configure {
1212
version = mod_version
1313
group = 'pro.mikey'
1414

15-
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
16-
1715
allprojects {
1816
apply plugin: 'idea'
1917
apply plugin: 'java-library'
2018
apply plugin: 'maven-publish'
2119

2220
version = mod_version
23-
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
2421

2522
tasks.withType(JavaCompile).configureEach {
2623
options.encoding = 'UTF-8'
24+
options.release = 21
2725
}
2826

2927
idea {

common/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies {
1616

1717
testImplementation platform('org.junit:junit-bom:5.10.3')
1818
testImplementation 'org.junit.jupiter:junit-jupiter'
19+
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
1920

2021
compileOnly group: 'org.spongepowered', name: 'mixin', version: '0.8.5'
2122
}
@@ -31,4 +32,4 @@ repositories {
3132
includeGroup "org.spongepowered"
3233
}
3334
}
34-
}
35+
}

fabric/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ publishing {
4444
publications {
4545
mavenJava(MavenPublication) {
4646
groupId project.group
47-
artifactId project.archivesBaseName
47+
artifactId project.base.archivesName.get()
4848
version project.version
4949
from components.java
5050
}

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ parchment_minecraft_version=1.21.8
1111
parchment_mappings_version=2025.09.14
1212

1313
mod_id=xray
14-
mod_version=21.9.0
14+
mod_version=21.9.1
1515
minecraft_version=1.21.9
16-
minecraft_version_range=1.21.9,1.21.10
16+
minecraft_version_range=1.21.9,1.22
1717

1818
# Forge
1919
forge_version=21.9.11-beta

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

neoforge/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ repositories {
4040
publishing {
4141
publications {
4242
mavenJava(MavenPublication) {
43-
artifactId = rootProject.archivesBaseName
43+
artifactId = rootProject.base.archivesName.get()
4444
from components.java
4545
}
4646
}

settings.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,4 @@ pluginManagement {
88
}
99
}
1010

11-
plugins {
12-
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.10.0'
13-
}
14-
15-
include("common", "neoforge", "fabric")
11+
include("common", "neoforge", "fabric")

0 commit comments

Comments
 (0)