mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
Bump Gradle wrapper to 8.5
This commit is contained in:
4 files changed
+8
-8
No files matched your search
@@ -3,10 +3,10 @@ import org.spongepowered.configurate.yaml.NodeStyle
|
|||||||
import org.spongepowered.configurate.yaml.YamlConfigurationLoader
|
import org.spongepowered.configurate.yaml.YamlConfigurationLoader
|
||||||
import xyz.jpenilla.runtask.task.RunWithPlugins
|
import xyz.jpenilla.runtask.task.RunWithPlugins
|
||||||
|
|
||||||
val ext = extensions.create("configurablePlugins", ConfigurablePluginsExt::class.java)
|
val pluginsExt = extensions.create("configurablePlugins", ConfigurablePluginsExt::class.java)
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
val configs = ext.gradleDependencyBased.get().map { entry ->
|
val configs = pluginsExt.gradleDependencyBased.get().map { entry ->
|
||||||
val c = configurations.register(entry.name + "Plugin") {
|
val c = configurations.register(entry.name + "Plugin") {
|
||||||
isTransitive = false
|
isTransitive = false
|
||||||
}
|
}
|
||||||
@@ -49,7 +49,7 @@ fun readConfig(): Config {
|
|||||||
val n = loader.load()
|
val n = loader.load()
|
||||||
val c = n.get(Config::class.java) as Config
|
val c = n.get(Config::class.java) as Config
|
||||||
var write = false
|
var write = false
|
||||||
for (e in ext.gradleDependencyBased.get()) {
|
for (e in pluginsExt.gradleDependencyBased.get()) {
|
||||||
if (!c.defaults.containsKey(e.name)) {
|
if (!c.defaults.containsKey(e.name)) {
|
||||||
write = true
|
write = true
|
||||||
c.defaults[e.name] = e.defaultEnabled
|
c.defaults[e.name] = e.defaultEnabled
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ plugins {
|
|||||||
id("quiet-fabric-loom")
|
id("quiet-fabric-loom")
|
||||||
}
|
}
|
||||||
|
|
||||||
val carbon: Configuration by configurations.creating
|
val shade: Configuration by configurations.creating
|
||||||
|
|
||||||
configurations.implementation {
|
configurations.implementation {
|
||||||
extendsFrom(carbon)
|
extendsFrom(shade)
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -18,7 +18,7 @@ dependencies {
|
|||||||
modImplementation(libs.fabricApi)
|
modImplementation(libs.fabricApi)
|
||||||
modImplementation(libs.fabricApiDeprecated) // LuckPerms needs to work at dev time
|
modImplementation(libs.fabricApiDeprecated) // LuckPerms needs to work at dev time
|
||||||
|
|
||||||
carbon(projects.carbonchatCommon) {
|
shade(projects.carbonchatCommon) {
|
||||||
exclude("net.kyori", "adventure-api")
|
exclude("net.kyori", "adventure-api")
|
||||||
exclude("net.kyori", "adventure-text-serializer-gson")
|
exclude("net.kyori", "adventure-text-serializer-gson")
|
||||||
exclude("net.kyori", "adventure-text-serializer-plain")
|
exclude("net.kyori", "adventure-text-serializer-plain")
|
||||||
@@ -54,7 +54,7 @@ carbonPlatform {
|
|||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
shadowJar {
|
shadowJar {
|
||||||
configurations = arrayListOf(carbon) as List<FileCollection>
|
configurations = listOf(shade)
|
||||||
relocateDependency("cloud.commandframework.minecraft.extras")
|
relocateDependency("cloud.commandframework.minecraft.extras")
|
||||||
standardRuntimeRelocations()
|
standardRuntimeRelocations()
|
||||||
relocateGuice()
|
relocateGuice()
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
Reference in new issue
Block a user