-
Notifications
You must be signed in to change notification settings - Fork 19
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
./gradlew build
fails with implicit dependency errors
#157
Comments
I think the error message is giving you a workaround? You need to make the relationship between tasks more explicit and could use Adding the following should work. tasks.named("ktfmtCheckMain") {
dependsOn("ktfmtFormatMain")
} |
Yeah. Tried several things similar to the one you noted. It was throwing an error saying I thought having these dependencies explicitly defined in the plugin code would be a good solution. So, posted an issue here. |
@pramodshri-tgsys Thanks for the report
The two tasks should not depend on each other. Could you provide a reproducer where you're having this behavior as I can't reproduce it in my testing? |
@cortinico I don't have a reproducer. It was happening in a proprietary project when I tried to publish an You note that the two tasks should not depend on each other. However, adding the code that @WhosNickDoglio has put in his comment will get you past the error... to a new error... |
🐛 Describe the bug
./gradlew build
command fails with the following error./gradlew build
fails with error✅ Expected behavior
./gradlew build
should not throw any warnings/errors related toktfmt-gradle
plugin.💣 Steps to reproduce
id 'com.ncorti.ktfmt.gradle' version '0.12.0'
./gradlew build
from terminal📱 Tech info
Notes
I found this issue when I was trying to generate a release build using 'maven-publish' which threw errors similar to the one above but it was asking me to include the implicit dependency between 'sourceReleaseJar
task and
ktfmtFormatRelease`.A workaround for now would be appreciated.
The text was updated successfully, but these errors were encountered: