Skip to content
This repository was archived by the owner on Jul 20, 2021. It is now read-only.

Commit 3edc3a0

Browse files
committed
Initial commit
0 parents  commit 3edc3a0

15 files changed

+573
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Project exclude paths
2+
/.gradle/
3+
/build/

build.gradle

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
plugins {
2+
id 'fabric-loom' version '0.4.24'
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+
minecraft {
14+
}
15+
16+
repositories {
17+
jcenter()
18+
}
19+
20+
dependencies {
21+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
22+
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
23+
modCompile "net.fabricmc:fabric-loader:${project.loader_version}"
24+
modCompile "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
25+
26+
modCompile "me.sargunvohra.mcmods:autoconfig1u:2.2.0"
27+
include "me.sargunvohra.mcmods:autoconfig1u:2.2.0"
28+
}
29+
30+
processResources {
31+
inputs.property "version", project.version
32+
33+
from(sourceSets.main.resources.srcDirs) {
34+
include "fabric.mod.json"
35+
expand "version": project.version
36+
}
37+
38+
from(sourceSets.main.resources.srcDirs) {
39+
exclude "fabric.mod.json"
40+
}
41+
}
42+
43+
// ensure that the encoding is set to UTF-8, no matter what the system default is
44+
// this fixes some edge cases with special characters not displaying correctly
45+
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
46+
tasks.withType(JavaCompile) {
47+
options.encoding = "UTF-8"
48+
}
49+
50+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
51+
// if it is present.
52+
// If you remove this task, sources will not be generated.
53+
task sourcesJar(type: Jar, dependsOn: classes) {
54+
classifier = "sources"
55+
from sourceSets.main.allSource
56+
}
57+
58+
jar {
59+
from "LICENSE"
60+
}
61+
62+
// configure the maven publication
63+
publishing {
64+
publications {
65+
mavenJava(MavenPublication) {
66+
// add all the jars that should be included when publishing to maven
67+
artifact(remapJar) {
68+
builtBy remapJar
69+
}
70+
artifact(sourcesJar) {
71+
builtBy remapSourcesJar
72+
}
73+
}
74+
}
75+
76+
// select the repositories you want to publish to
77+
repositories {
78+
// uncomment to publish to the local maven
79+
// mavenLocal()
80+
}
81+
}

gradle.properties

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Done to increase the memory available to gradle.
2+
org.gradle.jvmargs=-Xmx1G
3+
# Fabric Properties
4+
# check these on https://fabricmc.net/use
5+
minecraft_version=1.15.2
6+
yarn_mappings=1.15.2+build.17
7+
loader_version=0.8.7+build.201
8+
# Mod Properties
9+
mod_version=1.0.0
10+
maven_group=draylar
11+
archives_base_name=no-nether-nausea
12+
# Dependencies
13+
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
14+
fabric_version=0.11.1+build.312-1.15

gradle/wrapper/gradle-wrapper.jar

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

gradlew

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