diff --git a/.travis.yml b/.travis.yml
index 64deee2..d02de06 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -47,6 +47,24 @@ script:
# generator-jvm cli
- yo jvm --help
+# kotlin-wildfly-swarm
+- cd ${e2e}
+- yo jvm -n kotlin-wildfly-swarm -t kotlin-wildfly-swarm
+- cd ${e2e}/kotlin-wildfly-swarm/
+#
+- bash mvnw >/dev/null
+- bash target/*-swarm.jar &
+- wait_for 8080
+- sleep 3s
+- http :8080
+- stop_any 80 8080
+#
+- bash gradlew >/dev/null
+- bash build/libs/*-swarm.jar &
+- wait_for 8080
+- sleep 3s
+- http :8080
+
# java-ee-cdi-full-multi-project
- cd ${e2e}
- yo jvm -n java-ee-cdi-full-multi-project -t java-ee-cdi-full-multi-project
diff --git a/generators/app/templates/kotlin-wildfly-swarm/.travis.yml b/generators/app/templates/kotlin-wildfly-swarm/.travis.yml
index 761cfb1..492eb57 100644
--- a/generators/app/templates/kotlin-wildfly-swarm/.travis.yml
+++ b/generators/app/templates/kotlin-wildfly-swarm/.travis.yml
@@ -50,7 +50,19 @@ script:
- export root=$(pwd)
#
- bash mvnw >/dev/null
+- bash target/*-swarm.jar &
+- wait_for 8080
+- sleep 3s
+- http :8080
+- stop_any 80 8080
+#
- bash gradlew >/dev/null
+- bash build/libs/*-swarm.jar &
+- wait_for 8080
+- sleep 3s
+- http :8080
+- stop_any 80 8080
+#
before_deploy:
- cd ${root}
diff --git a/generators/app/templates/kotlin-wildfly-swarm/build.gradle b/generators/app/templates/kotlin-wildfly-swarm/build.gradle
index 52fde6d..52a6760 100644
--- a/generators/app/templates/kotlin-wildfly-swarm/build.gradle
+++ b/generators/app/templates/kotlin-wildfly-swarm/build.gradle
@@ -35,7 +35,7 @@ plugins {
id 'eclipse'
id 'org.jetbrains.kotlin.jvm' version '1.2.71' apply false
- id 'org.jetbrains.kotlin.kapt' version '1.2.71' apply false
+//id 'org.jetbrains.kotlin.kapt' version '1.2.71' apply false
id 'org.jetbrains.kotlin.plugin.noarg' version '1.2.71' apply false
id 'org.jetbrains.kotlin.plugin.spring' version '1.2.71' apply false
id 'org.jetbrains.kotlin.plugin.allopen' version '1.2.71' apply false
@@ -55,12 +55,10 @@ plugins {
apply plugin: 'wildfly-swarm'
-/*
wrapper {
gradleVersion = '4.10.2'
distributionType = 'BIN'
}
-*/
apply from: "$projectDir/gradle/ide.gradle"
apply from: "$projectDir/gradle/clean.gradle"
@@ -74,7 +72,7 @@ apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'org.jetbrains.kotlin.plugin.jpa'
apply plugin: 'org.jetbrains.kotlin.plugin.noarg'
apply plugin: 'org.jetbrains.kotlin.plugin.allopen'
-//apply plugin: 'org.jetbrains.kotlin.plugin.spring'
+apply plugin: 'org.jetbrains.kotlin.plugin.spring'
compileKotlin {
incremental = true
@@ -129,31 +127,31 @@ compileJava.dependsOn(processResources)
lombok.version = project.lombokVersion
dependencies {
+
//implementation "org.webjars:materializecss:$materializecssVersion"
//implementation "org.webjars:material-design-icons:$materialDesignIconsVersion"
- implementation 'org.wildfly.swarm:microprofile'
implementation 'org.wildfly.swarm:logging'
implementation 'org.wildfly.swarm:ejb'
implementation 'org.wildfly.swarm:cdi'
+ implementation 'org.wildfly.swarm:jaxrs-jsonp'
+
implementation 'org.wildfly.swarm:jpa'
implementation 'org.wildfly.swarm:flyway'
- implementation 'org.wildfly.swarm:jaxrs-jsonp'
- testImplementation 'org.wildfly.swarm:arquillian'
+ implementation 'com.h2database:h2:1.4.196'
+
+ providedCompile "javax:javaee-api:$javaeeVersion"
implementation('com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6')
- //implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonKotlinVersion")
+ implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonKotlinVersion")
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
- providedCompile "javax:javaee-api:$javaeeVersion"
- providedCompile 'com.h2database:h2:1.4.196'
+ implementation "io.vavr:vavr:$vavrVersion"
implementation "org.slf4j:slf4j-api:$slf4jVersion"
implementation 'ch.qos.logback:logback-classic:1.2.3'
- implementation "io.vavr:vavr:$vavrVersion"
-
testImplementation 'junit:junit:4.12'
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion")
testImplementation 'org.hamcrest:hamcrest-core:1.3'
diff --git a/generators/app/templates/kotlin-wildfly-swarm/gradle/repositories-config.gradle b/generators/app/templates/kotlin-wildfly-swarm/gradle/repositories-config.gradle
new file mode 100644
index 0000000..51daa0f
--- /dev/null
+++ b/generators/app/templates/kotlin-wildfly-swarm/gradle/repositories-config.gradle
@@ -0,0 +1,7 @@
+repositories {
+ maven { url 'https://repository.jboss.org/nexus/content/groups/public-jboss/' }
+ //mavenLocal() // for some reasons code source not attaching with this mavenLocal repository enabled in idea...
+ mavenCentral()
+ jcenter()
+ //maven { url 'https://repo.spring.io/libs-milestone' }
+}
diff --git a/generators/app/templates/kotlin-wildfly-swarm/pom.xml b/generators/app/templates/kotlin-wildfly-swarm/pom.xml
index 6b9b029..8527cca 100644
--- a/generators/app/templates/kotlin-wildfly-swarm/pom.xml
+++ b/generators/app/templates/kotlin-wildfly-swarm/pom.xml
@@ -30,7 +30,7 @@