This repository was archived by the owner on Aug 4, 2025. It is now read-only.
Kotlin archetypes: component, spring-mvc#14
Open
elfrucool wants to merge 10 commits intoopentable:masterfrom
Open
Kotlin archetypes: component, spring-mvc#14elfrucool wants to merge 10 commits intoopentable:masterfrom
elfrucool wants to merge 10 commits intoopentable:masterfrom
Conversation
added 4 commits
October 14, 2020 19:59
elfrucool
commented
Oct 15, 2020
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-resources-plugin</artifactId> | ||
| <configuration> | ||
| <addDefaultExcludes>false</addDefaultExcludes> |
Author
There was a problem hiding this comment.
for adding .gitignore to generated projects
elfrucool
commented
Oct 15, 2020
| * You'll probably want to do something more than | ||
| * store a String. | ||
| */ | ||
| public class ComponentJava { |
Author
There was a problem hiding this comment.
some java code to show Java and Kotlin can live together
elfrucool
commented
Oct 15, 2020
| ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| ## See the License for the specific language governing permissions and | ||
| ## limitations under the License. | ||
| #set( $D = '\$' ) |
Author
There was a problem hiding this comment.
need to escape it since $ has special meaning on Kotling strings
elfrucool
commented
Oct 15, 2020
| properties = ["ot.component.config=foo"], | ||
| classes = [ComponentKotlinConfiguration::class] | ||
| ) | ||
| // must be @Autowired not @Inject |
Author
There was a problem hiding this comment.
for having componentKotlin: ComponentKotlin as immutable field (and constructor argument) we need to use @Autowired and JUnit5
added 6 commits
October 15, 2020 17:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Here I'm presenting a couple of new archetypes:
spring-archetype-component-kotlinto create spring based components in kotlin, andspring-archetype-service-mvc-kotlinto create spring-mvc services in kotlinBoth were already tested on my local environment.
Also I'm using JUnit5 on Kotlin tests
Let me know if it's ok to have them, I had this idea after reading that we are open to use kotlin if the concrete team and manager agrees.