Skip to content

Commit f007388

Browse files
committed
1.21.9: Support Fabric 1.21.9
1 parent 163752b commit f007388

Some content is hidden

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

45 files changed

+1957
-15
lines changed

iCommon-Fabric-1.20.1/src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
],
2929

3030
"depends": {
31-
"fabricloader": ">=0.7.4",
31+
"fabricloader": ">=0.14.0",
3232
"minecraft": "1.20.1"
3333
}
3434
}

iCommon-Fabric-1.20.4/src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
],
2929

3030
"depends": {
31-
"fabricloader": ">=0.7.4",
31+
"fabricloader": ">=0.14.0",
3232
"minecraft": ">=1.20.2- <1.20.3-"
3333
}
3434
}

iCommon-Fabric-1.20.6/src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
],
2929

3030
"depends": {
31-
"fabricloader": ">=0.7.4",
31+
"fabricloader": ">=0.14.0",
3232
"minecraft": ">=1.20.5- <1.20.7-"
3333
}
3434
}

iCommon-Fabric-1.21.1/src/main/resources/fabric.mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"name": "iCommonLib 1.21",
77
"description": "Common API for multi-version functions. ",
88
"authors": [
9-
"Me!"
9+
"isaiah"
1010
],
1111
"contact": {
1212
"homepage": "https://fabricmc.net/",
@@ -28,7 +28,7 @@
2828
],
2929

3030
"depends": {
31-
"fabricloader": ">=0.7.4",
31+
"fabricloader": ">=0.16.0",
3232
"minecraft": ">=1.21.1- <1.21.2-"
3333
}
3434
}

iCommon-Fabric-1.21.4/src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
],
2929

3030
"depends": {
31-
"fabricloader": ">=0.7.4",
31+
"fabricloader": ">=0.16.0",
3232
"minecraft": ">=1.21.3- <1.21.5-"
3333
}
3434
}

iCommon-Fabric-1.21.8/src/main/resources/fabric.mod.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"schemaVersion": 1,
33
"id": "icommon",
4-
"version": "1.21.7",
4+
"version": "1.21.8",
55

6-
"name": "iCommonLib 1.21.5/1.21.7",
7-
"description": "Common API for multi-version functions. ",
6+
"name": "iCommonLib 1.21.8",
7+
"description": "Common API for multi-version functions.",
88
"authors": [
99
"Isaiah"
1010
],
@@ -28,7 +28,7 @@
2828
],
2929

3030
"depends": {
31-
"fabricloader": ">=0.7.4",
32-
"minecraft": ">=1.21.5"
31+
"fabricloader": ">=0.16.0",
32+
"minecraft": ">=1.21.5- <=1.21.8"
3333
}
3434
}

iCommon-Fabric-1.21.9/.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# gradle
2+
3+
.gradle/
4+
build/
5+
out/
6+
classes/
7+
8+
# eclipse
9+
10+
*.launch
11+
12+
# idea
13+
14+
.idea/
15+
*.iml
16+
*.ipr
17+
*.iws
18+
19+
# vscode
20+
21+
.settings/
22+
.vscode/
23+
bin/
24+
.classpath
25+
.project
26+
27+
# macos
28+
29+
*.DS_Store
30+
31+
# fabric
32+
33+
run/

iCommon-Fabric-1.21.9/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Unlicense.org
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
import net.fabricmc.loom.task.RemapJarTask
2+
3+
plugins {
4+
id ("fabric-loom")
5+
id ("maven-publish")
6+
id ("java-library")
7+
}
8+
9+
java {
10+
sourceCompatibility = JavaVersion.VERSION_17
11+
targetCompatibility = JavaVersion.VERSION_17
12+
}
13+
14+
base {
15+
archivesName = "iCommon-Fabric"
16+
version = "1.21.9"
17+
group = "com.javazilla.mods"
18+
}
19+
20+
dependencies {
21+
annotationProcessor("com.pkware.jabel:jabel-javac-plugin:1.0.1-1")
22+
compileOnly("com.pkware.jabel:jabel-javac-plugin:1.0.1-1")
23+
24+
implementation(project(mapOf("path" to ":iCommon-API")))
25+
implementation(project(mapOf("path" to ":iCommon-API")))
26+
27+
// 1.21.8
28+
minecraft("com.mojang:minecraft:1.21.9")
29+
mappings("net.fabricmc:yarn:1.21.9+build.1")
30+
modImplementation("net.fabricmc:fabric-loader:" + project.property("loader_version"))
31+
}
32+
33+
sourceSets {
34+
main {
35+
java {
36+
srcDir("src/main/java")
37+
}
38+
resources {
39+
srcDir("${rootProject.projectDir}/iCommon-API/src/main/resources")
40+
}
41+
}
42+
}
43+
44+
// 1.20.5 now requires JDK 21
45+
tasks.withType<JavaCompile>().configureEach {
46+
sourceCompatibility = JavaVersion.VERSION_21.toString() // for the IDE support
47+
options.release.set(16)
48+
49+
javaCompiler.set(
50+
javaToolchains.compilerFor {
51+
languageVersion.set(JavaLanguageVersion.of(21))
52+
}
53+
)
54+
}
55+
56+
//tasks.getByName("compileJava") {
57+
//sourceCompatibility = 16
58+
//options.release = 8
59+
//}
60+
61+
62+
tasks.withType<Jar> { duplicatesStrategy = DuplicatesStrategy.INHERIT }
63+
64+
tasks.getByName<ProcessResources>("processResources") {
65+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
66+
filesMatching("fabric.mod.json") {
67+
expand(
68+
mutableMapOf(
69+
"version" to "1.1"
70+
)
71+
)
72+
}
73+
}
74+
75+
val remapJar = tasks.getByName<RemapJarTask>("remapJar")
76+
77+
publishing {
78+
publications {
79+
create<MavenPublication>("mavenJava") {
80+
groupId = project.group.toString()
81+
artifactId = project.name.lowercase()
82+
version = project.version.toString()
83+
84+
pom {
85+
name.set(project.name.lowercase())
86+
description.set("A concise description of my library")
87+
url.set("http://www.example.com/")
88+
}
89+
90+
artifact(remapJar)
91+
}
92+
}
93+
94+
repositories {
95+
val mavenUsername: String? by project
96+
val mavenPassword: String? by project
97+
mavenPassword?.let {
98+
maven(url = "https://repo.codemc.io/repository/maven-releases/") {
99+
credentials {
100+
username = mavenUsername
101+
password = mavenPassword
102+
}
103+
}
104+
}
105+
}
106+
}
57.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)