mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-10-02 08:50:47 +00:00
8152f19b6e
- Add support for Fabric. This is mostly pretty simple, though does require a lot more mixins than Forge. Half this diff is due to data generators: we run them separately as some aspects (recipes mostly) are different between the loaders. - Add integration with Iris (same as our Oculus support) and REI (mostly the same as our JEI support). - Generic peripherals only support inventories (or rather InventoryStorage) right now. Supporting more of the Fabric storage API is going to be tricky due to the slotted nature of the API: maybe something to revisit after Transfer API V3 (V4?, I've lost track). Note, this does /not/ mean I will be publishing a Fabric version of CC:T. My plan is to rebase CC:R on top of this, hopefully simplifying the maintenance work on their end and making the two mods a little more consistent.
76 lines
1.7 KiB
Plaintext
76 lines
1.7 KiB
Plaintext
plugins {
|
|
`java-gradle-plugin`
|
|
`kotlin-dsl`
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
|
|
// Duplicated in settings.gradle.kts
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
|
|
maven("https://maven.minecraftforge.net") {
|
|
name = "Forge"
|
|
content {
|
|
includeGroup("net.minecraftforge")
|
|
includeGroup("net.minecraftforge.gradle")
|
|
}
|
|
}
|
|
|
|
maven("https://maven.parchmentmc.org") {
|
|
name = "Librarian"
|
|
content {
|
|
includeGroupByRegex("^org\\.parchmentmc.*")
|
|
}
|
|
}
|
|
|
|
maven("https://repo.spongepowered.org/repository/maven-public/") {
|
|
name = "Sponge"
|
|
content {
|
|
includeGroup("org.spongepowered")
|
|
}
|
|
}
|
|
|
|
maven("https://maven.fabricmc.net/") {
|
|
name = "Fabric"
|
|
content {
|
|
includeGroup("net.fabricmc")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.errorProne.plugin)
|
|
implementation(libs.kotlin.plugin)
|
|
implementation(libs.spotless)
|
|
|
|
implementation(libs.fabric.loom)
|
|
implementation(libs.forgeGradle)
|
|
implementation(libs.librarian)
|
|
implementation(libs.quiltflower)
|
|
implementation(libs.vanillaGradle)
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
register("cc-tweaked") {
|
|
id = "cc-tweaked"
|
|
implementationClass = "cc.tweaked.gradle.CCTweakedPlugin"
|
|
}
|
|
|
|
register("cc-tweaked.illuaminate") {
|
|
id = "cc-tweaked.illuaminate"
|
|
implementationClass = "cc.tweaked.gradle.IlluaminatePlugin"
|
|
}
|
|
|
|
register("cc-tweaked.node") {
|
|
id = "cc-tweaked.node"
|
|
implementationClass = "cc.tweaked.gradle.NodePlugin"
|
|
}
|
|
}
|
|
}
|