vandmo / dependency-lock-maven-plugin

Maven plugin that makes sure that Maven dependency are not accidentaly changed.
https://github.com/vandmo/dependency-lock-maven-plugin
Apache License 2.0
64 stars 10 forks source link

Introduce lock-bom extension #73

Closed ia3andy closed 10 months ago

ia3andy commented 10 months ago

Fixes #72

This seems to work, @rodikal wdyt?

Usable by just adding (the check is not necessary I guess):

<plugin>
    <groupId>se.vandmo</groupId>
    <artifactId>dependency-lock-maven-plugin</artifactId>
    <version>0-SNAPSHOT</version>
    <extensions>true</extensions>
    <configuration>
        <format>pom</format>
    </configuration>
    <executions>
        <execution>
            <id>check</id>
            <goals>
                <goal>check</goal>
            </goals>
        </execution>
    </executions>
</plugin>

or

<build>
    <extensions>
      <extension>
        <groupId>se.vandmo</groupId>
        <artifactId>dependency-lock-maven-plugin</artifactId>
         <version>0-SNAPSHOT</version>
      </extension>
    </extensions>
  </build>

(It's just a POC)

ia3andy commented 10 months ago

I am closing it seems it won't work for our usecase.