Skip to content

Commit ec0da69

Browse files
committed
Initial commit
0 parents  commit ec0da69

12 files changed

Lines changed: 671 additions & 0 deletions

File tree

.gitignore

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# User-specific stuff
2+
.idea/
3+
4+
*.iml
5+
*.ipr
6+
*.iws
7+
8+
# IntelliJ
9+
out/
10+
# mpeltonen/sbt-idea plugin
11+
.idea_modules/
12+
13+
# JIRA plugin
14+
atlassian-ide-plugin.xml
15+
16+
# Compiled class file
17+
*.class
18+
19+
# Log file
20+
*.log
21+
22+
# BlueJ files
23+
*.ctxt
24+
25+
# Package Files #
26+
*.jar
27+
*.war
28+
*.nar
29+
*.ear
30+
*.zip
31+
*.tar.gz
32+
*.rar
33+
34+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
35+
hs_err_pid*
36+
37+
*~
38+
39+
# temporary files which can be created if a process still has a handle open of a deleted file
40+
.fuse_hidden*
41+
42+
# KDE directory preferences
43+
.directory
44+
45+
# Linux trash folder which might appear on any partition or disk
46+
.Trash-*
47+
48+
# .nfs files are created when an open file is removed but is still being accessed
49+
.nfs*
50+
51+
# General
52+
.DS_Store
53+
.AppleDouble
54+
.LSOverride
55+
56+
# Icon must end with two \r
57+
Icon
58+
59+
# Thumbnails
60+
._*
61+
62+
# Files that might appear in the root of a volume
63+
.DocumentRevisions-V100
64+
.fseventsd
65+
.Spotlight-V100
66+
.TemporaryItems
67+
.Trashes
68+
.VolumeIcon.icns
69+
.com.apple.timemachine.donotpresent
70+
71+
# Directories potentially created on remote AFP share
72+
.AppleDB
73+
.AppleDesktop
74+
Network Trash Folder
75+
Temporary Items
76+
.apdisk
77+
78+
# Windows thumbnail cache files
79+
Thumbs.db
80+
Thumbs.db:encryptable
81+
ehthumbs.db
82+
ehthumbs_vista.db
83+
84+
# Dump file
85+
*.stackdump
86+
87+
# Folder config file
88+
[Dd]esktop.ini
89+
90+
# Recycle Bin used on file shares
91+
$RECYCLE.BIN/
92+
93+
# Windows Installer files
94+
*.cab
95+
*.msi
96+
*.msix
97+
*.msm
98+
*.msp
99+
100+
# Windows shortcuts
101+
*.lnk
102+
103+
.gradle
104+
build/
105+
106+
# Ignore Gradle GUI config
107+
gradle-app.setting
108+
109+
# Cache of project
110+
.gradletasknamecache
111+
112+
**/build/
113+
114+
# Common working directory
115+
run/
116+
117+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
118+
!gradle-wrapper.jar

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 "0.7-SNAPSHOT" // To use chocoloom, change the version to a commit hash
3+
id 'maven-publish'
4+
}
5+
6+
sourceCompatibility = JavaVersion.VERSION_1_8
7+
targetCompatibility = JavaVersion.VERSION_1_8
8+
9+
archivesBaseName = project.archives_base_name
10+
version = "${project.mod_version}+${project.minecraft_version}" as Object
11+
group = project.maven_group
12+
13+
repositories {
14+
maven {
15+
name = "legacy-fabric"
16+
url = "https://maven.legacyfabric.net"
17+
}
18+
}
19+
20+
// Comment out this block if you're using Chocoloom
21+
// Comment when using loom 0.10
22+
minecraft {
23+
intermediaryUrl = {
24+
return "https://maven.legacyfabric.net/net/fabricmc/intermediary/" + it + "/intermediary-" + it + "-v2.jar";
25+
}
26+
}
27+
28+
dependencies {
29+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
30+
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
31+
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
32+
33+
// Fabric API provides hooks for events, item registration, and more. As most mods will need this, it's included by default.
34+
// If you know for a fact you don't, it's not required and can be safely removed.
35+
//modImplementation ("net.legacyfabric.legacy-fabric-api:legacy-fabric-api:${fabric_version}") {
36+
// exclude module: "fabric-loader-1.8.9"
37+
//}
38+
39+
// Hacks that make mac os work
40+
if (System.getProperty("os.name").toLowerCase().contains("mac")) {
41+
implementation 'org.lwjgl.lwjgl:lwjgl_util:2.9.4-nightly-20150209'
42+
implementation 'org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209'
43+
implementation 'org.lwjgl.lwjgl:lwjgl-platform:2.9.4-nightly-20150209'
44+
}
45+
}
46+
47+
// More hacks that make mac os work
48+
if (System.getProperty("os.name").toLowerCase().contains("mac")) {
49+
configurations.all {
50+
resolutionStrategy {
51+
dependencySubstitution {
52+
substitute module('org.lwjgl.lwjgl:lwjgl_util:2.9.2-nightly-201408222') with module('org.lwjgl.lwjgl:lwjgl_util:2.9.4-nightly-20150209')
53+
substitute module('org.lwjgl.lwjgl:lwjgl:2.9.2-nightly-201408222') with module('org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209')
54+
}
55+
force 'org.lwjgl.lwjgl:lwjgl-platform:2.9.4-nightly-20150209'
56+
}
57+
}
58+
}
59+
60+
processResources {
61+
inputs.property "version", project.version
62+
63+
filesMatching("fabric.mod.json") {
64+
expand "version": project.version
65+
}
66+
}
67+
68+
// ensure that the encoding is set to UTF-8, no matter what the system default is
69+
// this fixes some edge cases with special characters not displaying correctly
70+
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
71+
tasks.withType(JavaCompile).configureEach {
72+
it.options.encoding = "UTF-8"
73+
if (JavaVersion.current().isJava9Compatible()) it.options.release = 8
74+
}
75+
76+
java {
77+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
78+
// if it is present.
79+
// If you remove this line, sources will not be generated.
80+
withSourcesJar()
81+
}
82+
83+
jar {
84+
from("LICENSE") {
85+
rename { "${it}_${project.archivesBaseName}"}
86+
}
87+
}
88+
89+
// configure the maven publication
90+
publishing {
91+
publications {
92+
mavenJava(MavenPublication) {
93+
from components.java
94+
}
95+
}
96+
97+
// select the repositories you want to publish to
98+
repositories {
99+
// uncomment to publish to the local maven
100+
// mavenLocal()
101+
}
102+
}

gradle.properties

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# suppress inspection "UnusedProperty" for whole file
2+
# Done to increase the memory available to gradle.
3+
org.gradle.jvmargs=-Xmx2G
4+
5+
# Fabric Properties
6+
minecraft_version = 1.8.9
7+
yarn_mappings = 1.8.9+build.202201091851
8+
loader_version = 0.12.12
9+
10+
# Mod Properties
11+
mod_version = 1.0.1
12+
maven_group = me.voidxwalker
13+
archives_base_name = anchiale

gradle/wrapper/gradle-wrapper.jar

58.1 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)