rewrite icon indicating copy to clipboard operation
rewrite copied to clipboard

Maven recipe : enforce reproducible builds

Open yeikel opened this issue 2 years ago • 1 comments

Read more : https://reproducible-builds.org/


 <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>enforce-tool-versions</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireReleaseDeps>
                                    <!-- This rule should only be executed when the version is a non-SNAPSHOT version -->
                                    <onlyWhenRelease>true</onlyWhenRelease>
                                    <message>No Snapshots Allowed during a release!
                                        Read more : https://reproducible-builds.org/
                                    </message>
                                </requireReleaseDeps>
                            </rules>
                        </configuration>
                    </execution>
                         </executions>
            </plugin>

yeikel avatar Apr 02 '22 16:04 yeikel

This is a good idea, I think we want to hold off adding this recipe until we have added plugin/plugin management to the semantic model, see #585

The reason for this is that in a multi-module maven project, we only want to add this plug-in to those maven projects that either have no parent or a parent that is external to the project.

tkvangorder avatar Apr 04 '22 20:04 tkvangorder