Hello, I'm trying to decide between Amper (in curr...
# amper
a
Hello, I'm trying to decide between Amper (in current and future state) and Gradle. My focus is likely server side. There are some specific questions I would love to discuss. Anyone using Gradle of Amper on server side?
j
I tried. Amper’s not there yet.
a
@Jakub Gwóźdź Could you share what’s missing for you?
j
Sure thing 🙂 Keep in mind that it’s all my personal experience, these features might be somewhere on roadmap, or even already implemented but I haven’t found them. • I couldn’t pack app distributions (I pack all my server-side project with
./gradlew distTar
), not to mention publish libs, all I could do was
./amper build && ./amper run
• I couldn’t run plugins (like linters or code generators) • it is kinda slow on first launch while it downloads dependencies, probably not something I’d like on the cicd (but I didn’t get that far to confirm) • there’s no support for bill-of-materials dependencies yet, so I had to list all dependencies with the same versions specified • the
./amper run
does not rebuild code if it changed, and
./amper build
does not re-read dependencies without
./amper clean
first, which was a bit misleading. • Plus the major showstopper: bug with BOM dependencies that I reporter two weeks ago 🙂 That was standalone 0.4, on newest Kotlin and LTS java. For sure I’ll try again with next amper releases.
a
Thanks, Jakub, that’s useful. BOM dependencies fix is on the way, and we’ll recheck the
amper run
and
amper build
, this doesn’t sound good. As for the rest, they are indeed planned and some are even in the works, e.g. we are looking into how to support custom linters, code generator and other cases
c
amper standalone seems much more experimental than gradle amper and if just gradle amper worked perfect that would be good enough for now IMO. In the project where I currently use it, it is a bit of a distraction, on one hand its nicer than gradle but its also always possible that something simple does not work or is complex or forces me down a rabbit hole
a
Thanks Christoph! standalone Amper is indeed in much early stage, right now we are focusing to make it more usable in the real-world KMP applications, so stay tuned!
j
we’ll recheck the
amper run
and
amper build
, this doesn’t sound good
I did re-check this, and indeed we have a problem in 0.4.0 regarding
./amper build
, but I fixed it in the
main
branch a while back. I can't reproduce in 0.5.0-dev-*, which is a good sign. Regarding
./amper run
not rebuilding code, this is very strange. I cannot reproduce even in Amper 0.4.0. @Jakub Gwóźdź could it be that some file wasn't saved? Also, did you use an IDE to run it (which one?), or did you type the CLI command directly?
j
Hi. I was using IntelliJ Ultimate for coding and I ran typing
./amper run
in the IntelliJ’s terminal. I did not press any command-s or anything to save files, not can I confirm it was failing to trigger build every time. but I notices it to fail a few times and then I just had
./amper build && ./amper run
in my shell’s history 🙂