typescript-gradle-plugin icon indicating copy to clipboard operation
typescript-gradle-plugin copied to clipboard

Tried the plugin in my gradle/kotlin project but failed with some errors (Gradle 7)

Open SchlauFuchs opened this issue 4 years ago • 0 comments

This is the error log:

- Type 'CompileTypeScript' property 'allowJs' has redundant getters: 'getAllowJs()' and 'isAllowJs()'.
   
   Reason: Boolean property 'allowJs' has both an `is` and a `get` getter.
   
   Possible solutions:
     1. Remove one of the getters.
     2. Annotate one of the getters with @Internal.
   
   Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#redundant_getters for more details about this problem.
 - Type 'CompileTypeScript' property 'allowJs' of type boolean shouldn't be annotated with @Optional.
   
   Reason: Properties of primitive type cannot be optional.
   
   Possible solutions:
     1. Remove the @Optional annotation.
     2. Use the java.lang.Boolean type instead.
   
   Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#cannot_use_optional_on_primitive_types for more details about this problem.
 - Type 'CompileTypeScript' property 'allowSyntheticDefaultImports' has redundant getters: 'getAllowSyntheticDefaultImports()' and 'isAllowSyntheticDefaultImports()'.
   
   Reason: Boolean property 'allowSyntheticDefaultImports' has both an `is` and a `get` getter.
   
   Possible solutions:
     1. Remove one of the getters.
     2. Annotate one of the getters with @Internal.
   
   Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#redundant_getters for more details about this problem.
 - Type 'CompileTypeScript' property 'allowSyntheticDefaultImports' of type boolean shouldn't be annotated with @Optional.
   
   Reason: Properties of primitive type cannot be optional.
   
   Possible solutions:
     1. Remove the @Optional annotation.
     2. Use the java.lang.Boolean type instead.
   
   Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#cannot_use_optional_on_primitive_types for more details about this problem.
 - Type 'CompileTypeScript' property 'allowUnreachableCode' has redundant getters: 'getAllowUnreachableCode()' and 'isAllowUnreachableCode()'.
   
   Reason: Boolean property 'allowUnreachableCode' has both an `is` and a `get` getter.
   
   Possible solutions:
     1. Remove one of the getters.
     2. Annotate one of the getters with @Internal.
   
   Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#redundant_getters for more details about this problem.

SchlauFuchs avatar Jul 22 '21 00:07 SchlauFuchs