Skip to content

Commit

Permalink
Release 1.12.1.7 !
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyettinger committed Mar 29, 2024
1 parent 7cd914b commit f94967b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
14 changes: 13 additions & 1 deletion Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ that works with the latest Android tools already.

### A Kotlin project that contains an Android module gives the message `jvm target compatibility should be set to the same Java version.`

This should be fixed in 1.12.0.1 by using toolchains; if that doesn't work for you, here are other options.
This should be fixed in 1.12.0.1 by using toolchains, or in 1.12.1.7 using Kotlin's `jvmTarget` option; if that doesn't
work for you, here are other options.

The simplest solution here is to set your JDK to a Java 17 one and to change `java.sourceCompatibility` and
`java.targetCompatibility` to 11 each. You may need to set this for both Java and Kotlin, and they must use the same
Expand Down Expand Up @@ -120,6 +121,8 @@ A good option for cross-platform building is to keep the language level on 11 (s
This works even on Android; even with its requirements for Java 17 in other places, using a toolchain JDK 11 seems to
keep away from those requirements. A JDK 17 may still be needed for other parts of an Android build.

Version 1.12.1.7 does not use toolchains because some simpler ways to accomplish the same things became feasible.

### Graal Native Image isn't working (in any of various ways).

First, ensure that you changed `enableGraalNative=false` to `enableGraalNative=true` in gradle.properties. This enables
Expand Down Expand Up @@ -203,6 +206,15 @@ without `:sources`, then both need to be given the same exclude block in curly b
Once every dependency on older GWT has been excluded, you should be able to run `html:superDev` or `html:dist` without
any issues. From this, anyway.

Libraries known to be affected by this include Artemis-ODB, the official Box2D, gdx-facebook, the official
gdx-controllers, the unofficial gdx-controllerutils, Guacamole, and GdxBasisUniversal. There are probably more that are
not in gdx-liftoff's known extension list. If you can get one of these using an extensions checkbox in Liftoff, that way
is **strongly recommended**.

(There's probably a more elegant way to solve this using Gradle's dependency constraints; I just haven't figured it out
yet... If anyone wants to flex their Gradle muscles and provide a way for the old gwt-user and gdx-backend-gwt
dependencies to be automatically excluded, that would be very welcome!)

### Selecting MOE causes the project to not generate correctly, and errors are logged.

The iOS backend using Multi-OS Engine (MOE) seems to have some incompatibility with the current Gradle, 8.7, that also
Expand Down
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
}
}

version = "1.12.1.7-SNAPSHOT"
version = "1.12.1.7"
mainClassName = 'gdx.liftoff.MainKt'
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
Expand Down Expand Up @@ -52,7 +52,10 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
implementation "org.apache.commons:commons-exec:$commonsExecVersion"
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
implementation ("com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"){
exclude group: "org.jcraft", module: "jorbis"
exclude group: "org.lwjgl", module: "lwjgl-openal"
}
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
implementation "com.crashinvaders.lml:gdx-kiwi:$lmlVersion"
implementation "com.crashinvaders.lml:gdx-lml:$lmlVersion"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kotlinVersion=1.9.22
gdxVersion=1.12.1
lmlVersion=1.10.1.12.0
lmlVersion=1.10.1.12.1
visUiVersion=1.5.3
commonsExecVersion=1.3
lwjgl3Version=3.3.3
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/gdx/liftoff/config/Configuration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import gdx.liftoff.views.widgets.ScrollableTextArea
@Suppress("unused") // Fields accessed via reflection.
class Configuration {
companion object {
const val VERSION = "1.12.1.7-SNAPSHOT"
const val VERSION = "1.12.1.7"
const val WIDTH = 600
const val HEIGHT = 700
const val PREFERENCES_PATH = "gdx-liftoff-prefs"
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.1.6
1.12.1.7

0 comments on commit f94967b

Please sign in to comment.