Specific pom dependency version when using ranges in build.gradle


(sunckell) #1

Is there a way to produce a pom (using the maven plugin) with specific versions in the dependencies, if in my build.gradle I use ranges?

For example,

If I use:

dependencies{

compile(group: ‘log4j’, name: ‘log4j’, version: ‘1.2.+’)

}

and version 1.2.27 is used to compile, in my pom I want version 1.2.27, not 1.2.+

Thanks, Chad


(sunckell) #2

Well it looks like when the maven-publish plugin is finalized that should do the trick.

Chad