Skip to content

Commit

Permalink
Run first kotlin program
Browse files Browse the repository at this point in the history
  • Loading branch information
evaou committed Mar 26, 2017
1 parent e807826 commit 51bb690
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
.gradle
.idea
build

*.iml
*.ipr
*.iws
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ buildscript {
}
}

apply plugin: "kotlin"
apply plugin: 'idea'
apply plugin: 'kotlin'
apply plugin: 'application'

repositories {
mavenCentral()
Expand All @@ -22,3 +24,5 @@ dependencies {
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlinVersion"
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion"
}

mainClassName = 'domoya.app.MainKt'
5 changes: 5 additions & 0 deletions src/main/kotlin/domoya/app/Main.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package domoya.app

fun main(args: Array<String>) {
println("Hello Kotlin!")
}

0 comments on commit 51bb690

Please sign in to comment.