Skip to content

Commit

Permalink
chore: move dokka-maven-plugin to profile, speed up daily development
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Jun 2, 2022
1 parent 44f9d99 commit d3eeb2b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with Maven
run: ./mvnw -Pgen-javadoc clean package -B
run: ./mvnw -Pgen-javadoc -Pgen-dokka clean package -B
- name: Generate code coverage
run: ./mvnw -Pgen-code-cov clean test
# https://github.com/marketplace/actions/codecov
Expand Down
47 changes: 31 additions & 16 deletions kotlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,37 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>1.6.21</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>dokka</goal>
<goal>javadoc</goal>
<goal>javadocJar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>gen-dokka</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>1.6.21</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>dokka</goal>
<goal>javadoc</goal>
<goal>javadocJar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit d3eeb2b

Please sign in to comment.