-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: Publish single universal artifact instead of one per platform
* Update Gradle, EGT, and Kotlin plugin (to last version before 2.0.0 because that would entail some more changes) * Replace remaining Platform dependencies with newly introduced UC methods * Publish from main `:` project instead of individual platform projects * Move example into `:example` project and run it via Standalone UC * Fix Vigilant spawning non-daemon background threads which prevent the example from exiting cleanly * Update README GitHub: #87
- Loading branch information
Showing
30 changed files
with
109 additions
and
1,917 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,3 @@ build | |
run | ||
.DS_Store | ||
Thumbs.db | ||
|
||
versions/*/tmp.srg | ||
versions/*/api/ |
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
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 @@ | ||
config/ |
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,16 @@ | ||
plugins { | ||
kotlin("jvm") | ||
application | ||
id("gg.essential.defaults.repo") | ||
} | ||
|
||
dependencies { | ||
implementation(libs.universalcraft.standalone) | ||
implementation(project(":")) | ||
} | ||
|
||
kotlin.jvmToolchain(8) | ||
|
||
application { | ||
mainClass.set("gg.essential.vigilance.example.MainKt") | ||
} |
2 changes: 0 additions & 2 deletions
2
...ential/vigilance/example/ExampleConfig.kt → ...ential/vigilance/example/ExampleConfig.kt
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,3 @@ | ||
@file:Suppress("unused") | ||
|
||
package gg.essential.vigilance.example | ||
|
||
import gg.essential.universal.UChat | ||
|
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
example/src/main/kotlin/gg/essential/vigilance/example/main.kt
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,9 @@ | ||
package gg.essential.vigilance.example | ||
|
||
import gg.essential.universal.UScreen | ||
import gg.essential.universal.standalone.runUniversalCraft | ||
|
||
fun main() = runUniversalCraft("Vigilance Example", 854, 480) { window -> | ||
UScreen.displayScreen(ExampleConfig.gui()) | ||
window.renderScreenUntilClosed() | ||
} |
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,11 +1,15 @@ | ||
[versions] | ||
kotlin = "1.5.10" | ||
jetbrains-annotations = "23.0.0" | ||
elementa = "638" | ||
universalcraft = "355" | ||
elementa = "659" | ||
nightconfig = "3.6.0" | ||
|
||
[libraries] | ||
kotlin-stdlib-jdk8 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" } | ||
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" } | ||
universalcraft-forge10809 = { module = "gg.essential:universalcraft-1.8.9-forge", version.ref = "universalcraft" } | ||
universalcraft-standalone = { module = "gg.essential:universalcraft-standalone", version.ref = "universalcraft" } | ||
elementa = { module = "gg.essential:elementa", version.ref = "elementa" } | ||
jetbrains-annotations = { module = "org.jetbrains:annotations", version.ref = "jetbrains-annotations" } | ||
nightconfig-toml = { module = "com.electronwill.night-config:toml", version.ref = "nightconfig" } |
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-8.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-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
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
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,9 +1,9 @@ | ||
package gg.essential.vigilance.impl | ||
|
||
import gg.essential.vigilance.impl.Platform.Companion.platform | ||
import gg.essential.universal.UI18n | ||
import org.jetbrains.annotations.ApiStatus | ||
|
||
@ApiStatus.Internal | ||
object I18n { | ||
fun format(key: String): String = platform.i18n(key) | ||
fun format(key: String): String = UI18n.i18n(key) | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.