Skip to content

Commit dbf5fa4

Browse files
committed
Update JavaDoc configuration
1 parent 4983615 commit dbf5fa4

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1113
steps:
1214
- uses: actions/checkout@v4
1315
with:
@@ -21,7 +23,10 @@ jobs:
2123
cache: 'maven'
2224

2325
- name: Build with Maven
24-
run: mvn -B clean package -DskipTests
26+
run: |
27+
mvn -B clean package -DskipTests
28+
mvn -B javadoc:javadoc
29+
mvn -B source:jar
2530
2631
- name: Create Release
2732
uses: softprops/action-gh-release@v1
@@ -34,5 +39,6 @@ jobs:
3439
target/woocommerce-api-client-0.9.0.jar
3540
target/woocommerce-api-client-0.9.0-sources.jar
3641
target/woocommerce-api-client-0.9.0-javadoc.jar
42+
target/site/apidocs/**
3743
env:
3844
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@
129129
<groupId>org.apache.maven.plugins</groupId>
130130
<artifactId>maven-javadoc-plugin</artifactId>
131131
<version>3.6.3</version>
132+
<configuration>
133+
<doclint>none</doclint>
134+
<failOnError>false</failOnError>
135+
</configuration>
132136
<executions>
133137
<execution>
134138
<id>attach-javadocs</id>
@@ -160,15 +164,6 @@
160164
</executions>
161165
</plugin>
162166

163-
<plugin>
164-
<groupId>org.apache.maven.plugins</groupId>
165-
<artifactId>maven-deploy-plugin</artifactId>
166-
<version>3.1.2</version>
167-
<configuration>
168-
<skip>true</skip>
169-
</configuration>
170-
</plugin>
171-
172167
</plugins>
173168
</build>
174169

0 commit comments

Comments
 (0)