Fixed main class generation in output.

This commit is contained in:
neviyn 2018-10-09 09:38:45 +01:00
parent c4bf14f383
commit ae161ba8aa
2 changed files with 19 additions and 5 deletions

View File

@ -103,6 +103,17 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring.version}</version>
<configuration>
<mainClass>uk.co.neviyn.observationdatabase.ObservationDatabaseApplication</mainClass>
<layout>ZIP</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>kotlin-maven-plugin</artifactId>

View File

@ -4,8 +4,11 @@ import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class ObservationDatabaseApplication
fun main(args: Array<String>) {
class ObservationDatabaseApplication {
companion object {
@JvmStatic
fun main(args: Array<String>) {
runApplication<ObservationDatabaseApplication>(*args)
}
}
}