Notes on building Kotlin development environment and migrating from Java to Kotlin

I'm going to shift system development from Java to Kotlin, and I'll leave a note of my research. I'm a server-side person, and I'm summarizing Kotlin's server-side content.

What is Kotlin (reading "Kotlin")?

Kotlin is an object-oriented programming language developed by JetBrains, which is famous for IntelliJ IDEA, a Java integrated development environment. The language syntax itself is a proprietary method that is not compatible with Java, but since the compiled code runs on the Java VM (virtual machine), it has the feature that ** many of the existing Java assets can be diverted **. I'm waiting.

Regarding the point that "many of the existing Java assets can be diverted", for those who have used Java so far, past assets can be diverted and the environment can coexist. , I decided to move to Kotlin from now on.

About building a development environment

The mainstream of Kotlin is to use IntelliJ, but since I am an Eclipse sect, I will build a development environment centered on Eclipse. The site that served as a reference at that time was here, and it was easier than I expected because it can be installed at the market price.

About coding

As for coding, you have to remember the minimum by looking at the reference etc. .. ..

How to make a project

For Spring boot projects, Kotlin supports it and you can choose kotlin when you create the project.

You can easily create an ordinary project.

However, Maven's Kotlin project struggles a lot.

I want a little more summarized one.

About migrating from Java

I think that the site I referred to here is IntelliJ, but the automatic conversion function from Java to Kotlin also exists in the Eclipse version. When migrating from Java, I think it is very convenient to first convert with this function and then make Kotlin the details.

If you are using Lombok, you will get an error when compiling, so this seems to be the cause.

Summary

For the time being, I tried to summarize the reference sites for migrating from Java to Kotlin, but I want the overall flow to be a little easier to understand.

Recommended Posts

Notes on building Kotlin development environment and migrating from Java to Kotlin
Notes on migrating from CircleCI 1.0 to 2.0
How to write and notes when migrating from VB to JAVA
ClassCastException occurs when migrating from Java7 to Java8 ~ Generics and overload ~
Notes on character encoding when migrating from windows to Mac
Notes on Java path and Package
Install Java development environment on Mac
Ruby on Rails --From environment construction to simple application development on WSL2
From building to deploying Ruby on Jets in docker-compose environment <Part 1>
If you want to change the Java development environment from Eclipse
What I thought about when I started migrating from Java to Kotlin
Java development environment construction memo on Mac
Building a Kotlin development environment using SDKMAN
What is Java and Development Environment (MAC)
[Ruby] Building a Ruby development environment on Ubuntu
Build a Java development environment on Mac
Build Java 8 development environment on AWS Cloud9
Precautions when migrating from VB6.0 to JAVA
Memo for migration from java to kotlin
I tried migrating the portfolio created on Vagrant to the Docker development environment
Java development environment
Kotlin functions and lambdas to send to Java developers
Try to build Java8 environment on Amazon Linux2
Java Development Basics ~ Development Environment Settings and Project Creation ~
Migrate from Java to Server Side Kotlin + Spring-boot
Java upload and download notes to Azure storage
[Java] Build Java development environment on Ubuntu & check execution
For Java engineers starting Kotlin from now on
Points stuck in building VSCode & Java development environment
Minecraft BE server development from PHP to Java
Upload and download notes in java on S3
Summary of points I was worried about when migrating from java to kotlin
Create a Java development environment using jenv on Mac
Build Java development environment with VS Code on Mac
Convert Java enum enums and JSON to and from Jackson
Changes from Java 8 to Java 11
Sum from Java_1 to 100
Java development environment memo
Java development environment construction on Mac-JDK Install (2020 preservation version)
Java language from the perspective of Kotlin and C #
Java development for beginners to start from 1-Vol.1-eclipse setup
The road from Git clone to building the environment and participating in the project (all in full)
From Java to Ruby !!
Learn the meaning of "passing the PATH" by building a Java development environment on Mac
[For beginners] Until building a Web application development environment using Java on Mac OS
I want to transition screens with kotlin and java!
java development environment construction
How to build Java development environment with VS Code
JavaFX application development with IntelliJ IDEA and Gradle ~ From environment construction to sample code ~
Try to build a Java development environment using Docker
[Java] Platforms to choose from for Java development starting now (2020)
Notes on how to use regular expressions in Java
Docker × Java Building a development environment that is too simple
From 0 to Ruby on Rails environment construction [macOS] (From Homebrew installation to Rails installation)
I tried to summarize the basics of kotlin and java
Catch up on new features from Java 7 to Java 9 at once
I want to make a list with kotlin and java!
I want to make a function with kotlin and java!
What happened in "Java 8 to Java 11" and how to build an environment
[Kotlin] Get Java Constructor / Method from KFunction and call it
How to deploy a kotlin (java) app on AWS fargate