🐛 Describe the bug
Cannot build distributable - Exception thrown in task ":createReleaseDistributable"
Error log:
> Task :createReleaseDistributable FAILED
Execution failed for task ':createReleaseDistributable'.
> 'kotlin.sequences.Sequence kotlin.sequences.SequencesKt.sequenceOf(java.lang.Object)'
...
Caused by: java.lang.NoSuchMethodError: 'kotlin.sequences.Sequence kotlin.sequences.SequencesKt.sequenceOf(java.lang.Object)'
at io.github.kdroidfilter.nucleus.desktop.application.tasks.FilesMapping.saveTo(AbstractJPackageTask.kt:860)
at io.github.kdroidfilter.nucleus.desktop.application.tasks.AbstractJPackageTask.saveStateAfterFinish(AbstractJPackageTask.kt:751)
at io.github.kdroidfilter.nucleus.desktop.application.tasks.AbstractJvmToolOperationTask.run(AbstractJvmToolOperationTask.kt:84)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:45)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.execute(IncrementalTaskAction.java:26)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
...
⚠️ Current behavior
As above.
✅ Expected behavior
No error. A build is exported successfully.
💣 Steps to reproduce
- Clone https://github.com/sunny-chung/giant-log-viewer.git
- Modify build.gradle.kts by:
i) Add id("io.github.kdroidfilter.nucleus") version "1.15.7" just before the end of the plugins block
ii) Replace first import line by import io.github.kdroidfilter.nucleus.desktop.application.dsl.TargetFormat
iii) Replace compose.desktop { application { by nucleus.application {
iv) Comment out the extra } in line 91
- Sync Gradle
- Run Gradle tasks
clean createReleaseDistributable
- The task would fail with exception
📷 Screenshots
N/A
📱 Tech info
- OS: Windows 11
- Library/App version: 1.15.7
- Gradle 8.8, Kotlin 2.0.20, JDK 21
Comments
I read your instruction that minimum requirements in documentation website https://nucleusframework.dev/ are JDK 17+, Gradle 8.0+ and Kotlin 2.0+. My setting satisfies the requirements. If that is no longer true, please update the requirements.
🐛 Describe the bug
Cannot build distributable - Exception thrown in task ":createReleaseDistributable"
Error log:
As above.
✅ Expected behavior
No error. A build is exported successfully.
💣 Steps to reproduce
i) Add
id("io.github.kdroidfilter.nucleus") version "1.15.7"just before the end of thepluginsblockii) Replace first import line by
import io.github.kdroidfilter.nucleus.desktop.application.dsl.TargetFormatiii) Replace
compose.desktop { application {bynucleus.application {iv) Comment out the extra
}in line 91clean createReleaseDistributable📷 Screenshots
N/A
📱 Tech info
Comments
I read your instruction that minimum requirements in documentation website https://nucleusframework.dev/ are JDK 17+, Gradle 8.0+ and Kotlin 2.0+. My setting satisfies the requirements. If that is no longer true, please update the requirements.