Skip to content

For current versions derive the property name #6

@stickycode

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>

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