Skip to content

Commit

Permalink
JPERF-941: Annotate signing properties
Browse files Browse the repository at this point in the history
`PublishTest` was failing with:
```
Some problems were found with the configuration of task ':gatherKeyInformation' (type 'SigningKeyInformationTask').
  - In plugin 'com.atlassian.performance.tools.gradle-release' type 'com.atlassian.performance.tools.SigningKeyInformationTask' property 'signingKeyId' 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.6/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'com.atlassian.performance.tools.gradle-release' type 'com.atlassian.performance.tools.SigningKeyInformationTask' property 'signingPassword' 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.6/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'com.atlassian.performance.tools.gradle-release' type 'com.atlassian.performance.tools.SigningKeyInformationTask' property 'signingSecretKeyRingFile' 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.6/userguide/validation_problems.html#missing_annotation for more details about this problem.
```
  • Loading branch information
dagguh committed Jan 26, 2023
1 parent 0b2ec06 commit df6f68c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
package com.atlassian.performance.tools

import org.gradle.api.DefaultTask
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.TaskAction
import org.gradle.kotlin.dsl.extra
import java.lang.System.getenv

open class SigningKeyInformationTask : DefaultTask() {
@Input
val signingKeyId = "signing.keyId"

@Input
val signingSecretKeyRingFile = "signing.secretKeyRingFile"

@Input
val signingPassword = "signing.password"

@TaskAction
Expand Down

0 comments on commit df6f68c

Please sign in to comment.