hmhmsh
12/2/2016 - 10:03 AM

Java-gradle.sublime-build

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}\""
}