Slackbot
08/08/2022, 12:26 PMChris Lee
08/08/2022, 1:15 PMresources
as in src/main/resources? what does “explicit definition” mean? Please explain the problem you are trying to solve and what appears to not be working.Oliwer Lindell
08/08/2022, 3:30 PMinclude
inside the build task. Basically the problem I am having is that files inside of src/main/resources are not being shaded into the JAR upon compilation.Chris Lee
08/08/2022, 3:41 PMOliwer Lindell
08/08/2022, 3:43 PMChris Lee
08/08/2022, 3:44 PMOliwer Lindell
08/08/2022, 3:45 PMChris Lee
08/08/2022, 3:46 PMjar
task). That’s all pre-configured as part of the java plugin - are there any configuration changes to sourcesets, etc?Oliwer Lindell
08/08/2022, 3:47 PMplugins {
scala
`java-library`
id("com.github.johnrengelman.shadow") version("7.1.2")
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.scala-lang:scala-library:2.13.7")
}
Chris Lee
08/08/2022, 3:47 PMjar
, are the resources where expected?Oliwer Lindell
08/08/2022, 3:49 PMOliwer Lindell
08/08/2022, 3:49 PMChris Lee
08/08/2022, 3:49 PMOliwer Lindell
08/08/2022, 3:50 PMChris Lee
08/08/2022, 3:50 PMjar
with --clean --no-build-cache
Chris Lee
08/08/2022, 3:51 PMclean
is the task, not an argument. ./gradlew clean jar --no-build-cache
Oliwer Lindell
08/08/2022, 3:51 PMChris Lee
08/08/2022, 3:52 PMOliwer Lindell
08/08/2022, 3:52 PMChris Lee
08/08/2022, 3:53 PM--info
- look at the processResources
task (and other tasks) to see if they run.Oliwer Lindell
08/08/2022, 3:54 PMOliwer Lindell
08/08/2022, 3:55 PMOutput property 'destinationDir' file C:\Users\Oliwer\Desktop\dev\jvm\scala-loader\lib\build\resources\main has been removed.
Chris Lee
08/08/2022, 3:55 PMclean
Oliwer Lindell
08/08/2022, 3:56 PMOliwer Lindell
08/08/2022, 3:58 PMprocessResources
does indeed run as expected, it also exports all resource files into build/resources/main.Chris Lee
08/08/2022, 4:01 PMjar
run as expected and create a .jar file? iirc in build/libs
.Oliwer Lindell
08/08/2022, 4:01 PMChris Lee
08/08/2022, 4:03 PMprocessResources
but not from jar
(and of course missing downstream for shading)?Oliwer Lindell
08/08/2022, 4:05 PMprocessResources
does export the files into the directory of build/resources/main but they're not included in the jar itself when jar
is ran, if that makes sense. 🤔Chris Lee
08/08/2022, 4:05 PMjar
beyond the defaults?Oliwer Lindell
08/08/2022, 4:06 PMChris Lee
08/08/2022, 4:08 PMChris Lee
08/08/2022, 4:08 PMOliwer Lindell
08/08/2022, 4:09 PMconfig.yml
for example.Chris Lee
08/08/2022, 4:09 PMOliwer Lindell
08/08/2022, 4:10 PMChris Lee
08/08/2022, 4:16 PMOliwer Lindell
08/08/2022, 4:21 PMOliwer Lindell
08/08/2022, 7:01 PMNiels Doucet
08/08/2022, 9:54 PMOliwer Lindell
08/09/2022, 12:50 PMNiels Doucet
08/09/2022, 9:34 PMOliwer Lindell
08/13/2022, 8:55 AMOliwer Lindell
08/14/2022, 9:50 AM