Skip to content

Commit

Permalink
Don't use groovy to generate javadoc
Browse files Browse the repository at this point in the history
This adds a package-info.class to the generated jar but it shouldn't be a problem
  • Loading branch information
jonenst committed Aug 31, 2023
1 parent 66459e6 commit d7cc53b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.
24 changes: 5 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-parent</artifactId>
<version>3</version>
<version>14</version>
<relativePath/>
</parent>

Expand Down Expand Up @@ -46,13 +46,6 @@
</developer>
</developers>

<properties>
<maven.build-helper.version>3.1.0</maven.build-helper.version>

<groovy.version>2.5.8</groovy.version>
<groovydoc.classifier>javadoc</groovydoc.classifier>
</properties>

<build>
<plugins>
<plugin>
Expand All @@ -64,17 +57,11 @@
<Automatic-Module-Name>com.powsybl.mathnative</Automatic-Module-Name>
</manifestEntries>
</archive>
<excludes>
<exclude>com/powsybl/mathnative/MathNativeJavadocPlaceholder.class</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${maven.build-helper.version}</version>
</plugin>
</plugins>
</build>

Expand All @@ -89,10 +76,9 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${maven.build-helper.version}</version>
<executions>
<execution>
<id>add-source</id>
<id>add-cpp-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
Expand Down
4 changes: 4 additions & 0 deletions src/com/powsybl/mathnative/MathNativeJavadocPlaceholder.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.powsybl.mathnative;

/** Placeholder needed by the javadoc tool to generate the javadoc site */
public class MathNativeJavadocPlaceholder { private MathNativeJavadocPlaceholder() { } }
2 changes: 2 additions & 0 deletions src/com/powsybl/mathnative/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/** Native library binaries for powsybl math operations */
package com.powsybl.mathnative;

0 comments on commit d7cc53b

Please sign in to comment.