Skip to content

Commit 0f91048

Browse files
committed
init
0 parents  commit 0f91048

12 files changed

Lines changed: 1213 additions & 0 deletions

File tree

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MacOS DS_Store files
2+
.DS_Store
3+
4+
# Gradle cache folder
5+
.gradle
6+
7+
# Gradle build folder
8+
build
9+
10+
# IntelliJ
11+
out/
12+
.idea
13+
*.iml
14+
# mpeltonen/sbt-idea plugin
15+
.idea_modules/
16+
17+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
18+
hs_err_pid*
19+
20+
# Common working directory
21+
run

LICENSE.txt

Lines changed: 692 additions & 0 deletions
Large diffs are not rendered by default.

build.gradle

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
plugins {
2+
id 'fabric-loom' version '1.15-SNAPSHOT'
3+
id 'maven-publish'
4+
}
5+
6+
version = project.mod_version
7+
group = project.maven_group
8+
9+
base {
10+
archivesName = project.archives_base_name
11+
}
12+
13+
14+
repositories {
15+
// Add repositories to retrieve artifacts from in here.
16+
// You should only use this when depending on other mods because
17+
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
18+
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
19+
// for more information about repositories.
20+
}
21+
22+
dependencies {
23+
// To change the versions see the gradle.properties file
24+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
25+
mappings loom.officialMojangMappings()
26+
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
27+
28+
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
29+
30+
// Source: https://mvnrepository.com/artifact/net.freeutils/jlhttp
31+
implementation("net.freeutils:jlhttp:3.2")
32+
}
33+
34+
processResources {
35+
inputs.property "version", project.version
36+
inputs.property "minecraft_version", project.minecraft_version
37+
inputs.property "loader_version", project.loader_version
38+
filteringCharset "UTF-8"
39+
40+
filesMatching("fabric.mod.json") {
41+
expand "version": project.version,
42+
"minecraft_version": project.minecraft_version,
43+
"loader_version": project.loader_version
44+
}
45+
}
46+
47+
def targetJavaVersion = 21
48+
tasks.withType(JavaCompile).configureEach {
49+
// ensure that the encoding is set to UTF-8, no matter what the system default is
50+
// this fixes some edge cases with special characters not displaying correctly
51+
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
52+
// If Javadoc is generated, this must be specified in that task too.
53+
it.options.encoding = "UTF-8"
54+
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
55+
it.options.release.set(targetJavaVersion)
56+
}
57+
}
58+
59+
java {
60+
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
61+
if (JavaVersion.current() < javaVersion) {
62+
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
63+
}
64+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
65+
// if it is present.
66+
// If you remove this line, sources will not be generated.
67+
withSourcesJar()
68+
}
69+
70+
jar {
71+
from("LICENSE") {
72+
rename { "${it}_${project.archives_base_name}" }
73+
}
74+
}
75+
76+
// configure the maven publication
77+
publishing {
78+
publications {
79+
create("mavenJava", MavenPublication) {
80+
artifactId = project.archives_base_name
81+
from components.java
82+
}
83+
}
84+
85+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
86+
repositories {
87+
// Add repositories to publish to here.
88+
// Notice: This block does NOT have the same function as the block in the top level.
89+
// The repositories here will be used for publishing your artifact, not for
90+
// retrieving dependencies.
91+
}
92+
}

gradle.properties

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Done to increase the memory available to gradle.
2+
org.gradle.jvmargs=-Xmx1G
3+
# Fabric Properties
4+
# check these on https://modmuss50.me/fabric.html
5+
minecraft_version=1.21.11
6+
loader_version=0.18.6
7+
# Mod Properties
8+
mod_version=1.0-SNAPSHOT
9+
maven_group=fn10
10+
archives_base_name=servermodmanager
11+
# Dependencies
12+
# check this on https://modmuss50.me/fabric.html
13+
fabric_version=0.141.3+1.21.11

gradle/wrapper/gradle-wrapper.jar

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

gradlew

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