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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -