Git Product home page Git Product logo

Comments (6)

metlos avatar metlos commented on May 18, 2024

I've added newVersion and oldVersion attributes to the config that are to be used in cases where you compare just the currently built project with its older version (which is an absolute majority of cases, IMHO). In this case specifying just the version overcomes the problems with the packaging vs. extension.

This is going to be present in revapi-maven-plugin-0.4.4.

from revapi.

vmassol avatar vmassol commented on May 18, 2024

That's very cool, thanks!

from revapi.

vmassol avatar vmassol commented on May 18, 2024

hmm I've tried it and I can't make it work.

I have:

        <plugin>
          <groupId>org.revapi</groupId>
          <artifactId>revapi-maven-plugin</artifactId>
          <!-- Lock down plugin version for build reproducibility -->
          <version>0.4.3</version>
          <dependencies>
            <dependency>
              <groupId>org.revapi</groupId>
              <artifactId>revapi-java</artifactId>
              <version>0.6.3</version>
            </dependency>
          </dependencies>
          <executions>
            <execution>
              <id>revapi-check</id>
              <goals>
                <goal>check</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
            <oldVersion>${xwiki.compatibility.previous.version}</oldVersion>
            <skip>${xwiki.revapi.skip}</skip>
            <analysisConfiguration><![CDATA[
            {
              "revapi": {
                "filter": {
                  "elements": {
                    "exclude": [".*\\.internal\\..*", ".*\\.test\\..*"]
                  }
                }
              }
            }
            ]]></analysisConfiguration>
          </configuration>

I see in eb7d36d that this should work but it doesn't and when I run revapi, it says it's comparing to version 6.4.8 (it should be 8.0 since that's the value of ${xwiki.compatibility.previous.version} (FTR I checked mvn help:effective-pomand it's indeed 8.0 and the config seems ok).

Any idea? Thanks

from revapi.

metlos avatar metlos commented on May 18, 2024

Have you built the maven plugin from source? I see you are using revapi-maven-plugin-0.4.3 in you snippet above, but this will be available only in 0.4.4 that I haven't released yet...

from revapi.

vmassol avatar vmassol commented on May 18, 2024

oh my bad... I was using version 0.4.2 and upgraded to 0.4.3, without realizing that the change was in 0.4.4, sorry for the false alarm. Eagerly waiting for 0.4.4 to be released then :)

from revapi.

metlos avatar metlos commented on May 18, 2024

This should be present in revapi-maven-plugin:0.4.5.

from revapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.