Skip to content

Commit

Permalink
BFD-3149: Add apidocgen property to control api doc generation (#2124)
Browse files Browse the repository at this point in the history
  • Loading branch information
meliGuzman authored Jan 3, 2024
1 parent c20393f commit a7af1eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
EOF
- name: 'Run Maven Build'
run: mvn --threads 1C --quiet --batch-mode -Dmaven.build.cache.enabled=false verify
run: mvn --threads 1C --quiet --batch-mode -Dmaven.build.cache.enabled=false -Dapidocgen.skip=false verify
working-directory: ./apps

- name: 'Install yq'
Expand Down
2 changes: 2 additions & 0 deletions apps/bfd-server/bfd-server-war/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@
<argument>${project.basedir}</argument>
<argument>${project.basedir}/../../../dist</argument>
</arguments>
<skip>${apidocgen.skip}</skip>
</configuration>
<id>create-openapi-artifacts</id>
<phase>verify</phase>
Expand Down Expand Up @@ -488,6 +489,7 @@
<classifier>data-dictionary</classifier>
</artifact>
</artifacts>
<skipAttach>${apidocgen.skip}</skipAttach>
</configuration>
</execution>
</executions>
Expand Down
4 changes: 4 additions & 0 deletions apps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@
<!-- Skip by default. Override to allow images to be built. -->
<jib.skip>true</jib.skip>

<!-- Skip by default. Override to let open api documents be generated. -->
<apidocgen.skip>true</apidocgen.skip>

<!-- maven plugin versions -->
<maven.assembly.plugin.version>3.6.0</maven.assembly.plugin.version>
<maven.antrun.plugin.version>3.1.0</maven.antrun.plugin.version>
Expand Down Expand Up @@ -1275,6 +1278,7 @@
<maven.source.skip>true</maven.source.skip>
<maven.javadoc.skip>true</maven.javadoc.skip>
<checkstyle.skip>true</checkstyle.skip>
<apidocgen.skip>false</apidocgen.skip>
</properties>
<distributionManagement>
<repository>
Expand Down

0 comments on commit a7af1eb

Please sign in to comment.