https://kotlinlang.org logo
#amper
Title
# amper
a

andrew

11/16/2023, 10:10 PM
I just gave Amper a try! I can say that I really enjoyed setting this up, it feels so much nicer than manually setting up Gradle files. Unfortunately, beyond simple use cases, I couldn’t really get very far without running into the need for Gradle interop… Is there a way to use both a Gradle file and an Amper config file in the same module, as well as keeping the directory structure very similar to Amper’s? I’m experimenting with the possibility of testing the waters with devs on my team in an effort to make the idea of kotlin multiplatform seem more appealing with Amper
Something else I’ve noticed is that gradle obviously has the convention plugin, having custom templates could also be a nice value add 🙂
a

andrew

11/16/2023, 10:12 PM
Oooooooo! I missed this haha, I like it 🙂
l

Landry Norris

11/16/2023, 10:30 PM
There's a gradle migration document. You can use gradle alongside amper to configure stuff amper can't. https://github.com/JetBrains/amper/blob/main/docs/GradleMigration.md
a

andrew

11/16/2023, 10:31 PM
I was reading it, but I noticed it’s either gradle or amper for individual modules in certain cases
I.e, configure an android project in gradle, and you lose amper support, and the nicer directory structure with other modules to keep gradle compat
l

Landry Norris

11/16/2023, 10:35 PM
The gradle interop project shows it using a module.yaml alongside a build.gradle.kts. I started moving a project over to amper, and from an IDE indexing perspective and task list, my build.gradle was definitely still applied. I couldn't test running the project, though due to time constraints. https://github.com/JetBrains/amper/tree/main/examples%2Fgradle-interop
a

andrew

11/17/2023, 4:18 AM
I’ll just have to try mixing and matching to see what sticks and what doesn’t
6 Views