Skip to content

chore: update publishing#3243

Merged
NotMyFault merged 3 commits intomainfrom
publishing
Jul 24, 2025
Merged

chore: update publishing#3243
NotMyFault merged 3 commits intomainfrom
publishing

Conversation

@PierreSchwang
Copy link
Member

Description

Follows PlotSquared and updates the Sonatype publishing.
The plugin is quite limited when facing custom setups - it requires the java or java-library plugin to work. That's not really working for the libs - but as the platform setup is basically just specifying a publication, cloning that behavior is not really hard. Only annoying thing is the log messages:

> Configure project :worldedit-libs:core
No compatible plugin found in project :worldedit-libs:core for publishing

> Configure project :worldedit-libs:bukkit
No compatible plugin found in project :worldedit-libs:bukkit for publishing

> Configure project :worldedit-libs:cli
No compatible plugin found in project :worldedit-libs:cli for publishing

> Configure project :worldedit-libs:core:ap
No compatible plugin found in project :worldedit-libs:core:ap for publishing

I couldn't really test much here. The tasks are running and I'm receiving my Unauthorized response. The generated POMs and module-JSONs are looking correct.

Submitter Checklist

  • Make sure you are opening from a topic branch (/feature/fix/docs/ branch (right side)) and not your main branch.
  • Ensure that the pull request title represents the desired changelog entry.
  • New public fields and methods are annotated with @since TODO.
  • I read and followed the contribution guidelines.

@PierreSchwang PierreSchwang marked this pull request as draft July 22, 2025 12:22
@PierreSchwang PierreSchwang marked this pull request as ready for review July 23, 2025 21:13
@NotMyFault NotMyFault merged commit 56513ba into main Jul 24, 2025
11 checks passed
@NotMyFault NotMyFault deleted the publishing branch July 24, 2025 18:16
@NotMyFault
Copy link
Collaborator

FAILURE: Build completed with 3 failures.

1: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':worldedit-cli:plainJavadocJar' (type 'JavadocJar').
  - Gradle detected a problem with the following location: '/home/runner/work/FastAsyncWorldEdit/FastAsyncWorldEdit/worldedit-cli/build/libs/worldedit-cli-2.13.1-SNAPSHOT-javadoc.jar'.
    
    Reason: Task ':worldedit-cli:generateMetadataFileForMavenPublication' uses this output of task ':worldedit-cli:plainJavadocJar' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
    
    Possible solutions:
      1. Declare task ':worldedit-cli:plainJavadocJar' as an input of ':worldedit-cli:generateMetadataFileForMavenPublication'.
      2. Declare an explicit dependency on ':worldedit-cli:plainJavadocJar' from ':worldedit-cli:generateMetadataFileForMavenPublication' using Task#dependsOn.
      3. Declare an explicit dependency on ':worldedit-cli:plainJavadocJar' from ':worldedit-cli:generateMetadataFileForMavenPublication' using Task#mustRunAfter.
    
    For more information, please refer to https://docs.gradle.org/8.14.3/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

* Try:
> Declare task ':worldedit-cli:plainJavadocJar' as an input of ':worldedit-cli:generateMetadataFileForMavenPublication'
> Declare an explicit dependency on ':worldedit-cli:plainJavadocJar' from ':worldedit-cli:generateMetadataFileForMavenPublication' using Task#dependsOn
> Declare an explicit dependency on ':worldedit-cli:plainJavadocJar' from ':worldedit-cli:generateMetadataFileForMavenPublication' using Task#mustRunAfter
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':worldedit-libs:cli:publishMavenPublicationToMavenCentralRepository'.
> Failed to publish publication 'maven' to repository 'mavenCentral'
   > Could not PUT 'https://central.sonatype.com/repository/maven-snapshots/com/fastasyncworldedit/FastAsyncWorldEdit-Libs-Cli/2.13.1-SNAPSHOT/FastAsyncWorldEdit-Libs-Cli-2.13.1-20250724.182332-1.jar'. Received status code 403 from server: Forbidden

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org./
==============================================================================

3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':worldedit-libs:bukkit:publishMavenPublicationToMavenCentralRepository'.
> Failed to publish publication 'maven' to repository 'mavenCentral'
   > Could not PUT 'https://central.sonatype.com/repository/maven-snapshots/com/fastasyncworldedit/FastAsyncWorldEdit-Libs-Bukkit/2.13.1-SNAPSHOT/FastAsyncWorldEdit-Libs-Bukkit-2.13.1-20250724.182332-1.jar'. Received status code 403 from server: Forbidden

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org./
==============================================================================

BUILD FAILED in 3s
43 actionable tasks: 14 executed, 29 up-to-date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments