Fix githubRelease script (#1728)

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]
```
1 file changed
tree: 62af5e2c92ece3dcd0f34e0d5fdfd167e6e49300
  1. .github/
  2. build-logic/
  3. docs/
  4. gradle/
  5. ktlint/
  6. ktlint-core/
  7. ktlint-reporter-baseline/
  8. ktlint-reporter-checkstyle/
  9. ktlint-reporter-format/
  10. ktlint-reporter-html/
  11. ktlint-reporter-json/
  12. ktlint-reporter-plain/
  13. ktlint-reporter-plain-summary/
  14. ktlint-reporter-sarif/
  15. ktlint-ruleset-experimental/
  16. ktlint-ruleset-standard/
  17. ktlint-ruleset-template/
  18. ktlint-ruleset-test/
  19. ktlint-test/
  20. ktlint-test-logging/
  21. .announce
  22. .editorconfig
  23. .gitattributes
  24. .gitignore
  25. .homebrew
  26. ADOPTERS.md
  27. build.gradle.kts
  28. CHANGELOG.md
  29. CODE_OF_CONDUCT.md
  30. CONTRIBUTING.md
  31. gradle.properties
  32. gradlew
  33. gradlew.bat
  34. jitpack.yml
  35. LICENSE
  36. mkdocs.yml
  37. README.md
  38. RELEASE_TESTING.MD
  39. RELEASING.md
  40. run-mkdocs-server.sh
  41. settings.gradle.kts
README.md

Key features

  • No configuration required
  • Built-in Rule sets
  • Built-in formatter
  • .editorconfig support
  • Several built-in reporters: plain, json, html and checkstyle
  • Executable jar
  • Allows extension with custom rule sets and reporters

Documentation

User guide

Legal

This project is not affiliated with nor endorsed by JetBrains.
All code, unless specified otherwise, is licensed under the MIT license.
Copyright (c) 2019 Pinterest, Inc.
Copyright (c) 2016-2019 Stanley Shyiko.