Skip to content

Commit 5284cf5

Browse files
authored
Merge pull request #1 from Jiingy/Jiingy-Jineric-Mod
Added More Stuff
2 parents 1d9f1c1 + e84289f commit 5284cf5

Some content is hidden

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

61 files changed

+904
-0
lines changed

build.gradle

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
plugins {
2+
id 'fabric-loom' version '0.5-SNAPSHOT'
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
11+
group = project.maven_group
12+
13+
dependencies {
14+
// To change the versions see the gradle.properties file
15+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
16+
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
17+
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
18+
19+
// Fabric API. This is technically optional, but you probably want it anyway.
20+
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
21+
22+
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
23+
// You may need to force-disable transitiveness on them.
24+
}
25+
26+
processResources {
27+
inputs.property "version", project.version
28+
29+
filesMatching("fabric.mod.json") {
30+
expand "version": project.version
31+
}
32+
}
33+
34+
tasks.withType(JavaCompile).configureEach {
35+
// ensure that the encoding is set to UTF-8, no matter what the system default is
36+
// this fixes some edge cases with special characters not displaying correctly
37+
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
38+
// If Javadoc is generated, this must be specified in that task too.
39+
it.options.encoding = "UTF-8"
40+
41+
// The Minecraft launcher currently installs Java 8 for users, so your mod probably wants to target Java 8 too
42+
// JDK 9 introduced a new way of specifying this that will make sure no newer classes or methods are used.
43+
// We'll use that if it's available, but otherwise we'll use the older option.
44+
def targetVersion = 8
45+
if (JavaVersion.current().isJava9Compatible()) {
46+
it.options.release = targetVersion
47+
}
48+
}
49+
50+
java {
51+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
52+
// if it is present.
53+
// If you remove this line, sources will not be generated.
54+
withSourcesJar()
55+
}
56+
57+
jar {
58+
from("LICENSE") {
59+
rename { "${it}_${project.archivesBaseName}"}
60+
}
61+
}
62+
63+
// configure the maven publication
64+
publishing {
65+
publications {
66+
mavenJava(MavenPublication) {
67+
// add all the jars that should be included when publishing to maven
68+
artifact(remapJar) {
69+
builtBy remapJar
70+
}
71+
artifact(sourcesJar) {
72+
builtBy remapSourcesJar
73+
}
74+
}
75+
}
76+
77+
// Select the repositories you want to publish to
78+
// To publish to maven local, no extra repositories are necessary. Just use the task `publishToMavenLocal`.
79+
repositories {
80+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
81+
}
82+
}

gradle.properties

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Done to increase the memory available to gradle.
2+
org.gradle.jvmargs=-Xmx2G
3+
4+
# Fabric Properties
5+
# check these on https://fabricmc.net/use
6+
minecraft_version=1.16.4
7+
yarn_mappings=1.16.4+build.7
8+
loader_version=0.10.8
9+
10+
# Mod Properties
11+
mod_version = 1.0.0
12+
maven_group = com.jingy.jineric
13+
archives_base_name = jineric-mod
14+
15+
# Dependencies
16+
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
17+
fabric_version=0.29.2+1.16

gradle/wrapper/gradle-wrapper.jar

57.8 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-6.7-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

gradlew

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

gradlew.bat

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

settings.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pluginManagement {
2+
repositories {
3+
jcenter()
4+
maven {
5+
name = 'Fabric'
6+
url = 'https://maven.fabricmc.net/'
7+
}
8+
gradlePluginPortal()
9+
}
10+
}

0 commit comments

Comments
 (0)