Skip to content

Commit bc212c9

Browse files
committed
PictureSign 1.0.0 - Initial release!
1 parent 3c6f119 commit bc212c9

File tree

18 files changed

+775
-0
lines changed

18 files changed

+775
-0
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# gradle
2+
3+
.gradle/
4+
out/
5+
classes/
6+
build/
7+
8+
# idea
9+
10+
.idea/
11+
*.iml
12+
*.ipr
13+
*.iws
14+
15+
# vscode
16+
17+
.settings/
18+
.vscode/
19+
bin/
20+
.classpath
21+
.project
22+
23+
# fabric
24+
25+
run/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 MidnightDust
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

build.gradle

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
plugins {
2+
id 'fabric-loom' version '0.8-SNAPSHOT'
3+
id 'maven-publish'
4+
}
5+
6+
sourceCompatibility = JavaVersion.VERSION_16
7+
targetCompatibility = JavaVersion.VERSION_16
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+
maven {
18+
url = "https://api.modrinth.com/maven"
19+
}
20+
}
21+
22+
dependencies {
23+
//to change the versions see the gradle.properties file
24+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
25+
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
26+
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
27+
28+
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
29+
modImplementation "maven.modrinth:iris:${project.iris_version}"
30+
modImplementation "maven.modrinth:midnightlib:${project.midnightlib_version}"
31+
include "maven.modrinth:midnightlib:${project.midnightlib_version}"
32+
}
33+
34+
processResources {
35+
inputs.property "version", project.version
36+
37+
filesMatching("fabric.mod.json") {
38+
expand "version": project.version
39+
}
40+
}
41+
42+
tasks.withType(JavaCompile).configureEach {
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+
// If Javadoc is generated, this must be specified in that task too.
47+
it.options.encoding = "UTF-8"
48+
49+
// Minecraft 1.17 (21w19a) upwards uses Java 16.
50+
it.options.release = 16
51+
}
52+
53+
java {
54+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
55+
// if it is present.
56+
// If you remove this line, sources will not be generated.
57+
withSourcesJar()
58+
}
59+
60+
jar {
61+
from("LICENSE") {
62+
rename { "${it}_${project.archivesBaseName}"}
63+
}
64+
}
65+
66+
// configure the maven publication
67+
publishing {
68+
publications {
69+
mavenJava(MavenPublication) {
70+
// add all the jars that should be included when publishing to maven
71+
artifact(remapJar) {
72+
builtBy remapJar
73+
}
74+
artifact(sourcesJar) {
75+
builtBy remapSourcesJar
76+
}
77+
}
78+
}
79+
80+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
81+
repositories {
82+
// Add repositories to publish to here.
83+
// Notice: This block does NOT have the same function as the block in the top level.
84+
// The repositories here will be used for publishing your artifact, not for
85+
// retrieving dependencies.
86+
}
87+
}

gradle.properties

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Done to increase the memory available to gradle.
2+
org.gradle.jvmargs=-Xmx1G
3+
4+
# Fabric Properties
5+
# check these on https://fabricmc.net/use
6+
minecraft_version=1.17.1
7+
yarn_mappings=1.17.1+build.61
8+
loader_version=0.11.7
9+
10+
# Mod Properties
11+
mod_version = 1.0.0
12+
maven_group = eu.midnightdust
13+
archives_base_name = picturesign
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.40.1+1.17
18+
midnightlib_version=0.2.6
19+
iris_version=mc1.17.1-1.1.2

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-7.0.1-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.

0 commit comments

Comments
 (0)