Skip to content

Commit

Permalink
chore: move examples into a separate profile that is excluded from th…
Browse files Browse the repository at this point in the history
…e release
  • Loading branch information
iocanel committed Jul 21, 2021
1 parent 147f519 commit 4309872
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
if [ -f $JAVA_HOME/lib/tools.jar ]; then
mvn install:install-file -Dfile=$JAVA_HOME/lib/tools.jar -DgroupId=com.sun -DartifactId=tools -Dversion=8 -Dpackaging=jar -P${{ matrix.profile }};
fi
mvn ${MAVEN_ARGS} clean install
mvn ${MAVEN_ARGS} clean install -Pwith-examples
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
<module>maven-plugin</module>
<module>annotations</module>
<module>components</module>
<module>examples</module>
<module>tests</module>
</modules>

Expand Down Expand Up @@ -295,6 +294,13 @@
</dependencies>
</dependencyManagement>
</profile>
<profile>
<id>with-examples</id>
<modules>
<module>examples</module>
</modules>
</profile>

</profiles>

<distributionManagement>
Expand Down

0 comments on commit 4309872

Please sign in to comment.