siom79 / japicmp

Comparison of two versions of a jar archive
https://siom79.github.io/japicmp
Apache License 2.0
712 stars 107 forks source link

breakBuildBasedOnSemanticVersioningForMajorVersionZero is ignore #227

Open aponhcet opened 5 years ago

aponhcet commented 5 years ago

Hey, I am testing the semantic versioning feature of your plugin. Apparently I am struggling to get breakBuildBasedOnSemanticVersioningForMajorVersionZero flag taken into account.

I am using maven 3.5.2 and java 1.8.0_152 (old school)

My project has version 0.8.4-SNAPSHOT The plugin is configure as follow

 <plugin>
            <groupId>com.github.siom79.japicmp</groupId>
            <artifactId>japicmp-maven-plugin</artifactId>
            <version>0.13.1</version>
            <configuration>
                <parameter>
                    <onlyModified>true</onlyModified>
                    <includes>
                        <include>*.api</include>
                        <include>*.api.*</include>
                    </includes>
                    <includeExclusively>true</includeExclusively>
                    <breakBuildBasedOnSemanticVersioning>true</breakBuildBasedOnSemanticVersioning>
                    <breakBuildBasedOnSemanticVersioningForMajorVersionZero>fasle</breakBuildBasedOnSemanticVersioningForMajorVersionZero>
                </parameter>
            </configuration>
            <executions>
                <execution>
                    <phase>verify</phase>
                    <goals>
                        <goal>cmp</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

Sadly I keep getting:

Mar 08, 2019 2:06:20 PM japicmp.output.incompatible.IncompatibleErrorOutput info INFO: Skipping semantic version check because all major versions are zero (see http://semver.org/#semantic-versioning-specification-semver, section 4). [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.534 s