Skip to content

Instantly share code, notes, and snippets.

@hmhmsh
Last active December 2, 2016 10:06
Show Gist options
  • Save hmhmsh/a742db11d38c20630cc3e8a2d83b3882 to your computer and use it in GitHub Desktop.
Save hmhmsh/a742db11d38c20630cc3e8a2d83b3882 to your computer and use it in GitHub Desktop.
apply plugin: 'java'
apply plugin: 'application'
mainClassName=project.main.capitalize()
/**
* Repositories
* @see http://www.gradle.org/docs/current/userguide/userguide_single.html#sec:repositories
*/
repositories {
mavenCentral()
}
/**
* Changing the project layout
* @see http://www.gradle.org/docs/current/userguide/userguide_single.html#N11E14
*/
sourceSets {
main {
java {
srcDirs += './'
}
}
}
/**
* Declare dependencies
* @see http://www.gradle.org/docs/current/userguide/userguide_single.html#sec:how_to_declare_your_dependencies
*/
dependencies {
// RxJava用
//compile 'io.reactivex:rxjava:1.1.0'
}
defaultTasks 'run'
{
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": ["source.java"],
"shell_cmd": "gradle -Pmain=\"${file_base_name}\""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment