Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Allow configuration of ExecTask jvm arguments #221

@JamesGuthrie

Description

@JamesGuthrie

Describe the feature

I would like to be able to provide a jvmArgs parameter during the configuration which is passed into the underlying ExecTask.

An example of how this could look:

swaggerSources {
    myApi {
        inputFile = file("myApi.yaml")
        code {
            language = 'java'
        }
        jvmArgs = '--add-opens java.base/java.util=ALL-UNNAMED'
    }
}

Why do you want the feature?

The swagger generator currently does not run on jdk 16 because one of its dependencies performs illegal reflection. There is an issue open against that dependency jknack/handlebars.java#667. I suspect that it could take a while before anything moves there. In the meantime, it would be nice to be able to configure the jvm args to provide an add-opens argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions