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 @@ 0.16.1 4.12 1.7.22 - 8.0 + 7.0 0.9.2 1.4.196 @@ -61,12 +61,43 @@ + + jboss-public-repository-group + JBoss Public Maven Repository Group + https://repository.jboss.org/nexus/content/groups/public-jboss/ + default + + true + never + + + true + never + + jcenter.bintray.com https://jcenter.bintray.com + + + jboss-public-repository-group + JBoss Public Maven Repository Group + https://repository.jboss.org/nexus/content/groups/public-jboss/ + default + + true + never + + + true + never + + + + - - org.wildfly.swarm - microprofile - org.wildfly.swarm logging @@ -102,7 +129,8 @@ org.wildfly.swarm jaxrs-jsonp - + + org.wildfly.swarm jpa @@ -111,9 +139,18 @@ flyway - org.wildfly.swarm - arquillian - test + com.h2database + h2 + ${h2.version} + jar + + + + + javax + javaee-api + ${javaee.version} + provided @@ -123,6 +160,11 @@ + + com.fasterxml.jackson.module + jackson-module-kotlin + 2.9.7 + org.jetbrains.kotlin kotlin-stdlib-jdk8 @@ -135,23 +177,6 @@ test - - - javax - javaee-api - ${javaee.version} - provided - - - - - com.h2database - h2 - ${h2.version} - jar - provided - - io.vavr @@ -315,7 +340,7 @@ - + - + --> compile diff --git a/package-lock.json b/package-lock.json index 042c572..4f55bac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "generator-jvm", - "version": "1.18.66", + "version": "1.18.67", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 977aa7c..ac8ffcd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generator-jvm", - "version": "1.18.66", + "version": "1.18.67", "description": "Helps you quick and easy generate JVM-based (java, java ee, kotlin, scala) projects with gradle and maven build systems, docker and docker-compose for rapid development", "homepage": "https://github.com/daggerok/generator-jvm", "author": {