Skip to content

Modrinth maven: XML in description conflicts with Gradle #3152

@btwonion

Description

@btwonion

Please confirm the following.

Describe the bug

Gradle: 8.12

If you add a version with an XML formatted description to your gradle project the build will fail with the following error:

* What went wrong:
A problem occurred configuring root project 'magnetic'.
> Could not resolve all files for configuration ':modImplementation'.
   > Could not resolve maven.modrinth:tree-harvester:1.21.2-9.0-fabric+neo.
     Required by:
         root project :
      > Could not resolve maven.modrinth:tree-harvester:1.21.2-9.0-fabric+neo.
         > Could not parse POM https://api.modrinth.com/maven/maven/modrinth/tree-harvester/1.21.2-9.0-fabric+neo/tree-harvester-1.21.2-9.0-fabric+neo.pom
            > Resetting to invalid mark

I tried this POM: https://api.modrinth.com/maven/maven/modrinth/tree-harvester/1.21.2-9.0-fabric+neo/tree-harvester-1.21.2-9.0-fabric+neo.pom.

Stacktrace log: https://pastes.dev/Fr4N1I28bG

Steps to reproduce

  1. Add the modrinth maven repo to your gradle repositories.
  2. Add modImplementation("maven.modrinth:tree-harvester:1.21.2-9.0-fabric+neo") to your dependencies.

Expected behavior

Normally, the version should just be downloaded. It works with e.g. Sodium.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendInvolves work from the backend team

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions