Skip to content

codegen-plugin implicitly depends on framework-errors #1145

@timocov

Description

@timocov

If you just add software.amazon.smithy.java:codegen-plugin to your dependencies without adding software.amazon.smithy.java:framework-errors and run server codegen it will fail at runtime at this line:

software/amazon/smithy/java/framework/model/UnknownOperationException
java.lang.NoClassDefFoundError: software/amazon/smithy/java/framework/model/UnknownOperationException
	at software.amazon.smithy.java.codegen.server.generators.ServiceGenerator$GetOperationGenerator.lambda$run$0(ServiceGenerator.java:347)
	at software.amazon.smithy.utils.AbstractCodeWriter.openBlock(AbstractCodeWriter.java:1612)

It looks like an explicit dependency on framework-errors in codegen-plugin is missing?

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