Skip to content

Commit

Permalink
chore: use variable for refined architect version in gradle
Browse files Browse the repository at this point in the history
Also, MDG is now published to gradle plugin portal.
  • Loading branch information
raoulvdberge committed Jul 17, 2024
1 parent e695f78 commit 99ffa05
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
refinedarchitectVersion=0.16.5
# Gradle
org.gradle.jvmargs=-Xmx1G
18 changes: 8 additions & 10 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ dependencyResolutionManagement {
}
versionCatalogs {
create("libs") {
from("com.refinedmods.refinedarchitect:refinedarchitect-versioning:0.16.5")
val refinedarchitectVersion: String by settings
from("com.refinedmods.refinedarchitect:refinedarchitect-versioning:$refinedarchitectVersion")
}
}
}
Expand All @@ -30,17 +31,14 @@ pluginManagement {
name = "Fabric"
url = uri("https://maven.fabricmc.net/")
}
maven {
name = "NeoForge"
url = uri("https://maven.neoforged.net/releases")
}
}
val refinedarchitectVersion: String by settings
plugins {
id("refinedarchitect.root").version("0.16.5")
id("refinedarchitect.base").version("0.16.5")
id("refinedarchitect.common").version("0.16.5")
id("refinedarchitect.neoforge").version("0.16.5")
id("refinedarchitect.fabric").version("0.16.5")
id("refinedarchitect.root").version(refinedarchitectVersion)
id("refinedarchitect.base").version(refinedarchitectVersion)
id("refinedarchitect.common").version(refinedarchitectVersion)
id("refinedarchitect.neoforge").version(refinedarchitectVersion)
id("refinedarchitect.fabric").version(refinedarchitectVersion)
}
}

Expand Down

0 comments on commit 99ffa05

Please sign in to comment.