Skip to content

Commit

Permalink
v.1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SoccerFive18 committed Jun 7, 2023
1 parent ab62792 commit 8dfb416
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/maven.yml
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 }}
72 changes: 70 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -63,7 +131,7 @@
</plugin>
</plugins>
</build>
<!-- Required external libaries -->
<!-- Required external libraries -->
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
Expand Down

0 comments on commit 8dfb416

Please sign in to comment.