Fixed main class generation in output.
This commit is contained in:
parent
c4bf14f383
commit
ae161ba8aa
@ -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>
|
||||
|
@ -4,8 +4,11 @@ import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||
import org.springframework.boot.runApplication
|
||||
|
||||
@SpringBootApplication
|
||||
class ObservationDatabaseApplication
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
runApplication<ObservationDatabaseApplication>(*args)
|
||||
}
|
||||
class ObservationDatabaseApplication {
|
||||
companion object {
|
||||
@JvmStatic
|
||||
fun main(args: Array<String>) {
|
||||
runApplication<ObservationDatabaseApplication>(*args)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user