From e61eb4ec13fe0fa3d8519d4673064c13b9121df7 Mon Sep 17 00:00:00 2001 From: Nassim Boutekedjiret Date: Wed, 17 Jan 2024 17:03:23 +0100 Subject: [PATCH] Issue #18: Generate sources JAR artifact * Updated workflows to use "sentrysoftware/workflows" `v3`. * Updated POM to generate the `sources` classifier. * Removed `Example.java`. --- .github/workflows/build.yml | 2 +- .github/workflows/deploy.yml | 2 +- .github/workflows/release.yml | 2 +- pom.xml | 9 +++-- .../org/sentrysoftware/example/Example.java | 34 ------------------- 5 files changed, 9 insertions(+), 40 deletions(-) delete mode 100644 src/main/java/org/sentrysoftware/example/Example.java diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e271fc5..55aed6a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ on: jobs: build: - uses: sentrysoftware/workflows/.github/workflows/maven-build.yml@main + uses: sentrysoftware/workflows/.github/workflows/maven-build.yml@v3 with: jdkVersion: "17" debug: ${{ github.event_name == 'workflow_dispatch' && inputs.debug }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 58d81b4..5a72abb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,7 +10,7 @@ on: jobs: deploy: - uses: sentrysoftware/workflows/.github/workflows/maven-central-deploy.yml@main + uses: sentrysoftware/workflows/.github/workflows/maven-central-deploy.yml@v3 with: jdkVersion: "17" secrets: inherit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 83101de..14d640c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ on: jobs: release: - uses: sentrysoftware/workflows/.github/workflows/maven-central-release.yml@main + uses: sentrysoftware/workflows/.github/workflows/maven-central-release.yml@v3 with: releaseVersion: ${{ inputs.releaseVersion }} developmentVersion: ${{ inputs.developmentVersion }} diff --git a/pom.xml b/pom.xml index 7ea9c8d..29ab011 100644 --- a/pom.xml +++ b/pom.xml @@ -111,6 +111,9 @@ + + ${basedir}/src/main/connector + @@ -146,9 +149,9 @@ attach-sources - - jar - + + jar-no-fork + diff --git a/src/main/java/org/sentrysoftware/example/Example.java b/src/main/java/org/sentrysoftware/example/Example.java deleted file mode 100644 index 211d94a..0000000 --- a/src/main/java/org/sentrysoftware/example/Example.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.sentrysoftware.example; - -/*- - * ╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲ - * MY PROJECT - * ჻჻჻჻჻჻ - * Copyright 2023 Sentry Software - * ჻჻჻჻჻჻ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱ - */ - -/** - * An Example class - */ -public class Example { - - /** - * The main function - */ - public static void main() { - System.out.println("Hello Open-source World!"); - } -}