Skip to content

Releases: StickySource/bounds-maven-plugin

Set property from library version

06 Feb 20:58

Choose a tag to compare

Its useful to be able to get the current highest value from a range for templating and other purposes.

For example this will set the property stickyCoercion.version to the latest 2.X version of sticky-coercion

  <plugin>
    <groupId>net.stickycode.plugins</groupId>
    <artifactId>bounds-maven-plugin</artifactId>
    <version>3.2</version>
    <executions>
      <execution>
        <phase>generate-resources</phase>
        <goals>
          <goal>current-version</goal>
        </goals>
        <configuration>
          <coordinates>
            <stickyCoercion.version>net.stickycode:sticky-coercion:[2,3]</stickyCoercion.version>
          </coordinates>
        </configuration>
      </execution>
    </executions>
  </plugin>