Files
SCOPENET-MC/integrations/settings.gradle

20 lines
1.0 KiB
Groovy

pluginManagement {
repositories {
maven { url = 'https://maven.fabricmc.net/' }
maven { url = 'https://maven.minecraftforge.net/' }
gradlePluginPortal()
}
}
rootProject.name = 'scopenet-integrations'
include 'common', 'api', 'paper'
// Build loaders separately: Forge and Loom use different Gradle generations.
if (providers.gradleProperty('loader').orNull == 'fabric') include 'fabric'
if (providers.gradleProperty('loader').orNull == 'forge') include 'forge'
// The optional client mod (HUD, claim overlay, shop and market windows). Fabric 1.20.1; build with -Ploader=fabric-client.
if (providers.gradleProperty('loader').orNull == 'fabric-client') include 'fabric-client'
def mcVer = (providers.gradleProperty('mcVersion').orNull ?: startParameter.projectProperties['mcVersion'] ?: '').toString()
if (mcVer.startsWith('26.') || mcVer == '26.x') {
if (findProject(':fabric') != null) project(':fabric').buildFileName = 'modern.gradle'
if (findProject(':forge') != null) project(':forge').buildFileName = 'modern.gradle'
}