This message was deleted.
# community-support
s
This message was deleted.
t
Hi. Your source set is defined as:
Copy code
resources {
    srcDirs = ['src/resources']
}
main
is missing.
But those
sourceSets
definnitions are not needed for
java
plugin. Except the
'src/test/config'
which is not defined by default.
v
Well, there is even more unnecessary configuration besides most of the source set configuration. The spring boot dependency management plugin is applied without using it and actually it is imho better to use the builtin BOM support, the
bootJar
gets a classifier configured though it gets disabled, why is the boot plugin applied at all if then the boot jar task is disabled, the classifier of the jar task is configured to its default, the resources already packed into the jar because they are in the source set are again explicitly configured to be packed, for tests first JUnit 4 is configured, then immediately changed to JUnit 5, ...
🙌 1
r
Thank you @tomas-mrkvicka and @Vampire. I corrected resources configuration. Regarding spring dependency management plugin i removed it. However regarding boot jar plugin i added to generate build info while along with jar file. I removed junit4. All of these i was added because spring internationalisation is not working.
v
I see, but maybe a bit overkill to apply the boot plugin and then disable its main outcome just for generating a properties file. 😄