Skip to content

"'io.ia.sdk.gradle.modl.task.Deploy' property 'targetUrl' with nested type 'java.lang.String' is not supported." #46

Description

@benmusson
gradlew deployModl
...
> Task :modules:example-module:deployModl
Execution optimizations have been disabled for task ':modules:example-module:deployModl' to ensure correctness due to the following reasons:
  - In plugin 'io.ia.sdk.modl' type 'io.ia.sdk.gradle.modl.task.Deploy' property 'targetUrl' with nested type 'java.lang.String' is not supported. Reason: Type is in 'java.*' or 'javax.*' package that are reserved for standard Java API types. For more information, please refer to https://docs.gradle.org/8.5/userguide/validation_problems.html#unsupported_nested_type in the Gradle documentation.
Response code 200
Module ExampleModule.unsigned.modl was uploaded to http://localhost:8088

Suggested fix in task/Deploy.kt:

    @get:Nested
    val targetUrl: String by lazy {
        "${hostGateway.get()}/$SERVLET_PATH"
    }

could be

    @get:Internal
    val targetUrl: String by lazy {
        "${hostGateway.get()}/$SERVLET_PATH"
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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