diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 21fa1ca7..2e23e277 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -3,8 +3,6 @@ on: push: branches: - main - tags: - - 'v[0-9]+.*' pull_request: branches: - main diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..1f66989f --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,25 @@ +name: Publish package maven +on: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + server-id: central + server-username: MAVEN_USERNAME # env variable for username in deploy + server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy + gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }} + gpg-passphrase: GPG_PASSPHRASE + + - name: Publish package + run: mvn -B -P release deploy + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USER }} + MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} + GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSPHRASE }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 8f85f7b7..5ef0a829 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,7 @@ hs_err_pid* replay_pid* /target + +# release plugin state files +/pom.xml.releaseBackup +/release.properties \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..a7bd62b7 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "editorconfig.editorconfig" // make sure basic editor configs align between developers + ] +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 1d1df8fd..ffda2a4b 100644 --- a/pom.xml +++ b/pom.xml @@ -27,14 +27,18 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> - + 4.0.0 engineering.swat java-watch - 0.0.1-SNAPSHOT + 0.5.0-RC5-SNAPSHOT jar + + ${project.groupId}:${project.artifactId} + A java file watcher that works across platforms and supports recursion, single file watches, and tries to make sure no events are missed. Where possible it uses Java's NIO WatchService. + https://github.com/SWAT-engineering/java-watch + BSD-2-Clause @@ -43,6 +47,28 @@ + + + Davy Landman + davy.landman@swat.engineering + swat.engineering + https://www.swat.engineering + + + Sung-Shik Jongmans + sung-shik.jongmans@swat.engineering + swat.engineering + https://www.swat.engineering + + + + + scm:git:git://github.com/SWAT-engineering/java-watch.git + scm:git:ssh://git@github.com/SWAT-engineering/java-watch.git + https://github.com/SWAT-engineering/java-watch/tree/main/ + v0.5.0-RC3 + + UTF-8 3.42.0 @@ -54,52 +80,34 @@ - + org.apache.maven.plugins maven-compiler-plugin - 3.10.1 + 3.14.0 11 -parameters - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - - jar - - - - - + org.apache.maven.plugins maven-release-plugin + 3.1.1 v@{project.version} + + - - org.apache.maven.plugins - maven-javadoc-plugin - 3.4.0 - - -Xdoclint:none - - - + org.apache.maven.plugins maven-surefire-plugin - 2.22.2 + 3.5.3 - + org.jacoco jacoco-maven-plugin - 0.8.8 + 0.8.13 @@ -115,11 +123,11 @@ - + com.mycila license-maven-plugin - 4.6 + 5.0.0 @@ -142,7 +150,7 @@ - + org.ec4j.maven editorconfig-maven-plugin 0.1.3 @@ -157,6 +165,26 @@ + + org.apache.maven.plugins + maven-enforcer-plugin + 3.5.0 + + + enforce-maven + + enforce + + + + + (3.9,) + + + + + + @@ -197,6 +225,64 @@ + + release + + + + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 + true + + central + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.11.2 + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.3.1 + + + attach-sources + + jar-no-fork + + + + + + + + + checker-framework @@ -205,6 +291,7 @@ org.apache.maven.plugins maven-dependency-plugin + 3.8.1 @@ -216,7 +303,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.10.1 + 3.14.0 true 11