Skip to content

Commit

Permalink
in version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Feb 25, 2024
1 parent b77b1a5 commit 5961764
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 90 deletions.
31 changes: 11 additions & 20 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ plugins {
id("org.jetbrains.kotlin.jvm") version "1.8.0"
}

group = property("mavenGroup").toString()
version = property("modpackVersion").toString()
group = libs.versions.maven.group.get()
version = libs.versions.modpack.get()

base {
archivesName.set(rootProject.property("archivesName").toString())
archivesName.set(libs.versions.archives.name)
}

repositories {
Expand Down Expand Up @@ -83,11 +83,9 @@ dependencies {
modImplementation(libs.bundles.maven.modrinth)
modImplementation(libs.bundles.maven.jitpack)

// Mod Apis
modApi(libs.modmenu)
modApi(libs.cloth.config) {
exclude(group = "net.fabricmc.fabric-api")
}
modApi(libs.cloth.config)
modApi(libs.rei)

// Included
modApi(libs.tags.binder)?.let {
Expand All @@ -96,27 +94,20 @@ dependencies {
modApi(libs.brrp)?.let {
include(it)
}
api(libs.pierced)?.let {
include(it)
}
api(libs.exp4j)?.let {
include(it)
}

// Development
api("org.jetbrains.kotlin:kotlin-stdlib-jdk8")

modCompileOnlyApi("me.shedaniel:RoughlyEnoughItems-default-plugin-fabric:${property("reiVersion")}")
modCompileOnlyApi("me.shedaniel:RoughlyEnoughItems-api-fabric:${property("reiVersion")}")
modRuntimeOnly("me.shedaniel:RoughlyEnoughItems-fabric:${property("reiVersion")}")
}

tasks {
processResources {
inputs.property("modpackVersion", version)
inputs.property("version", libs.versions.modpack.get())

filesMatching("fabric.mod.json") {
expand(mapOf("modpack_version" to version))
expand(mapOf("version" to libs.versions.modpack.get()))
}
}

Expand All @@ -133,6 +124,10 @@ java {
targetCompatibility = JavaVersion.VERSION_17
}

loom {
accessWidenerPath.set(file("src/main/resources/cabricality.accesswidener"))
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
Expand All @@ -143,7 +138,3 @@ publishing {
repositories {
}
}

loom {
accessWidenerPath.set(file("src/main/resources/cabricality.accesswidener"))
}
10 changes: 0 additions & 10 deletions gradle.properties

This file was deleted.

120 changes: 61 additions & 59 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,114 +1,116 @@
[versions]
# The latest versions are available at https://lambdaurora.dev/tools/import_quilt.html
maven-group = "dm.earth"
archives-name = "cabricality"
modpack = "1.0-alpha.1"

# The latest versions are available at https://lambdaurora.dev/tools/import-quilt.html
minecraft = "1.20.1"
quilt_mappings = "1.20.1+build.23"
fabric_loader = "0.14.22"
quilt-mappings = "1.20.1+build.23"
fabric-loader = "0.15.7"

fabric_api = "0.89.3+1.20.1"
fabric-api = "0.89.3+1.20.1"

# Implemented Mods
modmenu = "8.0.0-beta.2"
cloth-config = "12.0.109"
rei = "13.0.661"

# - DM-Earth
create_dme = "0.5.1-d-build.10+mc1.20.1"
create-dme = "0.5.1-d-build.10+mc1.20.1"

# - AlphaMode
create = "0.5.1-d-build.1161+mc1.20.1"
mantle = "1.20.1-1.9.254"

# - FTB Mods
ftb_quests = "2001.1.5"
ftb_library = "2001.1.3"
ftb-quests = "2001.1.5"
ftb-library = "2001.1.3"

# - Modrinth Maven
ad_astra = "1.15.3"
architectury_api = "10.0.8+fabric"
bits_and_chisels = "2.7.3"
farmers_delight = "1.4.2"
ad-astra = "1.15.3"
architectury-api = "10.0.8+fabric"
bits-and-chisels = "2.7.3"
farmers-delight = "1.4.2"
hephaestus = "1.20.1-3.6.3.232"
let = "2.0.0-mc1.20"
industrial_revolution = "1.16.5-BETA"
industrial-revolution = "1.16.5-BETA"

# - JitPack
equator = "2.6.0-mc1.20"
rip = "1.0.0-1.20.x"

# Mod Apis
modmenu = "8.0.0-beta.2"
cloth_config = "12.0.109"

# Included
tags_binder = "0.3"
tags-binder = "0.3"
brrp = "1.0.1-mc1.20.1-fabric"
pierced = "v1.2"
exp4j = "0.4.8"

[libraries]
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }
quilt_mappings = { module = "org.quiltmc:quilt-mappings", version.ref = "quilt_mappings" }
minecraft = { group = "com.mojang", name = "minecraft", version.ref = "minecraft" }
quilt-mappings = { group = "org.quiltmc", name = "quilt-mappings", version.ref = "quilt-mappings" }

fabric_loader = { module = "net.fabricmc:fabric-loader", version.ref = "fabric_loader" }
fabric_api = { module = "net.fabricmc.fabric-api:fabric-api", version.ref = "fabric_api" }
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" }

# Implemented Mods
modmenu = { group = "com.terraformersmc", name = "modmenu", version.ref = "modmenu" }
cloth-config = { group = "me.shedaniel.cloth", name = "cloth-config-fabric", version.ref = "cloth-config" }
rei = { group = "me.shedaniel", name = "RoughlyEnoughItems-fabric", version.ref = "rei" }

# - DM-Earth
create_dme = { module = "maven.modrinth:create-fabric-dme-edition", version.ref = "create_dme" }
create-dme = { group = "maven.modrinth", name = "create-fabric-dme-edition", version.ref = "create-dme" }

# - AlphaMode
create = { module = "com.simibubi.create:create-fabric-1.20.1", version.ref = "create" }
mantle = { module = "slimeknights.mantle:Mantle", version.ref = "mantle" }
create = { group = "com.simibubi.create", name = "create-fabric-1.20.1", version.ref = "create" }
mantle = { group = "slimeknights.mantle", name = "Mantle", version.ref = "mantle" }

# - FTB Mods
ftb_quests = { module = "dev.ftb.mods:ftb-quests-fabric", version.ref = "ftb_quests" }
ftb_library = { module = "dev.ftb.mods:ftb-library-fabric", version.ref = "ftb_library" }
ftb-quests = { group = "dev.ftb.mods", name = "ftb-quests-fabric", version.ref = "ftb-quests" }
ftb-library = { group = "dev.ftb.mods", name = "ftb-library-fabric", version.ref = "ftb-library" }

# - Modrinth Maven
ad_astra = { module = "maven.modrinth:ad-astra", version.ref = "ad_astra" }
architectury_api = { module = "maven.modrinth:architectury-api", version.ref = "architectury_api" }
bits_and_chisels = { module = "maven.modrinth:bits-and-chisels", version.ref = "bits_and_chisels" }
farmers_delight = { module = "maven.modrinth:farmers-delight-fabric", version.ref = "farmers_delight" }
hephaestus = { module = "maven.modrinth:hephaestus", version.ref = "hephaestus" }
let = { module = "maven.modrinth:let", version.ref = "let" }
industrial_revolution = { module = "maven.modrinth:industrial-revolution" , version.ref = "industrial_revolution" }
ad-astra = { group = "maven.modrinth", name = "ad-astra", version.ref = "ad-astra" }
architectury-api = { group = "maven.modrinth", name = "architectury-api", version.ref = "architectury-api" }
bits-and-chisels = { group = "maven.modrinth", name = "bits-and-chisels", version.ref = "bits-and-chisels" }
farmers-delight = { group = "maven.modrinth", name = "farmers-delight-fabric", version.ref = "farmers-delight" }
hephaestus = { group = "maven.modrinth", name = "hephaestus", version.ref = "hephaestus" }
let = { group = "maven.modrinth", name = "let", version.ref = "let" }
industrial-revolution = { group = "maven.modrinth", name = "industrial-revolution", version.ref = "industrial-revolution" }

# - JitPack
equator = { module = "com.github.KrLite.Equator-v2:build", version.ref = "equator" }
rip = { module = "com.github.HO-Artisan:RecipeInProgramming", version.ref = "rip" }

# Mod Apis
modmenu = { module = "com.terraformersmc:modmenu", version.ref = "modmenu" }
cloth_config = { module = "me.shedaniel.cloth:cloth-config-fabric", version.ref = "cloth_config" }
equator = { group = "com.github.KrLite.Equator-v2", name = "build", version.ref = "equator" }
rip = { group = "com.github.HO-Artisan", name = "RecipeInProgramming", version.ref = "rip" }

# Included
tags_binder = { module = "com.github.DM-Earth:Tags-Binder", version.ref = "tags_binder" }
brrp = { module = "maven.modrinth:brrp", version.ref = "brrp" }
pierced = { module = "com.github.KrLite:Pierced", version.ref = "pierced" }
exp4j = { module = "net.objecthunter:exp4j", version.ref = "exp4j" }
tags-binder = { group = "com.github.DM-Earth", name = "Tags-Binder", version.ref = "tags-binder" }
brrp = { group = "maven.modrinth", name = "brrp", version.ref = "brrp" }
exp4j = { group = "net.objecthunter", name = "exp4j", version.ref = "exp4j" }

[bundles]
# Implemented Mods
mods_from_dmearth = [
"create_dme"
mods-from-dmearth = [
"create-dme"
]
mods_from_alphamode = [
# "create",
mods-from-alphamode = [
#"create",
"mantle"
]
mods_from_ftb = [
"ftb_quests",
"ftb_library"
mods-from-ftb = [
"ftb-quests",
"ftb-library"
]
maven_modrinth = [
"ad_astra",
"architectury_api",
"bits_and_chisels",
"farmers_delight",
maven-modrinth = [
"ad-astra",
"architectury-api",
"bits-and-chisels",
"farmers-delight",
"hephaestus",
"let",
"industrial_revolution"
"industrial-revolution"
]
maven_jitpack = [
maven-jitpack = [
"equator",
"rip"
]

[plugins]
fabric_loom = { id = "fabric-loom", version = "1.3-SNAPSHOT" }
fabric-loom = { id = "fabric-loom", version = "1.3-SNAPSHOT" }
3 changes: 2 additions & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "cabricality",
"version": "${modpack_version}",
"version": "${version}",
"provides": [
"kubejs"
],
Expand Down Expand Up @@ -51,6 +51,7 @@
"fabric-api": "*",
"fabric-key-binding-api-v1": "*",
"minecraft": "1.20.1",
"cloth-config": "*",
"equator": ">=2.6.0"
},
"suggests": {
Expand Down

0 comments on commit 5961764

Please sign in to comment.