Skip to content

For current versions derive the property name #6

Description

@stickycode

It would be nice to be able to say

 <plugin>
        <groupId>net.stickycode.plugins</groupId>
        <artifactId>bounds-maven-plugin</artifactId>
        <version>3.3</version>
        <executions>
          <execution>
            <id>get-environment-versions</id>
            <phase>validate</phase>
            <goals>
              <goal>current-version</goal>
            </goals>
            <configuration>
              <artifacts>
                <artifact>com.example:example-artifact:[1,2)</artifact>
              </artifacts>
            </configuration>
          </execution>
        </executions>
      </plugin>

Where the version published to the session will be example-artifact.version which is derived from the artifact name

The explicit way is prone to error

 <configuration>
              <coordinates>
                <example-artifact.version>com.example:example-artifact:[1,2)</example-artifact.version>
              </coordinates>
            </configuration>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions