Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit e44350d

Browse files
committed
Initial commit
0 parents  commit e44350d

File tree

14 files changed

+531
-0
lines changed

14 files changed

+531
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 项目排除路径
2+
/.gradle/
3+
/build/

build.gradle

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
plugins {
2+
id 'dev.architectury.loom' version '1.7-SNAPSHOT'
3+
id 'maven-publish'
4+
}
5+
6+
group = project.maven_group
7+
version = "$project.mod_version+mc$project.minecraft_version"
8+
base.archivesName = project.archives_name
9+
10+
loom {
11+
forge {
12+
mixinConfig 'checklistlocalizer.mixins.json'
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+
dependencies {
25+
minecraft "net.minecraft:minecraft:$project.minecraft_version"
26+
mappings "net.fabricmc:yarn:$project.yarn_mappings:v2"
27+
forge "net.minecraftforge:forge:$project.forge_version"
28+
29+
modImplementation(fileTree(dir: 'libs', include: '*.jar'))
30+
}
31+
32+
processResources {
33+
inputs.property 'version', project.version
34+
35+
filesMatching('META-INF/mods.toml') {
36+
expand version: project.version
37+
}
38+
}
39+
40+
java {
41+
withSourcesJar()
42+
43+
sourceCompatibility = JavaVersion.VERSION_17
44+
targetCompatibility = JavaVersion.VERSION_17
45+
}
46+
47+
tasks.withType(JavaCompile).configureEach {
48+
it.options.release = 17
49+
}
50+
51+
// Configure Maven publishing.
52+
publishing {
53+
publications {
54+
mavenJava(MavenPublication) {
55+
from components.java
56+
}
57+
}
58+
59+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
60+
repositories {
61+
// Add repositories to publish to here.
62+
// Notice: This block does NOT have the same function as the block in the top level.
63+
// The repositories here will be used for publishing your artifact, not for
64+
// retrieving dependencies.
65+
}
66+
}

gradle.properties

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Done to increase the memory available to Gradle.
2+
org.gradle.jvmargs=-Xmx1G
3+
loom.platform = forge
4+
5+
# Mod properties
6+
mod_version = 0.1.0
7+
maven_group = org.localizedmc.checklistlocalizer
8+
archives_name = ChecklistLocalizer
9+
10+
# Minecraft properties
11+
minecraft_version = 1.20.1
12+
yarn_mappings = 1.20.1+build.10
13+
14+
# Dependencies
15+
forge_version = 1.20.1-47.3.22

gradle/wrapper/gradle-wrapper.jar

42.4 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.8-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

gradlew

Lines changed: 249 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)