Skip to content

Properties are missing input or output annotations #3

@luca992

Description

@luca992

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.

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