For those interested, small shell script to conver...
# kotlin-toolchain
p
For those interested, small shell script to convert from Maven to Kotlin Toolchain directory structure.
🔥 3
j
@Anton Prokhorov I thought we had an option for the maven converter to do that. Am I hallucinating? If we don't have it, it might be worth adding if it's trivial
@Peter am I right that you used the
kotlin convert-project
command initially, and then migrated the directory structure? Did you want the new directory structure from the start, or did you like having this first stage to change the project type without having too many files move around?
p
Indeed I run
kotlin tool convert-project
first. But then cleaned up much of the generated module.yaml files (introducing template file for better reuse) and once it was all fine and running correctly, migrated the directory structure. Preferred smaller steps since Kotlin toolchain is new for me and didn’t want to introduce too many changes at once. Here you can see the result here: github.com/neurallayer/roboquant
wowow 1
cool doge 1
🙏 1
a
If we don't have it, it might be worth adding if it's trivial
it should be, might be a good idea, I'll create an issue for that
p
I think a separate Kotlin tool would be great (migrate-project-structure).
a
yeah, exactly, I was thinking about introducing a new subcommand
j
yep, maybe we could have
kotlin tool convert-maven-project [--preserve-maven-layout]
and
kotlin tool convert-maven-layout
👍 1
👍🏾 1