Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !9059

Gradle plugin - @Input and @Internal should not be apply on the same property

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/vgalloy/input-and-internal-should-not-be-apply-on-same-property into master Mar 24, 2021
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: vgalloy

Motivation:

In Gradle 7.0 apply @Input and @Internal on property is forbidden. Before Gradle 7.0 applying both on the same property is confusing. According to the documentation:

  • @Input: Attached to a task property to indicate that the property specifies some input value for the task.
  • @Internal: Attached to a task property to indicate that the property is not to be taken into account for up-to-date checking

Note: Gradle 7.0 is not release yet 2021-03-24

Step to reproduce

build.gradle.kts

plugins {
  id("org.openapi.generator") version ("5.1.0")
}

with the command line ./gradlew openApiGenerate will cause

Type 'GenerateTask' property 'input' annotated with @Internal should not be also annotated with @Input.
    
    Reason: A property is ignored but also has input annotations.
    
    Possible solutions:
      1. Remove the input annotations.
      2. Remove the @Internal annotation.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/vgalloy/input-and-internal-should-not-be-apply-on-same-property