Skip to content

Throw required value not set exception when rawString is set to true #764

@qian0817

Description

@qian0817

Please check the User Guide before submitting "how do I do 'x'?" questions!

Shadow Version

7.1.2

Gradle Version

7.4.2

Expected Behavior

work well when rawString is true.

Actual Behavior

Throw required value not set exception when rawString is set to true.

Gradle Build Script(s)

tasks.withType<ShadowJar> {
    val prefix = "shaded"
    listOf(
        "io.netty",
    ).forEach { relocate(it, "$prefix.$it") }
    relocate(
        SimpleRelocator(
            "META-INF/native/libnetty_transport_native_epoll_x86_64.so",
            "META-INF/native/lib${prefix.replace(".", "_")}_netty_transport_native_epoll_x86_64.so",
            emptyList(),
            emptyList(),
            true
        )
    )
}

Content of Shadow JAR (jar tf <jar file> - post link to GIST if too long)

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