Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions build-logic/src/main/kotlin/carbon.base-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,70 @@ plugins {
id("net.kyori.indra.licenser.spotless")
}

repositories {
mavenCentral {
mavenContent { releasesOnly() }
}
maven("https://repo.jpenilla.xyz/snapshots/") {
mavenContent {
snapshotsOnly()
includeModuleByRegex("de\\.hexaoxi", "messenger-.*")
includeModule("org.incendo", "cloud-sponge")
includeModule("com.seiama", "registry")
}
}
maven("https://central.sonatype.com/repository/maven-snapshots/") {
mavenContent { snapshotsOnly() }
}
// PaperMC
maven("https://repo.papermc.io/repository/maven-public/")
// Sponge API
maven("https://repo.spongepowered.org/repository/maven-public/")
// PlaceholderAPI
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/") {
content { includeGroup("me.clip") }
}
// EssentialsDiscord
maven("https://repo.essentialsx.net/releases/") {
mavenContent {
releasesOnly()
includeGroup("net.essentialsx")
}
}
maven("https://repo.essentialsx.net/snapshots/") {
mavenContent {
snapshotsOnly()
includeGroup("net.essentialsx")
}
}
// DiscordSRV
maven("https://nexus.scarsz.me/content/groups/public/") {
mavenContent {
includeGroup("com.discordsrv")
}
}
// Glare's repo for Towny
maven("https://repo.glaremasters.me/repository/towny/") {
content { includeGroup("com.palmergames.bukkit.towny") }
}
// FactionsUUID
maven("https://ci.ender.zone/plugin/repository/everything/") {
content { includeGroup("com.massivecraft") }
}
// mcMMO
maven("https://nexus.neetgames.com/repository/maven-releases/") {
content {
includeGroup("com.gmail.nossr50.mcMMO")
}
}
// Parties
maven("https://repo.alessiodp.com/releases/") {
content {
includeGroup("com.alessiodp.parties")
}
}
}

version = rootProject.version

