Dave Jensen
01/22/2020, 7:04 PMmainClassName
in the springBoot
section of the build.gradle.kts? (The rest of the details in the thread)Dave Jensen
01/22/2020, 7:05 PMpackage <http://com.example.blog|com.example.blog>
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class BlogApplication
fun main(args: Array<String>) {
runApplication<BlogApplication>(*args)
}
This used to work fine. However, because of the Windows issue, I needed to use the id("com.github.ManifestClasspath") version "0.1.0-RELEASE"
plugin. In doing that, I got this Main class name has not been configured and it could not be resolved
.Dave Jensen
01/22/2020, 7:06 PMspringBoot {
mainClassName = ""
}
However, since the main is a Kotlin function, how do I specify that here?viralshah
01/22/2020, 8:03 PMmainClassName = "com.example.my.ApplicationKt"
That Kt part is necessary so it will be whatever your class name is + ‘Kt’Dave Jensen
01/22/2020, 11:25 PMDave Jensen
01/22/2020, 11:27 PMviralshah
01/22/2020, 11:28 PMDave Jensen
01/22/2020, 11:34 PMviralshah
01/23/2020, 12:00 AMDave Jensen
01/23/2020, 12:03 AM