Skip to content

Commit

Permalink
setup
Browse files Browse the repository at this point in the history
  • Loading branch information
TropheusJ committed Apr 1, 2024
1 parent 4b214b7 commit 6986aae
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 268 deletions.
46 changes: 1 addition & 45 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//file:noinspection GroovyAccessibility
//file:noinspection GradlePackageVersionRange
plugins {
id "fabric-loom" version "1.4.+"
id "fabric-loom" version "1.6.+"
id "maven-publish"
}

Expand All @@ -28,19 +28,10 @@ dependencies {
// dev environment
minecraft("com.mojang:minecraft:$minecraft_version")
mappings(loom.layered {
it.mappings("org.quiltmc:quilt-mappings:$minecraft_version+build.$qm_version:intermediary-v2")
if (parchment_version != "none")
it.parchment("org.parchmentmc.data:parchment-$minecraft_version:$parchment_version@zip")
it.officialMojangMappings { nameSyntheticMembers = false }
})
modImplementation("net.fabricmc:fabric-loader:$loader_version")

// dev env
modLocalRuntime("maven.modrinth:suggestion-tweaker:$suggestion_tweaker_version")
modLocalRuntime("maven.modrinth:cloth-config:$cloth_config_version") { exclude(group: "net.fabricmc.fabric-api") }
modLocalRuntime("maven.modrinth:jade:$jade_version")
modLocalRuntime("com.terraformersmc:modmenu:$modmenu_version") { exclude(group: "net.fabricmc"); exclude(group: "net.fabricmc.fabric-api") }

// dependencies
modImplementation("net.fabricmc.fabric-api:fabric-api:$fabric_version")
}
Expand All @@ -62,7 +53,6 @@ processResources {
properties.put("version", version)
properties.put("loader_version", loader_version)
properties.put("fabric_version", fabric_version)
properties.put("minecraft_version", minecraft_version)

properties.forEach((k, v) -> inputs.property(k, v))

Expand All @@ -71,40 +61,6 @@ processResources {
}
}

sourceSets {
testmod {
compileClasspath += main.compileClasspath
compileClasspath += main.output
runtimeClasspath += main.runtimeClasspath
runtimeClasspath += main.output
}
}

loom {
runs {
testmodClient {
client()
name "Testmod Client"
source sourceSets.testmod
runDir "run/test"
}
testmodServer {
server()
name "Testmod Server"
source sourceSets.testmod
runDir "run/test_server"
}
gametest {
server()
name "Test"
source sourceSets.testmod
vmArg "-Dfabric-api.gametest"
vmArg "-Dfabric-api.gametest.report-file=${project.buildDir}/junit.xml"
runDir "run/gametest_server"
}
}
}

tasks.withType(JavaCompile).configureEach {
it.options.release = Integer.parseInt(sourceCompatibility)
}
Expand Down
21 changes: 3 additions & 18 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@ archives_base_name = modid
mod_version = 0.0.<build>

# https://fabricmc.net/develop
minecraft_version = 1.20.4
loader_version = 0.15.2
fabric_version = 0.91.3+1.20.4
# https://lambdaurora.dev/tools/import_quilt.html
qm_version = 2
# https://parchmentmc.org/docs/getting-started
parchment_version = none

# dev env mods

# https://modrinth.com/mod/jade/versions?l=fabric
jade_version = XoEjMfV6
# https://modrinth.com/mod/modmenu/versions
modmenu_version = 9.0.0-pre.1
# https://modrinth.com/mod/suggestion-tweaker/versions?l=fabric
suggestion_tweaker_version = 1.20-1.5.1+fabric
# https://modrinth.com/mod/cloth-config/versions?l=fabric
cloth_config_version = 13.0.114+fabric
minecraft_version = 24w14potato
loader_version = 0.15.9
fabric_version = 0.96.14+24w14potato
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"depends": {
"fabricloader": ">=${loader_version}",
"fabric-api": ">=${fabric_version}",
"minecraft": ">=${minecraft_version}"
"minecraft": "1.20.5-alpha.24.12.potato"
}
}

This file was deleted.

This file was deleted.

Binary file removed src/testmod/resources/assets/modid_test/icon.png
Binary file not shown.

This file was deleted.

24 changes: 0 additions & 24 deletions src/testmod/resources/fabric.mod.json

This file was deleted.

0 comments on commit 6986aae

Please sign in to comment.