Skip to content

Commit 2e5f7c6

Browse files
Check if native-image artifact is supported
1 parent 57ed538 commit 2e5f7c6

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/main/kotlin/com/teamdev/jxbrowser/gradle/JxBrowserExtension.kt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,6 @@ public open class JxBrowserExtension(
216216
shortName: String,
217217
version: String,
218218
) {
219-
val artifactNameToReleaseVersion =
220-
mapOf(
221-
"compose" to "8.0.0",
222-
"kotlin" to "8.0.0",
223-
"win64-arm" to "8.0.0",
224-
)
225219
val artifactReleaseVersion = artifactNameToReleaseVersion[shortName]
226220
if (artifactReleaseVersion != null) {
227221
val releaseVersion = Semver(artifactReleaseVersion)
@@ -234,5 +228,16 @@ public open class JxBrowserExtension(
234228

235229
private companion object {
236230
private const val GROUP = "com.teamdev.jxbrowser"
231+
232+
/**
233+
* Maps an artifact short name to the first JxBrowser version that supports it.
234+
*/
235+
private val artifactNameToReleaseVersion =
236+
mapOf(
237+
"compose" to "8.0.0",
238+
"kotlin" to "8.0.0",
239+
"win64-arm" to "8.0.0",
240+
"native-image" to "9.0.0",
241+
)
237242
}
238243
}

0 commit comments

Comments
 (0)