Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating the pricing demo to the newest release, the setup task fails #66

Open
ftomassetti opened this issue Nov 2, 2023 · 0 comments

Comments

@ftomassetti
Copy link
Contributor

As discussed in the internal channel, we have this weird issue.

I am trying to update the pricing demo to the latest version of lionweb-mps, which I built locally and I am running into a weird issue.
If I run the setup task with these dependencies the task works well:

dependencies {
    mps("com.jetbrains:mps:2021.1.4")
    generation("de.itemis.mps:extensions:2021.1.+")
    generation("io.lionweb.lionweb-mps:lionweb-mps:0.0.9-SNAPSHOT")
}

when I update to the new dependency:

dependencies {
    mps("com.jetbrains:mps:2021.1.4")
    generation("de.itemis.mps:extensions:2021.1.+")
    generation("io.lionweb.lionweb-mps:lionweb-mps-2021.1:$lionwebMPSVersion")
}

Then I get this error:

  • What went wrong:
Could not determine the dependencies of task ':mps-pricing-dsl:resolveGenerationDependencies'.
> Could not resolve all files for configuration ':mps-pricing-dsl:generation'.
   > Could not find extensions-2021.1.2646.1a3185e (de.itemis.mps:extensions:2021.1.2646.1a3185e).
     Searched in the following locations:
         https://artifacts.itemis.cloud/repository/maven-mps/de/itemis/mps/extensions/2021.1.2646.1a3185e/extensions-2021.1.2646.1a3185e

Note that:
while https://artifacts.itemis.cloud/repository/maven-mps/de/itemis/mps/extensions/2021.1.2646.1a3185e/extensions-2021.1.2646.1a3185e gives a 404, https://artifacts.itemis.cloud/repository/maven-mps/de/itemis/mps/extensions/2021.1.2646.1a3185e/extensions-2021.1.2646.1a3185e.pom exists
the error related to the MPS extensions disappear if I comment out the line related to lionweb-mps

Based on suggestions by @sergej-koscejev I compared the old and new module versions. I noticed that removing some of the new lines in the module file, the setup task succeed:

{
  "formatVersion": "1.1",
  "component": {
    "group": "io.lionweb.lionweb-mps",
    "module": "lionweb-mps-2021.1",
    "version": "0.1.2-SNAPSHOT",
    "attributes": {
      "org.gradle.status": "integration"
    }
  },
  "createdBy": {
    "gradle": {
      "version": "8.0.2"
    }
  },
  "variants": [
    {
      "name": "default",
      "attributes": {
        "org.gradle.usage": "java-runtime"
      }, 
      // If I remove from here to STOP, it builds successfully
      "dependencies": [
        {
          "group": "de.itemis.mps",
          "module": "extensions",
          "version": {
            "requires": "2021.1.2365.a4d7bb2"
          },
          "thirdPartyCompatibility": {
            "artifactSelector": {
              "name": "extensions",
              "type": "zip"
            }
          }
        }
      ],
      // STOP
      "files": [
        {
          "name": "lionweb-mps-2021.1-0.1.2-SNAPSHOT.zip",
          "url": "lionweb-mps-2021.1-0.1.2-SNAPSHOT.zip",
          "size": 4939667,
          "sha512": "6df84f0f9c223e30005424054ce049038b5c94386b3135e01893e7282cecb3f967b25bc3cfd6d4cd3aab29e6cbe36d5775733622627d5588e7674e9313e8b924",
          "sha256": "b410855d0fe339d7a95cdef84c14ef9147e0c066726a85d421739bf8938a9753",
          "sha1": "4eb513cddf0d68017039489a0c27cead7b4ffbf8",
          "md5": "242c972a45b777b1f1456f8618e318f8"
        }
      ]
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant