Skip to content

Commit 10e22fc

Browse files
committed
Version 1.0.0
1 parent f38d179 commit 10e22fc

15 files changed

Lines changed: 715 additions & 0 deletions

File tree

.gitignore

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

build.gradle

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
plugins {
2+
id 'fabric-loom' version '1.0-SNAPSHOT'
3+
id 'maven-publish'
4+
}
5+
6+
sourceCompatibility = JavaVersion.VERSION_16
7+
targetCompatibility = JavaVersion.VERSION_16
8+
9+
archivesBaseName = "viewlock-fabric-1.17.x-1.19.x"
10+
version = project.mod_version
11+
group = project.maven_group
12+
13+
repositories {
14+
// Add repositories to retrieve artifacts from in here.
15+
// You should only use this when depending on other mods because
16+
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
17+
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
18+
// for more information about repositories.
19+
}
20+
21+
dependencies {
22+
// To change the versions see the gradle.properties file
23+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
24+
//mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
25+
mappings loom.officialMojangMappings()
26+
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
27+
28+
// Fabric API. This is technically optional, but you probably want it anyway.
29+
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
30+
31+
// Uncomment the following line to enable the deprecated Fabric API modules.
32+
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
33+
34+
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
35+
}
36+
37+
processResources {
38+
inputs.property "version", project.version
39+
40+
filesMatching("fabric.mod.json") {
41+
expand "version": project.version
42+
}
43+
}
44+
45+
tasks.withType(JavaCompile).configureEach {
46+
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
47+
it.options.release = 16
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+
from components.java
68+
}
69+
}
70+
71+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
72+
repositories {
73+
// Add repositories to publish to here.
74+
// Notice: This block does NOT have the same function as the block in the top level.
75+
// The repositories here will be used for publishing your artifact, not for
76+
// retrieving dependencies.
77+
}
78+
}

gradle.properties

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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/develop
6+
minecraft_version=1.19.2
7+
yarn_mappings=1.19.2+build.8
8+
loader_version=0.14.9
9+
10+
# Mod Properties
11+
mod_version = 1.0.0
12+
maven_group = com.fexl
13+
archives_base_name = viewlock
14+
15+
# Dependencies
16+
fabric_version=0.46.1+1.17

gradle/wrapper/gradle-wrapper.jar

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

gradlew

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