indra {
Expand Down
25 changes: 15 additions & 10 deletions fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import kotlin.io.path.invariantSeparatorsPathString

plugins {
id("carbon.shadow-platform")
id("quiet-fabric-loom")
alias(libs.plugins.loom)
alias(libs.plugins.resource.factory.fabric.convention)
}

Expand All @@ -17,10 +17,9 @@ configurations.implementation {

dependencies {
minecraft(libs.fabricMinecraft)
mappings(loom.officialMojangMappings())
modImplementation(libs.fabricLoader)
modImplementation(libs.fabricApi)
modRuntimeOnly(libs.fabricApiDeprecated) // LuckPerms needs to work at dev time
implementation(libs.fabricLoader)
implementation(libs.fabricApi)
runtimeOnly(libs.fabricApiDeprecated) // LuckPerms needs to work at dev time

shade(projects.carbonchatCommon) {
exclude("net.kyori", "adventure-api")
Expand All @@ -33,18 +32,18 @@ dependencies {
exclude("io.leangen.geantyref")
}

modImplementation(libs.cloudFabric) {
implementation(libs.cloudFabric) {
exclude("net.fabricmc.fabric-api")
}
include(libs.cloudFabric)
implementation(libs.cloudSigned)
include(libs.cloudSigned)
modImplementation(libs.fabricPermissionsApi)
implementation(libs.fabricPermissionsApi)
include(libs.fabricPermissionsApi)

modImplementation(libs.adventurePlatformFabric)
implementation(libs.adventurePlatformFabric)

modImplementation(libs.miniplaceholders)
implementation(libs.miniplaceholders)

runtimeDownload(libs.mysql)
include(libs.jarRelocator)
Expand Down Expand Up @@ -80,7 +79,7 @@ fabricModJson {
}

carbonPlatform {
productionJar = tasks.remapJar.flatMap { it.archiveFile }
productionJar = tasks.shadowJar.flatMap { it.archiveFile }
}

tasks {
Expand Down Expand Up @@ -119,3 +118,9 @@ publishMods.modrinth {
requires("fabric-api")
requires("adventure-platform-mod")
}

indra {
javaVersions {
target(25)
}
}
12 changes: 7 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resource-factory-paper-convention = { id = "xyz.jpenilla.resource-factory-paper-
resource-factory-bukkit-convention = { id = "xyz.jpenilla.resource-factory-bukkit-convention", version.ref = "resource-factory" }
resource-factory-velocity-convention = { id = "xyz.jpenilla.resource-factory-velocity-convention", version.ref = "resource-factory" }
resource-factory-fabric-convention = { id = "xyz.jpenilla.resource-factory-fabric-convention", version.ref = "resource-factory" }
loom = { id = "xyz.jpenilla.quiet-fabric-loom", version.ref = "loom" }

[versions]
indra = "4.0.0"
Expand All @@ -21,7 +22,7 @@ resource-factory = "1.3.1"
adventure = "4.18.0"
cloud = "2.0.0"
cloudMinecraft = "2.0.0-beta.17"
cloudModded = "2.0.0-beta.15"
cloudModded = "2.0.0-beta.16"
cloudSponge = "2.0.0-SNAPSHOT"
configurate = "4.2.0"
checkerQual = "3.49.2"
Expand All @@ -35,11 +36,12 @@ registry = "1.0.0-SNAPSHOT"
kyoriMoonshine = "2.0.4"
guice = "7.0.0"
velocityApi = "3.5.0-SNAPSHOT"
minecraft = "1.21.11"
minecraft = "26.1.2"
fabricLoader = "0.19.3"
fabricApi = "0.141.4+1.21.11"
fabricPermissionsApi = "0.6.1"
adventurePlatformFabric = "6.8.0"
loom = "1.17-SNAPSHOT"
fabricApi = "0.155.2+26.1.2"
fabricPermissionsApi = "0.7.0"
adventurePlatformFabric = "6.9.0"
luckPermsApi = "5.5"
essentialsx = "2.20.1"
discordsrv = "1.30.5"
Expand Down
68 changes: 0 additions & 68 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,72 +1,5 @@
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

dependencyResolutionManagement {
repositories {
mavenCentral {
mavenContent { releasesOnly() }
}
maven("https://repo.jpenilla.xyz/snapshots/") {
mavenContent {
snapshotsOnly()
includeModuleByRegex("de\\.hexaoxi", "messenger-.*")
includeModule("org.incendo", "cloud-sponge")
includeModule("com.seiama", "registry")
}
}
maven("https://central.sonatype.com/repository/maven-snapshots/") {
mavenContent { snapshotsOnly() }
}
// PaperMC
maven("https://repo.papermc.io/repository/maven-public/")
// Sponge API
maven("https://repo.spongepowered.org/repository/maven-public/")
// PlaceholderAPI
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/") {
content { includeGroup("me.clip") }
}
// EssentialsDiscord
maven("https://repo.essentialsx.net/releases/") {
mavenContent {
releasesOnly()
includeGroup("net.essentialsx")
}
}
maven("https://repo.essentialsx.net/snapshots/") {
mavenContent {
snapshotsOnly()
includeGroup("net.essentialsx")
}
}
// DiscordSRV
maven("https://nexus.scarsz.me/content/groups/public/") {
mavenContent {
includeGroup("com.discordsrv")
}
}
// Glare's repo for Towny
maven("https://repo.glaremasters.me/repository/towny/") {
content { includeGroup("com.palmergames.bukkit.towny") }
}
// FactionsUUID
maven("https://ci.ender.zone/plugin/repository/everything/") {
content { includeGroup("com.massivecraft") }
}
// mcMMO
maven("https://nexus.neetgames.com/repository/maven-releases/") {
content {
includeGroup("com.gmail.nossr50.mcMMO")
}
}
// Parties
maven("https://repo.alessiodp.com/releases/") {
content {
includeGroup("com.alessiodp.parties")
}
}
}
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
}

pluginManagement {
repositories {
gradlePluginPortal()
Expand All @@ -81,7 +14,6 @@ pluginManagement {

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
id("quiet-fabric-loom") version "1.16-SNAPSHOT"
}

rootProject.name = "CarbonChat"
Expand Down