Hi! First of all, thanks for building Amper and pr...
# amper
a
Hi! First of all, thanks for building Amper and providing a way out of the pit of despair that is Gradle 🎉 I find the simplicitly of defining modules, a more sane project folder structure etc to be just lovely so far. Question: Is there (currently) a way to publish locally and use said packages in another, separate Amper project?
💜 3
j
In 0.7.0, it's possible to publish to maven local, but not consume from there yet. Consuming from maven local has been implemented recently but it's only available in dev versions, so you'll need to
./amper update --dev
to try this. What you need to add is a repository with the special URL
mavenLocal
, with
publish: true
in the publishing project, and the same repository in the consuming project (no need for
publish: true
there)
🙏 2
a
Thanks, I’ll check out the dev build
j
(note that IJ might still show you a warning on "unsupported resolution from maven local" in your
module.yaml
file, but if you're using the dev version, you can ignore it)
👍 1
a
I am able to build in IDEA and from terminal, but the Amper sync is not working from “receiving” project. I suspect the plugin is using a fixed version of amper to do the sync - assume it’ll be fixed in the next plugin update? 🙂
j
Ah yes, both the warnings and the dependency resolution in the IDE rely on the old Amper version embedded in the IDE plugin. Indeed it will require a plugin update (which comes with IDEA updates)
In the future, we'll work on decoupling the Amper version from the IDE plugin, but given the experimental status of the project, this has lower priority right now
👍 1