autonomousapps / dependency-analysis-gradle-plugin

Gradle plugin for JVM projects written in Java, Kotlin, Groovy, or Scala; and Android projects written in Java or Kotlin. Provides advice for managing dependencies and other applied plugins
Apache License 2.0
1.77k stars 116 forks source link

The project doesn't work on IntelliJ #1015

Closed BraisGabin closed 11 months ago

BraisGabin commented 11 months ago

IntelliJ fails when I clone the project with the current main (1037b3f44d0ce7079f15c978c78780ec07235067)

I get this error message:

Could not create task ':testkit:gradle-testkit-plugin:promote'.
Username must not be null

I get the same issue when I execute ./gradlew -p testkit promote but I assume that's correct. But this shouldn't make IntelliJ complain.

autonomousapps commented 11 months ago

Thanks for the issue. Could you file one on Intellij to stop configuring all tasks?

You can workaround this by adding empty properties to your project, or globally:

# ./gradle.properties or ~/.gradle.properties
sonatypeUsername=<whatever>
sonatypePassword=<whatever>