jonathanlermitage / oga-maven-plugin

:jigsaw: Old GroupIds Alerter - A Maven plugin that checks for deprecated groupId+artifactId (e.g. did you know that graphql-spring-boot-starter moved from com.graphql-java to com.graphql-java-kickstart?).
https://central.sonatype.com/search?q=biz.lermitage.oga
MIT License
38 stars 7 forks source link

failOnError broken #52

Open delanym opened 1 year ago

delanym commented 1 year ago

This configuration will fail the build if a relocation is found:

      <plugin>
        <groupId>biz.lermitage.oga</groupId>
        <artifactId>oga-maven-plugin</artifactId>
        <version>1.8.0</version>
        <executions>
          <execution>
            <id>default-cli</id>
            <goals>
              <goal>check</goal>
            </goals>
            <phase>validate</phase>
            <configuration>
              <failOnError>false</failOnError>
              <skip>false</skip>
            </configuration>
          </execution>
        </executions>
      </plugin>
jonathanlermitage commented 1 year ago

@delanym Can you please share a sample project? I applied this config to https://github.com/jonathanlermitage/manon (it has 1 relocation), but it doesn't fail the build.

delanym commented 1 year ago

@jonathanlermitage sorry I see it did succeed. The log level is set to ERROR. Can this rather be WARNING, or be a configurable log level like in ossindex-maven-enforcer-rules?

I guess Im taking issue with the whole opinionated view of this plugin that a relocation represents a deprecation and a problem. Using an older groupId is not necessarily a problem, particularly when we are constrained to a version that was only published under the older groupId. Would you be open to an PR that changes instances of "should be replaced by" to "was relocated to" etc?

jonathanlermitage commented 1 year ago

@delanym No problem 😁

Set the log level to warning or make it configurable, and replace "should be replaced by" to "was relocated to" -> I totally agree, thx!