From ae161ba8aa288ad1d915192d4e89bd170cae2251 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Tue, 9 Oct 2018 09:38:45 +0100 Subject: [PATCH] Fixed main class generation in output. --- backend/pom.xml | 11 +++++++++++ .../ObservationDatabaseApplication.kt | 13 ++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/backend/pom.xml b/backend/pom.xml index 4611c36..3dd1439 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -103,6 +103,17 @@ org.springframework.boot spring-boot-maven-plugin ${spring.version} + + uk.co.neviyn.observationdatabase.ObservationDatabaseApplication + ZIP + + + + + repackage + + + kotlin-maven-plugin diff --git a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/ObservationDatabaseApplication.kt b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/ObservationDatabaseApplication.kt index db87127..3221559 100644 --- a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/ObservationDatabaseApplication.kt +++ b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/ObservationDatabaseApplication.kt @@ -4,8 +4,11 @@ import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot.runApplication @SpringBootApplication -class ObservationDatabaseApplication - -fun main(args: Array) { - runApplication(*args) -} +class ObservationDatabaseApplication { + companion object { + @JvmStatic + fun main(args: Array) { + runApplication(*args) + } + } +} \ No newline at end of file