kotlin-spm-plugin icon indicating copy to clipboard operation
kotlin-spm-plugin copied to clipboard

Properties are missing input or output annotations

Open luca992 opened this issue 2 years ago • 6 comments

I can't get gradle to build after adding a spm dependency:

    spm {
        macos("11") {
            dependencies {
                `package`(
                    url = "https://github.com/AFNetworking/AFNetworking.git",
                    version = "4.0.0",
                    name = "AFNetworking"
                )
            }
        }
    }

I'm using kotlin 1.6.21

> Task :shared:initializeSwiftPackageProjectOSX FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings
1 actionable task: 1 executed

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':shared:initializeSwiftPackageProjectOSX' (type 'InitializeSwiftPackageProjectTask').
  - In plugin 'com.github.pagr0m.kotlin.native.spm.plugin.KotlinSpmPlugin$Inject' type 'com.github.pagr0m.kotlin.native.spm.tasks.InitializeSwiftPackageProjectTask' property 'platformFamily.appleFamily' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'com.github.pagr0m.kotlin.native.spm.plugin.KotlinSpmPlugin$Inject' type 'com.github.pagr0m.kotlin.native.spm.tasks.InitializeSwiftPackageProjectTask' property 'platformFamily.dynamicPrefix' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'com.github.pagr0m.kotlin.native.spm.plugin.KotlinSpmPlugin$Inject' type 'com.github.pagr0m.kotlin.native.spm.tasks.InitializeSwiftPackageProjectTask' property 'platformFamily.dynamicSuffix' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'com.github.pagr0m.kotlin.native.spm.plugin.KotlinSpmPlugin$Inject' type 'com.github.pagr0m.kotlin.native.spm.tasks.InitializeSwiftPackageProjectTask' property 'platformFamily.exeSuffix' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'com.github.pagr0m.kotlin.native.spm.plugin.KotlinSpmPlugin$Inject' type 'com.github.pagr0m.kotlin.native.spm.tasks.InitializeSwiftPackageProjectTask' property 'platformFamily.staticPrefix' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.4.2/userguide/validation_problems.html#missing_annotation for more details about this problem.

luca992 avatar May 27 '22 05:05 luca992