generated from korlibs/korge-kproject-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'korlibs:main' into main
- Loading branch information
Showing
5 changed files
with
26 additions
and
39 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,5 +1,5 @@ | ||
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 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
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" | ||
buildscript { | ||
val libsTomlFile = File(this.sourceFile?.parentFile, "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") | ||
|
||
repositories { mavenLocal(); mavenCentral(); google(); gradlePluginPortal() } | ||
|
||
dependencies { | ||
classpath("com.soywiz.korge.settings:com.soywiz.korge.settings.gradle.plugin:$version") | ||
} | ||
} | ||
|
||
kproject("./deps") | ||
apply(plugin = "com.soywiz.korge.settings") |
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