[DEV] integrate javadoc generation (not beautifull but needed

This commit is contained in:
Edouard DUPIN 2020-08-29 10:42:28 +02:00
parent 2cfdf9e26d
commit 4c6752a53d
2 changed files with 31 additions and 2 deletions

View File

@ -2,10 +2,13 @@ image: heeroyui/scenarium-gitlabci:latest
variables: variables:
JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF8" JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF8"
#JAVA_HOME: "/usr/lib/jvm/java-14-openjdk/"
before_script: before_script:
- apk update && apk add gawk
#- apk update && apk add python3 gawk #- apk update && apk add python3 gawk
- which javac
- javac --version
- mvn --version
cache: cache:
paths: paths:
@ -42,6 +45,7 @@ test_job:
artifacts: artifacts:
when: on_success when: on_success
expire_in: 3 day expire_in: 3 day
keep: latest
paths: paths:
- target/site/jacoco - target/site/jacoco
reports: reports:
@ -53,9 +57,10 @@ package_job:
dependencies: dependencies:
- test_job - test_job
script: script:
- mvn $MAVEN_CLI_OPTS package -Dmaven.test.skip=true - mvn $MAVEN_CLI_OPTS -Dmaven.test.skip=true compile package javadoc:javadoc javadoc:jar
artifacts: artifacts:
when: on_success when: on_success
expire_in: 3 day expire_in: 3 day
keep: latest
paths: paths:
- target/*.jar - target/*.jar

24
pom.xml
View File

@ -86,6 +86,30 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!-- Java-doc generation for stand-alone site -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<show>private</show>
<nohelp>true</nohelp>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
<!-- Generate Java-docs As Part Of Project Reports -->
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<!--<stylesheetfile>${basedir}/src/main/javadoc/stylesheet.css</stylesheetfile>-->
<show>public</show>
</configuration>
</plugin>
</plugins>
</reporting>
</project> </project>