Hello.
I am looking for a way to parse a gradle dependency and use it as a property to use to replace in a Java project.
I want to make it easier to replace certain variables in a java project say replace @CL_BUILD@ with 48 from CodingLib-0.2.7b48.jar but in the gradle dependencies “com.builtbroken.codinglib:CodingLib:0.2.7b48”
This should be possible, but could be tricky or have side effects depending on how/where you want to use the value retrieved from the dependencies. The tricky bits revolve around when the dependencies get resolved with respect to Gradle’s lifecycle.
Can you describe a bit more about how you are currently doing the variable replacement?