trilha – kotlin · 2019. 7. 18. · globalcode – open4education um pouco de história fev/2016...

Post on 03-Sep-2020

11 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Globalcode – Open4education

Trilha – KotlinAndré de Fontana Ignacio

Software Architect

Globalcode – Open4education

Renovando sua stack Spring com Kotlin

Globalcode – Open4education

Sobre mim● Java desde 2006 (1.4)● Spring Framework desde 2008 (2.5)● Ritmista da Mocidade Alegre desde 2000

@aignacio83

andrefontanaignacio

ignacio83

Globalcode – Open4education

Agenda• História

• Live Coding

• Perguntas

Globalcode – Open4education

Um pouco de história

fev/2016

Kotlin 1.0

Spring + Kotlin

mai/2017

Android + Kotlinjul/2011

Kotlin é anunciado

fev/2012

Kotlin - Open Sourcenov/2017

Kotlin 1.2

out/2018

Kotlin 1.3

Em Maio de 2019 - Google anuncia que Kotlin é a linguagem preferida para desenvolvimento no Android

Globalcode – Open4education

Projeto - Stack Java• Java 8• Maven• Spring Boot 2.1.6• Spring Data JPA• Spring MVC• Lombok• Spring Fox (Swagger)• H2• JUnit 5• Mockito• AssertJ• Google Java Format

• Controllers

• Contracts/Resources

• Domain

• Services

• Repositories

Globalcode – Open4education

Live Coding

Globalcode – Open4education

Kotlin libs

Globalcode – Open4education

Compilando Kotlin

Globalcode – Open4education

Domain/Entity

Globalcode – Open4education

Domain/Entity - JPA plugin

Globalcode – Open4education

Contract/Resource

Globalcode – Open4education

Contract/Resource

Globalcode – Open4education

Recomendado

Globalcode – Open4education

Controller

Globalcode – Open4education

Service

Globalcode – Open4education

Plugin allopen

Globalcode – Open4education

Configuration

Globalcode – Open4education

Mockk

Globalcode – Open4education

Unit Tests

Globalcode – Open4education

Formating

Globalcode – Open4education

Obrigado

Perguntas?

@aignacio83andrefontanaignacio ignacio83

Globalcode – Open4education

Links• https://github.com/ignacio83/spring-stack-j2k-demo

• https://kotlinlang.org/docs/reference/

• https://spring.io/guides/tutorials/spring-boot-kotlin/

• https://spring.io/blog/2017/01/04/introducing-kotlin-support-in-spring-framework-5-0

• https://spring.io/blog/2017/08/01/spring-framework-5-kotlin-apis-the-functional-way

• https://docs.spring.io/spring-framework/docs/5.1.8.RELEASE/kdoc-api/spring-framework/

• https://github.com/mockk/mockk

• https://github.com/Ninja-Squad/springmockk

• https://github.com/pinterest/ktlint

top related