java - Gradle 'application' plugin - is it possible to specify which mainClassName to use? -
i want able choose main
class run using gradle
@ command line using application
plugin.
for example, suppose have 2 adjacent apps under /src
.
i want run gradle run firstapp
or gradle run secondapp
, have mainclassname
specified tasks:
task firstapp { mainclassname = 'com.example.firstapp' } task secondapp { mainclassname = 'com.example.secondapp' }
is possible? unfortunately, defaults secondapp in configuration. sure doing silly gradle mistakes.
Comments
Post a Comment