1
0
mirror of https://github.com/GeyserMC/Rainbow.git synced 2025-12-19 14:59:16 +00:00

Create build-logic, main rainbow and client module

This commit is contained in:
Eclipse
2025-10-14 08:03:42 +00:00
parent b9ea28ee8f
commit 16db0fe788
73 changed files with 44 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
plugins {
`kotlin-dsl`
}
repositories {
maven {
name = "Fabric"
url = uri("https://maven.fabricmc.net/")
}
gradlePluginPortal()
}
dependencies {
// Very ugly... https://github.com/gradle/gradle/issues/15383
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
implementation(libs.fabric.loom)
}

View File

@@ -0,0 +1,7 @@
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
}

View File

@@ -0,0 +1,6 @@
import org.gradle.accessors.dm.LibrariesForLibs
import org.gradle.api.Project
import org.gradle.kotlin.dsl.getByType
val Project.libs: LibrariesForLibs
get() = rootProject.extensions.getByType()

View File

@@ -1,5 +1,5 @@
plugins {
alias(libs.plugins.fabric.loom)
id("fabric-loom")
}
version = properties["mod_version"]!! as String

3
client/build.gradle.kts Normal file
View File

@@ -0,0 +1,3 @@
plugins {
id("rainbow.base-conventions")
}

View File

@@ -14,6 +14,7 @@ packconverter = "3.4.1-20251013.173215-13"
minecraft = {group = "com.mojang", name = "minecraft", version.ref = "minecraft"}
parchment = {group = "org.parchmentmc.data", name = "parchment-1.21.10", version.ref = "parchment"}
fabric-loom = {group = "net.fabricmc", name = "fabric-loom", version.ref = "fabric-loom"}
fabric-loader = {group = "net.fabricmc", name = "fabric-loader", version.ref = "fabric-loader"}
fabric-api = {group = "net.fabricmc.fabric-api", name = "fabric-api", version.ref = "fabric-api"}

3
rainbow/build.gradle.kts Normal file
View File

@@ -0,0 +1,3 @@
plugins {
id("rainbow.base-conventions")
}

View File

Before

Width:  |  Height:  |  Size: 282 B

After

Width:  |  Height:  |  Size: 282 B

View File

@@ -6,6 +6,10 @@ pluginManagement {
}
gradlePluginPortal()
}
includeBuild("build-logic")
}
rootProject.name = "Rainbow"
include(":rainbow")
include(":client")
rootProject.name = "rainbow-parent"