Skip to content

Commit fe564a7

Browse files
committed
Fix javadoc plugin
1 parent 9cbe453 commit fe564a7

File tree

3 files changed

+51
-9
lines changed

3 files changed

+51
-9
lines changed

.github/workflows/pullrequest.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
3+
4+
name: maven-build
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up JDK 1.11
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: 1.11
22+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
23+
settings-path: ${{ github.workspace }} # location for the settings.xml file
24+
25+
- name: Build
26+
env:
27+
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
28+
run: mvn -B package --file pom.xml -Pcoverage -Dsytle.colors=always --errors
29+
- name: Upload coverage to Codecov
30+
uses: codecov/codecov-action@v1
31+
with:
32+
token: ${{ secrets.CODECOV_TOKEN }}
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
22
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
33

4-
name: maven
4+
name: maven-release
55

66
on:
7-
push:
8-
branches:
9-
- master
10-
- 'releases/*'
11-
- 'refs/tags/*'
12-
pull_request:
13-
branches:
14-
- master
7+
push:
8+
branches:
9+
- master
10+
- 'releases/*'
11+
- 'refs/tags/*'
1512

1613
jobs:
1714
build:

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,19 @@
355355
</goals>
356356
</execution>
357357
</executions>
358+
<configuration>
359+
<sourcepath>${project.build.sourceDirectory}:${project.build.directory}/generated-sources/annotations</sourcepath>
360+
<additionalDependencies>
361+
<additionalDependency>
362+
<groupId>javax.annotation</groupId>
363+
<artifactId>javax.annotation-api</artifactId>
364+
<version>1.3.2</version>
365+
</additionalDependency>
366+
367+
</additionalDependencies>
368+
<doclint>none</doclint>
369+
</configuration>
370+
358371
</plugin>
359372
<plugin>
360373
<groupId>org.sonatype.plugins</groupId>

0 commit comments

Comments
 (0)