I have added the dependencies in deqpendencies.gra...
# community-support
j
I have added the dependencies in deqpendencies.gradle ,I have two versions of commons-lang jars,but only the latest version is getting included in the war file. commons-lang3.3 is getting included ,but not commons-lang2.4. I have used compile,compileonly and providedcompile but still facing issue. Can anyone suggest somethin for above my problem...? Thanks.
v
commons-lang
and
commons-lang3
are technically completely different libraries and they will not influence each other what is included or not. If you have
compile
you should definitely update Gradle, as this configuration is gone since quite some time and deprecated for years before already. Adding to
compileOnly
or
providedCompile
would do exactly what you describe, as that means they are present for compilation, but will be provided by the runtime environment and not shipped by you.
j
What can be the root cause of my issue ? I just kept 2.4 version and builded the project still I am not getting 2.4 in my war lib folder
v
Hard to guess without seeing the build scripts
If you have it in
providedCompile
or
compileOnly
, remove it from there, that might suppress it in the war even if you otherwise have it as
compile
or
implementation
dependency.
Can you share a build
--scan
URL?
j
Actually I can't share  my company codes and all
But issue solved, why it is not coming means we have another jar file org.fitnesse ,inside these jar we have commons Lang 2.4,so I am trying to add two jar files without knowing
Org.fitnesses jar file we are adding at runtime and so that's why previously it is not downloading the common Lang 2.4 so now we made it as compile instead of runtime
So now we are getting commons Lang 2.4 from org fiteness jar
👌 1