diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ac0e09e..ebad2b3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -59,7 +59,7 @@ jobs: run: | rm -rf docs mkdir -vp docs - cp -vrf target/site/apidocs/* docs/ + cp -vrf target/reports/apidocs/* docs/ cp -vrf .documentation/javadoc/JAVADOC-README.md docs/README.md - name: "Generate Javadoc sitemap" @@ -116,17 +116,17 @@ jobs: - name: "Set up JDK" uses: actions/setup-java@v4 with: - java-version: '11' + java-version: '8' distribution: 'adopt' cache: maven - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase - name: "Central Deploy" - run: mvn -B -Possrh deploy --file pom.xml -DskipTests + run: mvn -B -Pcentral deploy --file pom.xml -DskipTests env: MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASS }} diff --git a/base/gui/src/main/java/cc/carm/lib/easyplugin/gui/GUIListener.java b/base/gui/src/main/java/cc/carm/lib/easyplugin/gui/GUIListener.java index 2221683..3a36642 100644 --- a/base/gui/src/main/java/cc/carm/lib/easyplugin/gui/GUIListener.java +++ b/base/gui/src/main/java/cc/carm/lib/easyplugin/gui/GUIListener.java @@ -6,6 +6,7 @@ import org.bukkit.event.HandlerList; import org.bukkit.event.Listener; import org.bukkit.event.inventory.InventoryClickEvent; import org.bukkit.event.inventory.InventoryCloseEvent; +import org.bukkit.event.inventory.InventoryCreativeEvent; import org.bukkit.event.inventory.InventoryDragEvent; import org.bukkit.event.player.PlayerQuitEvent; diff --git a/pom.xml b/pom.xml index 6271dc3..ec8bd2c 100644 --- a/pom.xml +++ b/pom.xml @@ -296,17 +296,24 @@ - ossrh - - - ossrh - https://s01.oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - - + central + + + + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 + true + + central + true + + configured-demo + + + + +