Skip to content

Commit 783efd1

Browse files
Copy fabric 1.21.2 to 1.21.7
Revert 1.21.7 meta updates
1 parent 01d7467 commit 783efd1

21 files changed

+1224
-0
lines changed

fabric/1.21.7/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Fabric - 1.21
2+
3+
This is the branch specifically for fabric 1.21.
4+
Any differences will be listed below. For full documentation, see the `core` branch.

fabric/1.21.7/build.gradle

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
plugins {
2+
id 'fabric-loom' version '1.7-SNAPSHOT'
3+
id 'maven-publish'
4+
}
5+
6+
apply from: '../../global.properties'
7+
8+
group = project.maven_group
9+
archivesBaseName = 'AdvancedBackups-' + modloaderName + "-" + minecraftVersion
10+
11+
loom {
12+
accessWidenerPath = file("src/main/resources/advancedbackups.accesswidener")
13+
}
14+
15+
16+
repositories {
17+
// Add repositories to retrieve artifacts from in here.
18+
// You should only use this when depending on other mods because
19+
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
20+
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
21+
// for more information about repositories.
22+
}
23+
24+
configurations {
25+
// configuration that holds jars to include in the jar
26+
extraLibs
27+
}
28+
29+
dependencies {
30+
// To change the versions see the gradle.properties file
31+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
32+
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
33+
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
34+
35+
// Fabric API. This is technically optional, but you probably want it anyway.
36+
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
37+
38+
// Uncomment the following line to enable the deprecated Fabric API modules.
39+
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
40+
41+
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
42+
43+
implementation files(abCoreLibPath)
44+
extraLibs files(abCoreLibPath)
45+
}
46+
47+
processResources {
48+
inputs.property "version", project.version
49+
50+
filesMatching("fabric.mod.json") {
51+
expand "version": project.version
52+
}
53+
}
54+
55+
tasks.withType(JavaCompile).configureEach {
56+
it.options.release = 21
57+
}
58+
59+
java {
60+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
61+
// if it is present.
62+
// If you remove this line, sources will not be generated.
63+
withSourcesJar()
64+
65+
sourceCompatibility = JavaVersion.VERSION_21
66+
targetCompatibility = JavaVersion.VERSION_21
67+
}
68+
69+
jar {
70+
manifest {
71+
attributes([
72+
"Main-Class" : "computer.heather.advancedbackups.cli.AdvancedBackupsCLI",
73+
"Specification-Title" : "advancedbackups",
74+
"Specification-Vendor" : "Heather White",
75+
"Specification-Version" : "1", // We are version 1 of ourselves
76+
"Implementation-Title" : project.name,
77+
"Implementation-Version" : project.jar.archiveVersion,
78+
"Implementation-Vendor" : "Heather White",
79+
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
80+
])
81+
}
82+
from {
83+
configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) }
84+
}
85+
}
86+
87+
// configure the maven publication
88+
publishing {
89+
publications {
90+
mavenJava(MavenPublication) {
91+
from components.java
92+
}
93+
}
94+
95+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
96+
repositories {
97+
// Add repositories to publish to here.
98+
// Notice: This block does NOT have the same function as the block in the top level.
99+
// The repositories here will be used for publishing your artifact, not for
100+
// retrieving dependencies.
101+
}
102+
}

fabric/1.21.7/gradle.properties

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Done to increase the memory available to gradle.
2+
org.gradle.jvmargs=-Xmx1G
3+
org.gradle.parallel=true
4+
5+
# Fabric Properties
6+
# check these on https://fabricmc.net/develop
7+
minecraft_version=1.21.2
8+
yarn_mappings=1.21.2+build.1
9+
loader_version=0.16.9
10+
11+
# Mod Properties
12+
version=2.0
13+
mod_version=2.0
14+
maven_group=computer.heather.advancedbackups
15+
archives_base_name=advancedbackups
16+
modloaderName =fabric
17+
18+
minecraftVersion =1.21.2
19+
20+
# Dependencies
21+
fabric_version=0.106.1+1.21.2
22+
42.6 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

fabric/1.21.7/gradlew

Lines changed: 252 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)