Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for reproducible build when generating groovydoc #33

Open
jonesbusy opened this issue Apr 16, 2024 · 0 comments
Open

Support for reproducible build when generating groovydoc #33

jonesbusy opened this issue Apr 16, 2024 · 0 comments

Comments

@jonesbusy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant