-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55be5a3
commit 77e44b2
Showing
81 changed files
with
4,552 additions
and
1,577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,41 @@ | ||
# gradle | ||
|
||
.gradle/ | ||
build/ | ||
out/ | ||
classes/ | ||
|
||
# eclipse | ||
|
||
*.launch | ||
|
||
# idea | ||
|
||
.idea/ | ||
*.iml | ||
*.ipr | ||
*.iws | ||
|
||
# vscode | ||
|
||
.settings/ | ||
.vscode/ | ||
bin/ | ||
.classpath | ||
.project | ||
|
||
# macos | ||
|
||
*.DS_Store | ||
|
||
# fabric | ||
|
||
run/ | ||
|
||
wasm/rust/target | ||
crash-reports/ | ||
logs/ | ||
remappedSrc/ | ||
.mixin.out/ | ||
# gradle | ||
|
||
.gradle/ | ||
build/ | ||
out/ | ||
classes/ | ||
|
||
# eclipse | ||
|
||
*.launch | ||
|
||
# idea | ||
|
||
.idea/ | ||
*.iml | ||
*.ipr | ||
*.iws | ||
|
||
# vscode | ||
|
||
.settings/ | ||
.vscode/ | ||
bin/ | ||
.classpath | ||
.project | ||
|
||
# macos | ||
|
||
*.DS_Store | ||
|
||
# fabric | ||
|
||
run/ | ||
|
||
wasm/rust/target | ||
crash-reports/ | ||
logs/ | ||
remappedSrc/ | ||
.mixin.out/ | ||
|
||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,127 +1,132 @@ | ||
plugins { | ||
id 'java' | ||
id 'com.github.johnrengelman.shadow' version '8.1.1' | ||
id 'fabric-loom' version '1.4-SNAPSHOT' | ||
id 'maven-publish' | ||
} | ||
|
||
archivesBaseName = project.archives_base_name | ||
version = project.mod_version | ||
group = project.maven_group | ||
|
||
repositories { | ||
// Add repositories to retrieve artifacts from in here. | ||
// You should only use this when depending on other mods because | ||
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically. | ||
// See https://docs.gradle.org/current/userguide/declaring_repositories.html | ||
// for more information about repositories. | ||
maven { | ||
name = "CottonMC" | ||
url = "https://server.bbkr.space/artifactory/libs-release" | ||
} | ||
maven { url 'https://jitpack.io' } | ||
} | ||
|
||
dependencies { | ||
// To change the versions see the gradle.properties file | ||
minecraft "com.mojang:minecraft:${project.minecraft_version}" | ||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" | ||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" | ||
|
||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" | ||
|
||
// bundle the external mods | ||
modImplementation include("io.github.cottonmc:LibGui:${project.libgui_version}") | ||
modImplementation include("com.github.hashicraft:fabric-stateful-mod:${stateful_version}") | ||
|
||
// add the external dependencies to the fat jar | ||
shadow("org.postgresql:postgresql:42.6.0"); | ||
shadow("io.javalin:javalin:5.6.3"); | ||
shadow("io.javalin.community.ssl:ssl-plugin:5.6.3"); | ||
|
||
// some dependencies are not pulled in with shadow | ||
implementation include('org.conscrypt:conscrypt-openjdk-uber:2.5.2'); | ||
implementation include('org.eclipse.jetty:jetty-alpn-java-server:11.0.17'); | ||
implementation include('org.eclipse.jetty:jetty-alpn-conscrypt-server:11.0.17'); | ||
implementation include('org.eclipse.jetty.http2:http2-server:11.0.17'); | ||
|
||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.2") | ||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.2") | ||
} | ||
|
||
shadowJar { | ||
configurations = [project.configurations.shadow] | ||
exclude("META-INF") | ||
} | ||
|
||
remapJar { | ||
// wait until the shadowJar is done | ||
dependsOn(shadowJar) | ||
mustRunAfter(shadowJar) | ||
// Set the input jar for the task. Here use the shadow Jar that include the .class of the transitive dependency | ||
inputFile = file(shadowJar.archivePath) | ||
} | ||
|
||
processResources { | ||
inputs.property "version", project.version | ||
|
||
filesMatching("fabric.mod.json") { | ||
expand "version": project.version | ||
} | ||
} | ||
|
||
tasks.withType(JavaCompile).configureEach { | ||
// ensure that the encoding is set to UTF-8, no matter what the system default is | ||
// this fixes some edge cases with special characters not displaying correctly | ||
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html | ||
// If Javadoc is generated, this must be specified in that task too. | ||
it.options.encoding = "UTF-8" | ||
|
||
// Minecraft 1.17 (21w19a) upwards uses Java 16. | ||
it.options.release = 17 | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
} | ||
|
||
jar { | ||
from("LICENSE") { | ||
rename { "${it}_${project.archivesBaseName}"} | ||
} | ||
} | ||
|
||
// configure the maven publication | ||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
// add all the jars that should be included when publishing to maven | ||
artifact(remapJar) { | ||
builtBy remapJar | ||
} | ||
artifact(sourcesJar) { | ||
builtBy remapSourcesJar | ||
} | ||
} | ||
} | ||
|
||
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. | ||
repositories { | ||
// Add repositories to publish to here. | ||
// Notice: This block does NOT have the same function as the block in the top level. | ||
// The repositories here will be used for publishing your artifact, not for | ||
// retrieving dependencies. | ||
} | ||
} | ||
|
||
task copyToLib(type: Copy) { | ||
into "$buildDir/output/lib" | ||
from configurations.runtimeClasspath | ||
} | ||
|
||
//test { | ||
// useJUnitPlatform() | ||
// testLogging { | ||
// events "passed", "skipped", "failed" | ||
// } | ||
//} | ||
plugins { | ||
id 'java' | ||
id 'com.github.johnrengelman.shadow' version '8.1.1' | ||
id 'fabric-loom' version '1.4-SNAPSHOT' | ||
id 'maven-publish' | ||
} | ||
|
||
archivesBaseName = project.archives_base_name | ||
version = project.mod_version | ||
group = project.maven_group | ||
|
||
repositories { | ||
// Add repositories to retrieve artifacts from in here. | ||
// You should only use this when depending on other mods because | ||
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically. | ||
// See https://docs.gradle.org/current/userguide/declaring_repositories.html | ||
// for more information about repositories. | ||
maven { | ||
name = "CottonMC" | ||
url = "https://server.bbkr.space/artifactory/libs-release" | ||
} | ||
maven { url 'https://jitpack.io' } | ||
} | ||
|
||
dependencies { | ||
// To change the versions see the gradle.properties file | ||
minecraft "com.mojang:minecraft:${project.minecraft_version}" | ||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" | ||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" | ||
|
||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" | ||
|
||
// bundle the external mods | ||
modImplementation include("io.github.cottonmc:LibGui:${project.libgui_version}") | ||
modImplementation include("com.github.hashicraft:fabric-stateful-mod:${stateful_version}") | ||
|
||
// add the external dependencies to the fat jar | ||
shadow("org.postgresql:postgresql:42.6.0"); | ||
shadow("io.javalin:javalin:5.6.3"); | ||
shadow("io.javalin.community.ssl:ssl-plugin:5.6.3"); | ||
shadow("com.jayway.jsonpath:json-path:2.9.0"); | ||
shadow("org.json:json:20240205"); | ||
|
||
// some dependencies are not pulled in with shadow | ||
implementation include('org.conscrypt:conscrypt-openjdk-uber:2.5.2'); | ||
implementation include('org.eclipse.jetty:jetty-alpn-java-server:11.0.17'); | ||
implementation include('org.eclipse.jetty:jetty-alpn-conscrypt-server:11.0.17'); | ||
implementation include('org.eclipse.jetty.http2:http2-server:11.0.17'); | ||
implementation include("com.jayway.jsonpath:json-path:2.9.0"); | ||
implementation include("org.json:json:20240205"); | ||
|
||
|
||
testImplementation('uk.org.webcompere:system-stubs-jupiter:2.1.6') | ||
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.7.2") | ||
} | ||
|
||
shadowJar { | ||
configurations = [project.configurations.shadow] | ||
exclude("META-INF") | ||
} | ||
|
||
remapJar { | ||
// wait until the shadowJar is done | ||
dependsOn(shadowJar) | ||
mustRunAfter(shadowJar) | ||
// Set the input jar for the task. Here use the shadow Jar that include the .class of the transitive dependency | ||
inputFile = file(shadowJar.archivePath) | ||
} | ||
|
||
processResources { | ||
inputs.property "version", project.version | ||
|
||
filesMatching("fabric.mod.json") { | ||
expand "version": project.version | ||
} | ||
} | ||
|
||
tasks.withType(JavaCompile).configureEach { | ||
// ensure that the encoding is set to UTF-8, no matter what the system default is | ||
// this fixes some edge cases with special characters not displaying correctly | ||
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html | ||
// If Javadoc is generated, this must be specified in that task too. | ||
it.options.encoding = "UTF-8" | ||
|
||
// Minecraft 1.17 (21w19a) upwards uses Java 16. | ||
it.options.release = 17 | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
} | ||
|
||
jar { | ||
from("LICENSE") { | ||
rename { "${it}_${project.archivesBaseName}"} | ||
} | ||
} | ||
|
||
// configure the maven publication | ||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
// add all the jars that should be included when publishing to maven | ||
artifact(remapJar) { | ||
builtBy remapJar | ||
} | ||
artifact(sourcesJar) { | ||
builtBy remapSourcesJar | ||
} | ||
} | ||
} | ||
|
||
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. | ||
repositories { | ||
// Add repositories to publish to here. | ||
// Notice: This block does NOT have the same function as the block in the top level. | ||
// The repositories here will be used for publishing your artifact, not for | ||
// retrieving dependencies. | ||
} | ||
} | ||
|
||
task copyToLib(type: Copy) { | ||
into "$buildDir/output/lib" | ||
from configurations.runtimeClasspath | ||
} | ||
|
||
//test { | ||
// useJUnitPlatform() | ||
// testLogging { | ||
// events "passed", "skipped", "failed" | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# Done to increase the memory available to gradle. | ||
org.gradle.jvmargs=-Xmx4G | ||
|
||
# Mod Properties | ||
mod_version = 1.1.0 | ||
maven_group = com.github.hashicraft | ||
archives_base_name = fabric-microservices-mod | ||
|
||
# Fabric Properties | ||
# check these on https://fabricmc.net/versions.html | ||
minecraft_version=1.20.1 | ||
yarn_mappings=1.20.1+build.10 | ||
loader_version=0.14.22 | ||
|
||
#Fabric api | ||
fabric_version=0.88.1+1.20.1 | ||
|
||
# Dependencies | ||
libgui_version=8.0.2+1.20 | ||
# Done to increase the memory available to gradle. | ||
org.gradle.jvmargs=-Xmx4G | ||
|
||
# Mod Properties | ||
mod_version = 1.1.1 | ||
maven_group = com.github.hashicraft | ||
archives_base_name = fabric-microservices-mod | ||
|
||
# Fabric Properties | ||
# check these on https://fabricmc.net/versions.html | ||
minecraft_version=1.20.1 | ||
yarn_mappings=1.20.1+build.10 | ||
loader_version=0.14.22 | ||
|
||
#Fabric api | ||
fabric_version=0.88.1+1.20.1 | ||
|
||
# Dependencies | ||
libgui_version=8.0.2+1.20 | ||
stateful_version=v1.3.0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"-26_67_-83": { | ||
"85_70_-53": { | ||
"port": "8081", | ||
"path": "/", | ||
"method": "GET", | ||
"tlsCert": "/etc/certs/minecraft_leaf-leaf.cert", | ||
"tlsKey": "/etc/certs/minecraft_leaf-leaf.key" | ||
"tlsCert": "", | ||
"tlsKey": "" | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.