groovy / gmaven

Groovy integration for Maven
http://groovy.github.io/gmaven/
Apache License 2.0
51 stars 21 forks source link

Support for reproducible build when generating groovydoc #33

Open jonesbusy opened 4 months ago

jonesbusy commented 4 months ago

Hi,

I'm using the plugin to generate jar artifact that contains the groovydoc for sources and tests

<plugin>
    <groupId>org.codehaus.gmavenplus</groupId>
    <artifactId>gmavenplus-plugin</artifactId>
    <version>3.0.2</version>
    <configuration>
        <scope>public</scope>
        <skipTests>true</skipTests>
        <skipGroovyDoc>${skip.groovydoc}</skipGroovyDoc>
        <groovyDocJavaSources>true</groovyDocJavaSources>
        <groovyDocOutputDirectory>${project.reporting.outputDirectory}/groovydoc/</groovyDocOutputDirectory>
        <windowTitle>****</windowTitle>
        <docTitle>*****</docTitle>
        <defaultDocTemplates>
            <param>groovydoc/index.html</param>
            <param>org/codehaus/groovy/tools/groovydoc/gstringTemplates/topLevel/stylesheet.css</param>
        </defaultDocTemplates>
        <sources>
            <source>
                <directory>${project.basedir}/vars</directory>
                <includes>
                    <include>**/*.groovy</include>
                </includes>
            </source>
        </sources>
        <testSources>
            <source>
                <directory>${project.basedir}/test/groovy</directory>
                <includes>
                    <include>**/*.groovy</include>
                </includes>
            </source>
        </testSources>
    </configuration>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>groovydoc-jar</goal>
                <goal>groovydocTests-jar</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Due to that my build is not reproducible https://maven.apache.org/guides/mini/guide-reproducible-builds.html

I suspect is a similar issue when timestamp. The javadoc plugin provide a <notimestamp>true</notimestamp>

Does someone also face similar issue with groovydoc and maven reproducible builds ?

Thanks