Yes i did. But now I have same issue again. Because using
Copy code
withType<Jar> {
isEnabled = false
}
There is no
libs
folder when it have built the project. Means no jars at all.
mudasar187
12/13/2022, 1:03 PM
Copy code
withType().named("jar") {
enabled = false
}
This above solution is working. But below solution this not working? 🤔
Copy code
withType<Jar> {
isEnabled = false
}
Why?
v
Vampire
12/13/2022, 1:29 PM
The shadow jar task is also a task of type
Jar
.
So if you set
isEnabled = false
for all tasks of type
Jar
you also disable the fat jar building.
With
named("jar")
you configure only exactly that task named
jar
.
m
mudasar187
12/13/2022, 6:58 PM
When i asked this question earlier it worked with the solution i got earlier. But after upgrading jvm to newest version I needed to change how to disable the task named