From 107dabe9e7207568671abcdfa711756b1bb0bca9 Mon Sep 17 00:00:00 2001 From: gserrano Date: Thu, 15 Oct 2020 17:02:42 -0500 Subject: [PATCH] [component-kotlin] fixing & tweaking small things --- component-kotlin/pom.xml | 196 +----------------- .../META-INF/maven/archetype-metadata.xml | 6 + .../resources/archetype-resources/.gitignore | 19 ++ .../kotlin/ComponentKotlinConfiguration.kt | 2 +- 4 files changed, 36 insertions(+), 187 deletions(-) create mode 100644 component-kotlin/src/main/resources/archetype-resources/.gitignore diff --git a/component-kotlin/pom.xml b/component-kotlin/pom.xml index e9a0d33..63b54c4 100644 --- a/component-kotlin/pom.xml +++ b/component-kotlin/pom.xml @@ -25,213 +25,37 @@ maven-archetype OpenTable Spring Component archetype for Kotlin - - - 11 - 1.4.10 - official - true - 1.6.2 - - - - - org.slf4j - slf4j-api - - - org.springframework spring-beans - - - javax.inject - javax.inject - - - org.springframework - spring-context - - - - - org.jetbrains.kotlin - kotlin-stdlib - - - org.jetbrains - annotations - - - org.jetbrains.kotlin - kotlin-test - test - - - - - junit - junit - - - org.junit.jupiter - junit-jupiter-api test - org.junit.jupiter - junit-jupiter-engine - test + org.slf4j + slf4j-api + runtime - org.junit.jupiter - junit-jupiter-params + javax.inject + javax.inject test - org.junit.vintage - junit-vintage-engine + org.springframework + spring-context test - - - - org.jetbrains.kotlin - kotlin-stdlib-jdk8 - ${dep.kotlin.version} - - - org.jetbrains.kotlin - kotlin-stdlib - ${dep.kotlin.version} - - - org.jetbrains.kotlin - kotlin-stdlib-common - ${dep.kotlin.version} - - - org.jetbrains - annotations - 13.0 - - - org.jetbrains.kotlin - kotlin-test - ${dep.kotlin.version} - - - org.jetbrains.kotlin - kotlin-test-common - ${dep.kotlin.version} - - - org.jetbrains.kotlin - kotlin-test-annotations-common - ${dep.kotlin.version} - - - org.jetbrains.kotlin - kotlin-test-junit - ${dep.kotlin.version} - - - org.jetbrains.kotlin - kotlin-test-junit5 - ${dep.kotlin.version} - - - org.junit.platform - junit-platform-engine - ${dep.junit-platform.version} - - - org.junit.platform - junit-platform-commons - ${dep.junit-platform.version} - - - - - org.jetbrains.kotlin - kotlin-maven-plugin - ${dep.kotlin.version} + org.apache.maven.plugins + maven-resources-plugin - - spring - + false - - - compile - compile - - compile - - - - src/main/java - src/main/kotlin - - - - - test-compile - test-compile - - test-compile - - - - src/test/java - src/test/kotlin - - - - - - - org.jetbrains.kotlin - kotlin-maven-allopen - ${dep.kotlin.version} - - - - - org.apache.maven.plugins - maven-compiler-plugin - ${dep.plugin.compiler.version} - - - default-compile - none - - - default-testCompile - none - - - java-compile - compile - - compile - - - - java-testCompile - test-compile - - testCompile - - - diff --git a/component-kotlin/src/main/resources/META-INF/maven/archetype-metadata.xml b/component-kotlin/src/main/resources/META-INF/maven/archetype-metadata.xml index 6085a34..a915389 100644 --- a/component-kotlin/src/main/resources/META-INF/maven/archetype-metadata.xml +++ b/component-kotlin/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -49,5 +49,11 @@ **/*.kt + + + + .gitignore + + diff --git a/component-kotlin/src/main/resources/archetype-resources/.gitignore b/component-kotlin/src/main/resources/archetype-resources/.gitignore new file mode 100644 index 0000000..0da5ef8 --- /dev/null +++ b/component-kotlin/src/main/resources/archetype-resources/.gitignore @@ -0,0 +1,19 @@ +pkg/ +*.o +*.lo +*.pc +*.log +*.status +.deps/ +*.iml +*.ipr +*.iws +coverage/ +target/ +.rakeTasks +.rvmrc +.idea +.classpath +.project +.settings +/.checkstyle diff --git a/component-kotlin/src/main/resources/archetype-resources/src/main/kotlin/ComponentKotlinConfiguration.kt b/component-kotlin/src/main/resources/archetype-resources/src/main/kotlin/ComponentKotlinConfiguration.kt index 32d5650..a512040 100644 --- a/component-kotlin/src/main/resources/archetype-resources/src/main/kotlin/ComponentKotlinConfiguration.kt +++ b/component-kotlin/src/main/resources/archetype-resources/src/main/kotlin/ComponentKotlinConfiguration.kt @@ -20,7 +20,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** - * A Spring Configuration class for our ComponentJava. + * A Spring Configuration class for our ComponentKotlin. * Inject configuration values, set up your beans, etc. */ @Configuration