KamilH
10/27/2020, 1:12 PMbuildSrc
module in regular code (not build.gradle
files)? I’ve got some strings declared there that I would like to access in runtimeVampire
10/27/2020, 1:18 PMbuildSrc
by a composite build (includeBuild
in settings script) for example named build-src
or any other name. Or maybe even better to not pollute your production class path with too much build logic, just move the class(es) you want to share into an included build. Then you can depend on that produced artifact in the build script class path and in the production class path and thus can use it the same in both.KamilH
10/27/2020, 1:21 PMthanksforallthefish
10/27/2020, 1:24 PMshared.properties
file along side your build.gradle
and then create a copy task to copy that file so that it becomes part of the classpath of your artifactthanksforallthefish
10/27/2020, 1:25 PMProperties
thanksforallthefish
10/27/2020, 1:25 PMKamilH
10/27/2020, 1:27 PMVampire
10/27/2020, 1:27 PMVampire
10/27/2020, 1:27 PMVampire
10/27/2020, 1:28 PMVampire
10/27/2020, 1:28 PMJavier
10/27/2020, 1:31 PMVampire
10/27/2020, 1:36 PMVampire
10/27/2020, 1:37 PMbuildSrc
project and instead make it a regular included build internally.
That does not at all help the OP.
Especially as he probably does not want that all his build logic and dependencies leak into the production class path.
And besides that, it will probably need quite some time before that issue gets resolved.Javier
10/27/2020, 2:00 PMbuildSrc
classes in regular code, when that issue is fixed, he could do that no?Vampire
10/27/2020, 2:05 PMVampire
10/27/2020, 2:06 PMVampire
10/27/2020, 2:08 PMthanksforallthefish
10/27/2020, 2:22 PMI've got some strings declared there that I would like to access in runtime
as if those classes only contain strings and the whole thing could be replace by properties. I might have over simplified the requirement, but if that is the case, I think using properties file and just package it together is a good solution.
I would not be a fan of having complex build logic into the application, like you saidVampire
10/27/2020, 2:23 PM