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
Gradle configuration fails because of implicit dependency on ShadowJar #13
Comments
Heads-up: The error persists in Gradle 6.0.1 |
Yep, the problem is in a shadow-jar integration. I'll fix it in next release |
Is there a workaround? I followed README.md and no matter what I try out, I always end up with that error message. |
@freiit You also use ShadowJar in your project for some other purpose? |
@TanVD I just started to play around. I copy/pasted the build.gradle.kts from the README.md. Started it in a new empty folder. Here the dump. Just asking for a (tmp) workaround, would still like to try out kotless.
|
@freiit Could you try it instead of current plugins block:
|
As for initial issue @suushiemaniac I am investigating issue right now, but now I am not sure what actually leads to problem with Gradle configuration. Am I right, that kotless now is applied at |
@TanVD Yes indeed, this has changed because I continued to work on the project after reporting the initial issue. Kotless is now applied at |
Original post has been edited to reflect the changed versions and project structure. Underlying problem still persists, though. |
Thanks, that works now 👍
|
@freiit I've updated README.md, now |
Indeed it does not solve my issue, I'm afraid. Even if it did, mitigating the problem by relying on an exact plugin order does not sound like a healthy solution to be honest. Did you gain any more insight on why this happens so far? I'm happy to chat (for example via the Kotlin Slack) if you need any help, TNoodle is rather complex 😅 |
I toyed around with the source code a little, and here's a potential solution that I came up with:
I am uncertain as to why this solves the problem, my gut instinct says that it's something with the structure of multi-project builds. Perhaps your version applies the plugin at the root level instead of the current sub-project? As I said, I'm pretty much just guessing. A few remarks as to how I found out about this fix:
|
Wrong button, I'm sorry! I will submit a PR, we can discuss the solution there. |
Sorry for being so overly talkative, but I just saw that you're using the same |
No template, so I will just freestyle the issue report to the best of my abilities!
OS: Manjaro Linux 18.1.4 / Kernel 5.4.2 amd64
Java: 1.8.0_232
Gradle: 6.0.1 (wrapper via
gradlew
)Expected behaviour
When following the steps on the Quickstart guide in the
README.md
file, I can incorporate the Gradle pluginid("io.kotless")
into my existing build without breaking the project.Actual behaviour
Upon following the instructions on how to include Kotless in my own Gradle project, Gradle fails during configuration stage with the following error message:
The failure occurs even for simple commands such as
./gradlew tasks
.In particular, my buildscript file uses the Kotlin DSL. I have installed Kotless as
id("io.kotless").version("0.1.2")
as determined by the Quickstart guide. Theplugins {}
block also includesjohnrengelman
'sshadow
plugin indenpendently of Kotless, because it is needed as part of my project.Steps to reproduce
The entire codebase of the project where this fail occurs is open-source at https://github.com/suushiemaniac/tnoodle/tree/feature/kotless.
To reproduce, simply clone and check out the
feature/kotless
branch that is linked above and execute./gradlew tasks
in the project directory.The relevant build file is in the
cloudscrambles
folder, found atcloudscrambles/build.gradle.kts
The text was updated successfully, but these errors were encountered: