Skip to content

Generating javadoc for the project does not work anymore on master #426

@DevHugo

Description

@DevHugo

Executing the command ./gradlew :showkase:javaDocReleaseGeneration generate a gradle error :

> Task :showkase:compileReleaseKotlin
w: Argument -Xopt-in is deprecated. Please use -opt-in instead
WARN: Could not read file: /Showkase/showkase-annotation/build/libs/showkase-annotation.jar!/com/airbnb/android/showkase/annotation/ScreenshotConfig.class; size in bytes: 1100; file type: CLASS
java.lang.UnsupportedOperationException: PermittedSubclasses requires ASM9
        at org.jetbrains.org.objectweb.asm.ClassVisitor.visitPermittedSubclass(ClassVisitor.java:266)
        at org.jetbrains.org.objectweb.asm.ClassReader.accept(ClassReader.java:684)
        [...]

> Task :showkase:javaDocReleaseGeneration FAILED
Initializing plugins
Dokka is performing: documentation for :showkase
Validity check
Creating documentation models

FAILURE: Build failed with an exception.

In 1.0.5 tag, the command pass correctly but not on master (commit b722d73)

This tasks executed when publishing the dependency on a maven repository and could be a blocker for the next release of the libs.

Changing the sealed interface ScreenshotConfig to a simple interface ScreenshotConfig and changing the file WriterUtils file by adding an else in the when, make it work. Not a cool solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions