-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from korlibs/bump/korge-5.0.2
Bump KorGE to 5.0.2
- Loading branch information
Showing
5 changed files
with
24 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[plugins] | ||
korge = { id = "com.soywiz.korge", version = "5.0.2" } | ||
#korge = { id = "com.soywiz.korge", version = "999.0.0.999" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
pluginManagement { repositories { mavenLocal(); mavenCentral(); google(); gradlePluginPortal() } } | ||
|
||
plugins { | ||
//id("com.soywiz.kproject.settings") version "0.0.1-SNAPSHOT" | ||
id("com.soywiz.kproject.settings") version "0.3.1" | ||
pluginManagement { | ||
repositories { mavenLocal(); mavenCentral(); google(); gradlePluginPortal() } | ||
} | ||
|
||
rootProject.name = "${rootDir.name}-example" | ||
// @TODO: Why can't we just use libs here? We can't even use a TOML parser since it is gradle internal, and we cannot load a library in a reasonably way here. | ||
plugins { | ||
val libsTomlFile = File("gradle/libs.versions.toml").readText() | ||
var plugins = false | ||
var version = "" | ||
for (line in libsTomlFile.lines().map { it.trim() }) { | ||
if (line.startsWith("#")) continue | ||
if (line.startsWith("[plugins]")) plugins = true | ||
if (plugins && line.startsWith("korge") && Regex("^korge\\s*=.*").containsMatchIn(line)) version = Regex("version\\s*=\\s*\"(.*?)\"").find(line)?.groupValues?.get(1) ?: error("Can't find korge version") | ||
} | ||
if (version.isEmpty()) error("Can't find korge version in $libsTomlFile") | ||
|
||
kproject("./deps") | ||
id("com.soywiz.korge.settings") version version | ||
} |