My current jar
in build.gradle
is like below:
jar {
manifest {
attributes "Main-Class": "hoge.Main"
}
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
and working well.
However, I have a message from Gradle (maybe since 6+?)
This is the actual message:
The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the implementation configuration instead.
The part configurations.compile
is deprecated.
How can I update it?
If I changed
jar {
manifest {
attributes "Main-Class": "hoge.Main"
}
from configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) }
}
Gradle says > Resolving configuration 'implementation' directly is not allowed