Skip to content

Commit

Permalink
update to newest ModMaster
Browse files Browse the repository at this point in the history
  • Loading branch information
ToCraft committed Oct 15, 2024
1 parent a91ab50 commit a0bfad9
Show file tree
Hide file tree
Showing 34 changed files with 7 additions and 78 deletions.
6 changes: 5 additions & 1 deletion root.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id("dev.tocraft.modmaster.root") version "0.3.4"
id("dev.tocraft.modmaster.root")
}

modmaster {
useArchPlugin = false
}
70 changes: 2 additions & 68 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,74 +9,8 @@ pluginManagement {
}
}

// set to only use one minecraft version
val minecraft = ""

file("props").listFiles()?.forEach {
var forcedVersion : String? = startParameter.projectProperties["minecraft"]
if (forcedVersion == null) {
forcedVersion = minecraft
}
if (forcedVersion.isNotBlank()) {
if (!it.name.startsWith(forcedVersion)) {
return@forEach
}
}

val props = it.readLines()
var foundFabric = false
for (line in props) {
if (line.startsWith("fabric")) {
foundFabric = true
break
}
}
var foundForge = false
for (line in props) {
if (line.startsWith("forge")) {
foundForge = true
break
}
}
var foundNeoForge = false
for (line in props) {
if (line.startsWith("neoforge")) {
foundNeoForge = true
break
}
}

val version = it.name.replace(".properties", "")
include(":$version")
project(":$version").apply {
projectDir = file("versions/$version")
buildFileName = "../../build.gradle.kts"
}

include(":$version:common")
project(":$version:common").apply {
buildFileName = "../../../common/build.gradle.kts"
}

if (foundFabric) {
include(":$version:fabric")
project(":$version:fabric").apply {
buildFileName = "../../../fabric/build.gradle.kts"
}
}
if (foundForge) {
include(":$version:forge")
project(":$version:forge").apply {
buildFileName = "../../../forge/build.gradle.kts"
}
}
if (foundNeoForge) {
include(":$version:neoforge")
project(":$version:neoforge").apply {
buildFileName = "../../../neoforge/build.gradle.kts"
}
}
plugins {
id("dev.tocraft.modmaster.settings") version "0.4.3"
}

rootProject.name = "ReMorphed"
rootProject.buildFileName = "root.gradle.kts"
Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion versions/1.18.2/testmod-forge/gradle.properties

This file was deleted.

Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion versions/1.19.4/testmod-forge/gradle.properties

This file was deleted.

Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion versions/1.20.1/testmod-forge/gradle.properties

This file was deleted.

Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion versions/1.20.2/testmod-forge/gradle.properties

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion versions/1.20.2/testmod-neoforge/gradle.properties

This file was deleted.

Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion versions/1.20.4/testmod-forge/gradle.properties

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion versions/1.20.4/testmod-neoforge/gradle.properties

This file was deleted.

Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion versions/1.20.6/testmod-neoforge/gradle.properties

This file was deleted.

Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion versions/1.21/testmod-neoforge/gradle.properties

This file was deleted.

0 comments on commit a0bfad9

Please sign in to comment.