is there an `./amper` equivalent to `./gradlew jvm...
# amper
b
is there an
./amper
equivalent to
./gradlew jvmRun --mainClass=<...>
a
cc @joffrey
🙏 1
j
There is
./amper run -m <module-name>
, which allows you to run the (only) application from the given module. Since Amper doesn't allow multiple apps in the same module, this should cover your needs. If the auto-detected main class is not enough (or doesn't find your main class), you can specify it explicitly in your module file:
Copy code
settings:
  jvm:
    mainClass: com.example.MyMain
That said, there is no way to override the main class via a CLI argument for now. If the module-based approach doesn't work for you, could you please share a bit more about your use case?