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:
18
build-logic/build.gradle.kts
Normal file
18
build-logic/build.gradle.kts
Normal 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)
|
||||
}
|
||||
7
build-logic/settings.gradle.kts
Normal file
7
build-logic/settings.gradle.kts
Normal file
@@ -0,0 +1,7 @@
|
||||
dependencyResolutionManagement {
|
||||
versionCatalogs {
|
||||
create("libs") {
|
||||
from(files("../gradle/libs.versions.toml"))
|
||||
}
|
||||
}
|
||||
}
|
||||
6
build-logic/src/main/kotlin/libs.kt
Normal file
6
build-logic/src/main/kotlin/libs.kt
Normal 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()
|
||||
@@ -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
3
client/build.gradle.kts
Normal file
@@ -0,0 +1,3 @@
|
||||
plugins {
|
||||
id("rainbow.base-conventions")
|
||||
}
|
||||
@@ -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
3
rainbow/build.gradle.kts
Normal file
@@ -0,0 +1,3 @@
|
||||
plugins {
|
||||
id("rainbow.base-conventions")
|
||||
}
|
||||
|
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 282 B |
@@ -6,6 +6,10 @@ pluginManagement {
|
||||
}
|
||||
gradlePluginPortal()
|
||||
}
|
||||
includeBuild("build-logic")
|
||||
}
|
||||
|
||||
rootProject.name = "Rainbow"
|
||||
include(":rainbow")
|
||||
include(":client")
|
||||
|
||||
rootProject.name = "rainbow-parent"
|
||||
|
||||
Reference in New Issue
Block a user