-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab62792
commit 8dfb416
Showing
2 changed files
with
97 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This workflow will build a Java project with Maven | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | ||
name: Java CI with Maven | ||
on: | ||
push: | ||
branches: [ main ] | ||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up OpenTDK for Central Repository | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE | ||
- name: Deploy with Maven | ||
# run: mvn -B package --file pom.xml | ||
run: mvn -B clean deploy -Pci-cd | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,75 @@ | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
</properties> | ||
<packaging>jar</packaging> | ||
<!-- Build settings --> | ||
<!-- Name, description and URL --> | ||
<name>${project.groupId}:${project.artifactId}</name> | ||
<description>The Open Tool Development Kit provides packages and classes for easy implementation of Java tools or applications. Originally designed for test supporting software.</description> | ||
<url>https://github.com/LK-Test-Solutions/OpenTDK_GUI</url> | ||
<!-- License information --> | ||
<licenses> | ||
<license> | ||
<name>BSD 2-Clause "Simplified"</name> | ||
<url>https://opensource.org/licenses/BSD-2-Clause</url> | ||
</license> | ||
</licenses> | ||
<!-- Developer information --> | ||
<developers> | ||
<developer> | ||
<id>fme</id> | ||
<name>Fabian Meisinger</name> | ||
<email>[email protected]</email> | ||
<organization>LK Test Solutions</organization> | ||
<organizationUrl>https://www.lk-test.de/</organizationUrl> | ||
</developer> | ||
</developers> | ||
<!-- Distribution managment and authentication --> | ||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>ossrh</id> | ||
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url> | ||
</repository> | ||
</distributionManagement> | ||
<!-- Source control information --> | ||
<scm> | ||
<connection>scm:git:git://github.com/LK-Test-Solutions/OpenTDK_GUI.git</connection> | ||
<developerConnection>scm:git:ssh://github.com:LK-Test-Solutions/OpenTDK_GUI.git</developerConnection> | ||
<url>https://github.com/LK-Test-Solutions/OpenTDK_GUI/tree/main</url> | ||
</scm> | ||
<!-- Sign artifact --> | ||
<profiles> | ||
<profile> | ||
<id>ci-cd</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>1.6</version> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
<configuration> | ||
<gpgArguments> | ||
<arg>--pinentry-mode</arg> | ||
<arg>loopback</arg> | ||
</gpgArguments> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
<!-- Build Properties --> | ||
<build> | ||
<sourceDirectory>src</sourceDirectory> | ||
<resources> | ||
|
@@ -63,7 +131,7 @@ | |
</plugin> | ||
</plugins> | ||
</build> | ||
<!-- Required external libaries --> | ||
<!-- Required external libraries --> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.openjfx</groupId> | ||
|