diff --git a/.github/workflows/pull-request-build.yaml b/.github/workflows/pull-request-build.yaml index bfa0a98..19a3101 100644 --- a/.github/workflows/pull-request-build.yaml +++ b/.github/workflows/pull-request-build.yaml @@ -23,4 +23,4 @@ jobs: cache-dependency-path: 'pom.xml' - name: Build with Maven run: | - ./mvnw --no-transfer-progress --batch-mode clean verify + ./mvnw --no-transfer-progress --batch-mode clean verify -Dgpg.skip diff --git a/.github/workflows/push-build.yaml b/.github/workflows/push-build.yaml index 150efbc..d018466 100644 --- a/.github/workflows/push-build.yaml +++ b/.github/workflows/push-build.yaml @@ -22,6 +22,11 @@ jobs: java-version: '25' cache: 'maven' cache-dependency-path: 'pom.xml' + server-id: ossrh + server-username: ${{ secrets.MAVEN_CENTRAL_USERNAME }} + server-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} + gpg-private-key: ${{ secrets.GPG_KEY }} + gpg-passphrase: ${{ secrets.GPG_KEY_PASSWORD }} - name: Set up Git user run: | git config user.name github-actions[bot] diff --git a/README.md b/README.md index f777cd4..3aea2e1 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ It is used to reduce runtime dependencies because the JavaFX FXML loader is not com.github.bsels javafx-maven-plugin - 1.0.2 + 1.0.3 @@ -228,7 +228,7 @@ binaries,logging configuration, optional ZIP packaging, etc.). com.github.bsels javafx-maven-plugin - 1.0.2 + 1.0.3 @@ -363,7 +363,7 @@ The goal executes during the `proces-classes` phase and requires **runtime** dep com.github.bsels javafx-maven-plugin - 1.0.2 + 1.0.3 @@ -446,52 +446,3 @@ java -Djava.util.logging.SimpleFormatter.format=%1$tF %1$tT %4$s %2$s - %5$s%6$s -cp target/classes:... \ com.example.app.MainApp --mode demo --verbose ``` - -## 📦 Including This Library in Your Project - -What you need to do: - -1. Add the GitHub Packages registry to your Maven settings so Maven can resolve the artifact from GitHub’s Maven - Artifactory. -2. Update your pom.xml (or Gradle build) to point to the new coordinates once they’re published. -3. For a complete walkthrough—including how to generate a PAT and configure Maven/Gradle—see GitHub’s official - documentation: [🔗 Authenticating to GitHub Packages (Maven)](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#authenticating-to-github-packages) - -```xml - - - - - github - - - - - github - - - central - https://repo.maven.apache.org/maven2 - - - github - https://maven.pkg.github.com/bsels/javafx-maven-plugin - - true - - - - - - - - github - YOUR-USERNAME - YOUR-PAT-TOKEN - - - -``` diff --git a/pom.xml b/pom.xml index fc1a436..246275a 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,14 @@ javafx-maven-plugin 1.0.2 maven-plugin - javafx-maven-plugin Maven Mojo + ${project.groupId}:${project.artifactId} + + A lightweight Maven plugin based on the JavaFX Maven Plugin with three goals: fxml‑source generates type‑safe + Java classes from FXML at compile time; run launches the app for development; jlink builds a minimal + self‑contained runtime image. Requires Java 25+, a modular project, and provides config for packages, debugging, + logging, native binaries. + + https://github.com/bsels/javafx-maven-plugin @@ -21,9 +28,18 @@ Boris Sels + boris.sels@gmail.com + GitHub + https://github.com + + scm:git:git://github.com/bsels/javafx-maven-plugin.git + scm:git:ssh://github.com:bsels/javafx-maven-plugin.git + http://github.com/bsels/javafx-maven-plugin/tree/master + + 24 @@ -33,6 +49,8 @@ 3.14.1 3.5.4 3.15.2 + 1.5 + 0.9.0 3.27.6 @@ -112,6 +130,31 @@ maven-plugin-plugin ${maven.plugin.plugin.version} + + org.apache.maven.plugins + maven-gpg-plugin + ${maven.gpg.plugin.version} + + + sign-artifacts + verify + + sign + + + + + + org.sonatype.central + central-publishing-maven-plugin + ${central.publishing.maven.plugin.version} + true + + ossrh + true + published + + @@ -196,10 +239,13 @@ + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + - github - GitHub Maven Packages - https://maven.pkg.github.com/bsels/javafx-maven-plugin + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ \ No newline at end of file