Skip to content

Commit

Permalink
Issue #18: Generate sources JAR artifact
Browse files Browse the repository at this point in the history
* Updated workflows to use "sentrysoftware/workflows" `v3`.
* Updated POM to generate the `sources` classifier.
* Removed `Example.java`.
  • Loading branch information
NassimBtk committed Jan 17, 2024
1 parent 552bab7 commit e61eb4e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
9 changes: 6 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@

<build>

<!-- Tell the maven-source-plugin where to find the sources -->
<sourceDirectory>${basedir}/src/main/connector</sourceDirectory>

<!-- Common configuration for plugins -->
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -146,9 +149,9 @@
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
Expand Down
34 changes: 0 additions & 34 deletions src/main/java/org/sentrysoftware/example/Example.java

This file was deleted.

0 comments on commit e61eb4e

Please sign in to comment.