Skip to content

Cannot build distributable - Exception thrown in task ":createReleaseDistributable" #258

@sunny-chung

Description

@sunny-chung

🐛 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

  1. Clone https://github.com/sunny-chung/giant-log-viewer.git
  2. 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
  3. Sync Gradle
  4. Run Gradle tasks clean createReleaseDistributable
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions