Repository navigation
Upgrade libraries, simplify project structure #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
7f553b6
chore: centralize build versions and remove Maven Local
demoth 126a11f
chore: update github ci actions
demoth 01493da
chore: simplify dependency repositories
demoth 7d9be07
chore: update JUnit to 5.10.5
demoth c4a14eb
chore: upgrade CSV, Jackson and Logback dependencies
demoth 1d8e98f
chore: upgrade git-properties and simplify resource wiring
demoth 1f52983
chore: use standard Cake application distributions
demoth e8b443c
chore: enable configuration cache for JVM builds
demoth 6aa5c20
chore: upgrade Gradle wrapper to 9.8.0
demoth 1b6319d
chore: simplify Java and Kotlin toolchain configuration
demoth c68e914
chore: upgrade Kotlin and align runtime libraries
demoth 0118126
chore: upgrade kotlinx serialization to 1.11.0
demoth 9e69cc7
chore: remove unused coroutine and KTX async dependencies
demoth 0c6847e
chore: make Graal native builds opt-in
demoth bbd61a2
chore: upgrade Beryx and simplify runtime packaging
demoth 607bcc7
chore: correct build docs and report launcher failures
demoth 28ef5b6
chore: upgrade the matched libGDX graphics stack
demoth 53e5513
chore: upgrade Graal tooling and simplify native resources
demoth b15b4c8
fix: register native libGDX audio constructors
demoth 483b53d
chore: upgrade Java toolchain and runtimes to 25 LTS
demoth 39aeef8
refactor: share Cake desktop and native build configuration
demoth a7e3907
1.2.1
demoth 7231c26
fix: macos launcher: pass missed args into the restarted command
demoth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,95 +1,11 @@ | ||
| plugins { | ||
| id 'application' | ||
| id 'org.beryx.runtime' version "$beryxRuntimePluginVersion" | ||
| id 'org.graalvm.buildtools.native' version "$graalNativeBuildToolsVersion" apply false | ||
| alias(libs.plugins.beryxRuntime) | ||
| alias(libs.plugins.graalNativeBuildTools) apply false | ||
| } | ||
|
|
||
| sourceSets.main.resources.srcDirs += [ rootProject.file('assets').path ] | ||
| def desktopAppName = 'cake-client' | ||
| def mainClassName = 'org.demoth.cake.lwjgl3.Lwjgl3GameLauncher' | ||
| application { | ||
| mainClass.set(mainClassName) | ||
| } | ||
| dependencies { | ||
| implementation libs.gdxControllersDesktop | ||
| implementation libs.gdxBackendLwjgl3 | ||
| implementation(libs.gdxFreetypePlatform) { | ||
| artifact { | ||
| classifier = 'natives-desktop' | ||
| } | ||
| } | ||
| implementation(libs.gdxPlatform) { | ||
| artifact { | ||
| classifier = 'natives-desktop' | ||
| } | ||
| } | ||
| implementation project(':cake:core') | ||
| } | ||
|
|
||
| def jarName = "${desktopAppName}-${version}.jar" | ||
| def os = System.properties['os.name'].toLowerCase() | ||
| def iconsDir = project.file('icons') | ||
|
|
||
| run { | ||
| outputs.upToDateWhen { false } | ||
| workingDir = rootProject.file('assets').path | ||
| setIgnoreExitValue(true) | ||
|
|
||
| if (os.contains('mac')) jvmArgs += "-XstartOnFirstThread" | ||
| } | ||
|
|
||
| jar { | ||
| archiveFileName.set(jarName) | ||
| destinationDirectory = file("${project.layout.buildDirectory.asFile.get().absolutePath}/lib") | ||
| duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
| dependsOn configurations.runtimeClasspath | ||
| from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } | ||
| exclude('META-INF/INDEX.LIST', 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA') | ||
| dependencies { | ||
| exclude('META-INF/INDEX.LIST', 'META-INF/maven/**') | ||
| } | ||
| manifest { | ||
| attributes 'Main-Class': mainClassName | ||
| } | ||
| doLast { | ||
| file(archiveFile).setExecutable(true, false) | ||
| } | ||
| } | ||
|
|
||
| if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_14)) { | ||
| tasks.jpackageImage.doNotTrackState("This task both reads from and writes to the build folder.") | ||
| runtime { | ||
| options.set(['--strip-debug', | ||
| '--compress', '2', | ||
| '--no-header-files', | ||
| '--no-man-pages', | ||
| '--strip-native-commands', | ||
| '--vm', 'server']) | ||
| modules.set([ | ||
| 'jdk.unsupported' | ||
| ]) | ||
| distDir.set(file(project.layout.buildDirectory)) | ||
| jpackage { | ||
| imageName = desktopAppName | ||
| skipInstaller = true | ||
| jpackageHome = javaHome.getOrElse("") | ||
| mainJar = jarName | ||
| if (os.contains('win')) { | ||
| imageOptions = ["--icon", new File(iconsDir, 'logo.ico').absolutePath] | ||
| } else if (os.contains('nix') || os.contains('nux') || os.contains('bsd')) { | ||
| imageOptions = ["--icon", new File(iconsDir, 'logo.png').absolutePath] | ||
| } else if (os.contains('mac')) { | ||
| imageOptions = ["--icon", new File(iconsDir, 'logo.icns').absolutePath] | ||
| } | ||
| } | ||
| } | ||
| mainClass.set('org.demoth.cake.lwjgl3.Lwjgl3GameLauncher') | ||
| } | ||
|
|
||
| tasks.register('dist') { | ||
| dependsOn 'jar' | ||
| } | ||
|
|
||
| if(enableGraalNative == 'true') { | ||
| apply plugin: 'org.graalvm.buildtools.native' | ||
| apply from: file("nativeimage.gradle") | ||
| } | ||
| apply from: rootProject.file('cake/desktop.gradle') |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.