Skip to content

Commit

Permalink
added CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Oct 4, 2023
1 parent bf765f9 commit 77f5c1c
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 79 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: PR build
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build project with Maven
run: mvn -B -ntp install
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI build
on:
push:
branches: master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build project with Maven
run: mvn -B -ntp install
- name: Deploy to OSSRH
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: mvn -B -ntp --settings .mvn/settings.xml -DskipTests=true -Dmaven.install.skip=true deploy
91 changes: 12 additions & 79 deletions src/main/resources/archetype-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -379,83 +379,16 @@
</build>
</profile>
</profiles>

<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<configuration>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<configuration>
<tags>
<tag>TODO</tag>
<tag>@todo</tag>
<tag>FIXME</tag>
<tag>@deprecated</tag>
<tag>REVIEW</tag>
</tags>
</configuration>
</plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<configuration>
<failOnError>false</failOnError>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>aggregate</report>
<report>check</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>servicedocgen-maven-plugin</artifactId>
<configuration>
<descriptor>
<info>
<title>${servicedoc.info.title}</title>
<description>${servicedoc.info.description}</description>
</info>
<host>${servicedoc.host}</host>
<port>${servicedoc.port}</port>
<basePath>${servicedoc.basePath}</basePath>
<schemes>
<scheme>http</scheme>
</schemes>
</descriptor>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<reportSets>
<reportSet>
<reports>
<report>third-party-report</report>
<report>aggregate-third-party-report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>

<repositories>
<repository>
<id>teavm-dev</id>
<url>https://teavm.org/maven/repository</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>teavm-dev</id>
<url>https://teavm.org/maven/repository</url>
</pluginRepository>
</pluginRepositories>
</project>

0 comments on commit 77f5c1c

Please sign in to comment.