티스토리 뷰
코틀린, 왜?
Kotlin을 쉽게 결론내면, Java와 Scala의 혼종이 아닐까 싶다.
JVM의 패왕Java.
개발자들이 Java의 문법에 지쳐갈 때 쯤... Scala가 나왔다.
FP. Functional Programming를 표방하면서...
FP와 OOP의 어느 중간쯤에서 태어난 혼종.
Hello World
package sample
fun main(args : Array) {
println("Hello, world!")
}
Gradle
현재 시점 2018-10-02 JDK8까지 지원.
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.2.71'
}
ext {
lombok_version = '1.18.2'
spring_boot_version = '2.0.5.RELEASE'
junit_version = '4.12'
java_version = '1.8'
}
apply plugin: 'idea'
apply plugin: 'eclipse'
group 'archmagece'
version '1.0-SNAPSHOT'
sourceCompatibility = java_version
targetCompatibility = java_version
compileKotlin {
kotlinOptions.jvmTarget = java_version
kotlinOptions.freeCompilerArgs = ['-Xjsr305=strict']
}
compileTestKotlin {
kotlinOptions.jvmTarget = java_version
kotlinOptions.freeCompilerArgs = ['-Xjsr305=strict']
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
eclipse {
classpath {
downloadJavadoc = true
downloadSources = true
}
}
repositories {
mavenCentral()
jcenter()
mavenLocal()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testCompile "org.jetbrains.kotlin:kotlin-test"
testCompile "org.jetbrains.kotlin:kotlin-test-junit"
//logging
compile "org.springframework.boot:spring-boot-starter-logging:$spring_boot_version"
testImplementation "junit:junit:$junit_version"
}
'Tech' 카테고리의 다른 글
Java - Base64(Encoding, Decoding) Sample Code (0) | 2018.10.02 |
---|---|
Scala - Hello World + Gradle Setting (0) | 2018.10.02 |
JavaScript - open source CDN (0) | 2018.10.02 |
티스토리 SyntaxHighlighter 적용해서 소스코드 예쁘게 넣기 (0) | 2018.09.28 |
Regex 이용한 HTML 태그 찾아바꾸기 (0) | 2018.09.28 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- sample
- index
- URLEncode
- version
- Source
- Algorithm
- cdn
- ActiveRecord
- 노가다
- Knowhow
- urldecode
- gradle
- Regex
- ChatGPT
- HelloWorld
- spring
- 사용법
- enum
- js
- Mac
- error
- RubyOnRails
- git
- JQuery
- Scala
- Snippet
- vscode
- Kotlin
- BASE64
- golang
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함