Skip to content

Jitpack generates wrong Gradle metadata #4476

@elect86

Description

@elect86

Describe the bug

Wrong Gradle metadata generated from build

To Reproduce
Steps to reproduce the behavior:

  1. trigger a new build of kool
  2. Check the .module metadata file, this is wrong
    "dependencies" : [ {
      "group" : "kx.platform",
      "module" : "source",
      "version" : {
        "requires" : "0.0.9"
      }
    }, {

Expected behavior

Run the very same command locally, you should get instead the following

      "dependencies": [
        {
          "group": "kx.platform",
          "module": "source",
          "version": {
            "requires": "0.0.9"
          },
          "attributes": {
            "org.gradle.category": "platform"
          },
          "endorseStrictVersions": true
        },

This is a blocker, because downstream will cause the Idea Gradle project reload to fail because kx.platform:source:0.0.9 will be seen as a normal dependency instead of a platform

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions