Skip to content

Support for reproducible build when generating groovydoc #33

@jonesbusy

Description

@jonesbusy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions