Skip to content

Commit 390404d

Browse files
committed
Merge remote-tracking branch 'origin/1.20.6' into 1.21
2 parents 99da801 + 57af3c6 commit 390404d

File tree

6 files changed

+15
-21
lines changed

6 files changed

+15
-21
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@ ModernFix is a standard Minecraft-style Gradle project powered by Architectury L
22
run the `build` task (e.g. via `./gradlew build`). You can also use `./gradlew forge:build` or `./gradlew fabric:build`
33
to build for just one loader (e.g. when debugging and wanting to rebuild quickly).
44

5-
You must use Java 17 to develop ModernFix as the toolchain requires it. Nonetheless, the 1.16 mod JARs will work on
6-
a Minecraft instance with Java 8.
5+
You must use Java 21 to develop ModernFix as the toolchain requires it. Nonetheless, the built 1.20.1 JAR is still
6+
compatible with Java 17.
77

88
## Submitting pull requests
99

1010
Code or documentation contributions are welcome. Please keep the following points in mind:
1111

12-
* This project supports many Minecraft versions. Ideally, contributions should be made to the oldest relevant MC version.
13-
For instance, a PR optimizing new worldgen should be made to 1.18 (not 1.19 or 1.20) while a PR optimizing something
14-
like recipes should be made to 1.16 (the oldest supported version).
12+
* This project supports many Minecraft versions. Ideally, contributions should be made to the oldest relevant MC version (currently 1.20)
13+
and then they will be ported forward.
1514

1615
This somewhat unconventional policy ensures that all supported versions are treated equal when it comes to development,
1716
rather than the onus being on other modders and players to backport changes that are needed. Changes to older versions are

annotation-processor/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ shadowJar {
4343
// shadowJar bug
4444
include '*.jar'
4545
include 'META-INF/services/javax.annotation.processing.Processor'
46+
include 'META-INF/gradle/incremental.annotation.processors'
4647
include 'org/spongepowered/asm/mixin/Mixin.class'
4748
include 'org/fury_phoenix/**/*'
4849
include {it.getName() == 'OnlyIn.class'}

annotation-processor/src/main/java/org/fury_phoenix/mixinAp/annotation/MixinProcessor.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import javax.annotation.processing.RoundEnvironment;
1717
import javax.annotation.processing.SupportedAnnotationTypes;
1818
import javax.annotation.processing.SupportedOptions;
19-
import javax.annotation.processing.SupportedSourceVersion;
2019
import javax.lang.model.SourceVersion;
2120
import javax.lang.model.element.Element;
2221
import javax.lang.model.element.TypeElement;
@@ -26,7 +25,6 @@
2625

2726
@SupportedAnnotationTypes({"org.spongepowered.asm.mixin.Mixin", "org.embeddedt.modernfix.annotation.ClientOnlyMixin"})
2827
@SupportedOptions({"rootProject.name", "project.name", "org.fury_phoenix.mixinAp.validator.debug"})
29-
@SupportedSourceVersion(SourceVersion.RELEASE_17)
3028
@AutoService(Processor.class)
3129
public class MixinProcessor extends AbstractProcessor {
3230

@@ -38,6 +36,11 @@ public class MixinProcessor extends AbstractProcessor {
3836

3937
private final Map<String, List<String>> mixinConfigList = new HashMap<>();
4038

39+
@Override
40+
public SourceVersion getSupportedSourceVersion() {
41+
return SourceVersion.latest();
42+
}
43+
4144
@Override
4245
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
4346
try {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.fury_phoenix.mixinAp.annotation.MixinProcessor,aggregating

buildSrc/src/main/groovy/modernfix.mod-common-conventions.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ plugins {
66
loom {
77
silentMojangMappingsLicense()
88
accessWidenerPath = file("${rootDir}/common/src/main/resources/modernfix.accesswidener")
9+
mixin {
10+
useLegacyMixinAp = false
11+
}
912
}
1013

1114
dependencies {
@@ -31,7 +34,6 @@ tasks {
3134
}
3235

3336
tasks.withType(JavaCompile) {
34-
options.fork = true
3537
configure(options) {
3638
if (!name.toLowerCase().contains('test')) {
3739
options.compilerArgs << "-ArootProject.name=${rootProject.name}" << "-Aproject.name=${project.name}"

fabric/build.gradle

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,6 @@ configurations {
2626
}
2727
}
2828

29-
// TODO remove
30-
31-
repositories {
32-
maven {
33-
name = "Technici4n"
34-
url = "https://raw.githubusercontent.com/Technici4n/Technici4n-maven/master/"
35-
content {
36-
includeGroup "net.fabricmc.fabric-api"
37-
}
38-
}
39-
}
40-
4129
dependencies {
4230
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
4331
testImplementation "net.fabricmc:fabric-loader-junit:${rootProject.fabric_loader_version}"
@@ -77,7 +65,7 @@ dependencies {
7765
testAgent(project("path": ":test_agent", "configuration": "agentJar"))
7866
}
7967

80-
test {
68+
tasks.named("test") {
8169
useJUnitPlatform()
8270
def runDir = file('test_run')
8371
doFirst() {

0 commit comments

Comments
 (0)