setMain

@ReplacedBy(value = "mainClass")
open fun setMain(@Nullable main: String): JavaExecSpec

Deprecated

Sets the fully qualified name of the main class to be executed.

Return

this

Deprecated

Use getMainClass.set(main) instead. This method will be removed in Gradle 9.0.

Parameters

main

the fully qualified name of the main class to be executed.