Last active
November 24, 2016 12:48
-
-
Save hmhmsh/2c3e598951b25157a3bf5f08054907af to your computer and use it in GitHub Desktop.
Revisions
-
hasess revised this gist
Nov 24, 2016 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ // 例 fun hello(): String = "HELLO" fun main(args: Array<String>) { println(hello()) } -
hasess created this gist
Nov 24, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ { "file_regex": "^(...*?):([0-9]*):?([0-9]*)", "selector": ["source.kt"], "shell_cmd": "gradle -Pmain=\"${file_name}\"" } 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ buildscript { ext.kotlin_version = '1.0.5' repositories { mavenCentral() } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } apply plugin: 'kotlin' apply plugin: 'application' repositories { mavenCentral() } dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" } sourceSets { main.java.srcDirs += './' } defaultTasks 'run' run { if (project.hasProperty('main')) { main(project.main.replace(".kt", "Kt").capitalize()) } }