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

Detekt 1.17.0-RC1 does not work #3729

Closed
chao2zhang opened this issue May 1, 2021 · 1 comment · Fixed by #3730
Closed

Detekt 1.17.0-RC1 does not work #3729

chao2zhang opened this issue May 1, 2021 · 1 comment · Fixed by #3730
Labels

Comments

@chao2zhang
Copy link
Member

Expected Behavior

Detekt should work as is when upgrading to Detekt 1.17.0-RC1

Observed Behavior

Running detekt task failed ./gradlew detekt

Steps to Reproduce

Run the detekt with 1.17.0-RC1:

Execution failed for task ':detekt'.
> Could not resolve all files for configuration ':detekt'.
   > Could not find io.gitlab.arturbosch.detekt:detekt-cli:1.17.0.
     Searched in the following locations:
       - file:/Users/cazhang/.m2/repository/io/gitlab/arturbosch/detekt/detekt-cli/1.17.0/detekt-cli-1.17.0.pom
       - https://jcenter.bintray.com/io/gitlab/arturbosch/detekt/detekt-cli/1.17.0/detekt-cli-1.17.0.pom
     Required by:
         project :

Context

Reported by @theexiile1305 in #3455 (comment)

Your Environment

Buildscan: https://gradle.com/s/awheke433xwa2

@chao2zhang
Copy link
Member Author

From https://search.maven.org/search?q=a:detekt-gradle-plugin, the downloaded jar detekt-gradle-plugin-1.17.0-RC1.jar has version.properties with detektVersion = 1.17.0.

The cause could be in buildSrc/src/main/kotlin/Versions.kt - When we publish the artifacts to mavenCentral, Versions.DETEKT = 1.17.0 instead of 1.17.0-RC1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants