Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix githubRelease script #1728

Merged
merged 1 commit into from Dec 15, 2022
Merged

Fix githubRelease script #1728

merged 1 commit into from Dec 15, 2022

Conversation

shashachu
Copy link
Contributor

Previously, the task would throw an error:

$ ./gradlew githubRelease
Type-safe project accessors is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':githubRelease'.
> Cannot query the value of this provider because it has no value available.

Tested via a dry run:

./gradlew githubRelease
Type-safe project accessors is an incubating feature.

> Task :githubRelease
Execution optimizations have been disabled for task ':githubRelease' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: '/Users/shasha/code/ktlint/ktlint/build/run'. Reason: Task ':githubRelease' uses this output of task ':ktlint:shadowJarExecutableChecksum' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.6/userguide/validation_problems.html#implicit_dependency for more details about this problem.
:githubRelease [This task is a dry run. All API calls that would modify the repo are disabled. API calls that access the repo information are not disabled. Use this to show what actions would be executed.]
:githubRelease [CHECKING FOR PREVIOUS RELEASE]
:githubRelease [CREATING NEW RELEASE
{
    tag_name               = 0.48.0
    target_commitish       = master
    name                   = 0.48.0
    generate_release_notes = false
    body                   =
        ## [0.48.0] - 2022-10-15

    <clip>

    draft                  = false
    prerelease             = false
}]
:githubRelease [UPLOADING /Users/shasha/code/ktlint/ktlint/build/run]

Description

Previously, the task would throw an error:

```
$ ./gradlew githubRelease
Type-safe project accessors is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':githubRelease'.
> Cannot query the value of this provider because it has no value available.
```

Tested via a dry run:
```
./gradlew githubRelease
Type-safe project accessors is an incubating feature.

> Task :githubRelease
Execution optimizations have been disabled for task ':githubRelease' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: '/Users/shasha/code/ktlint/ktlint/build/run'. Reason: Task ':githubRelease' uses this output of task ':ktlint:shadowJarExecutableChecksum' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.6/userguide/validation_problems.html#implicit_dependency for more details about this problem.
:githubRelease [This task is a dry run. All API calls that would modify the repo are disabled. API calls that access the repo information are not disabled. Use this to show what actions would be executed.]
:githubRelease [CHECKING FOR PREVIOUS RELEASE]
:githubRelease [CREATING NEW RELEASE
{
    tag_name               = 0.48.0
    target_commitish       = master
    name                   = 0.48.0
    generate_release_notes = false
    body                   =
        ## [0.48.0] - 2022-10-15

    <clip>

    draft                  = false
    prerelease             = false
}]
:githubRelease [UPLOADING /Users/shasha/code/ktlint/ktlint/build/run]
```
@shashachu shashachu merged commit 343cfbc into master Dec 15, 2022
@paul-dingemans paul-dingemans deleted the githubrelease branch December 17, 2022 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant