1apply plugin: 'java' 2 3import javax.tools.ToolProvider 4 5sourceSets { 6 main { 7 java { 8 srcDirs = ['src/'] 9 } 10 resources { 11 srcDirs = ['res/'] 12 } 13 } 14} 15 16dependencies { 17 // tools.jar required for com.sun.javadoc 18 compile files(((URLClassLoader) ToolProvider.getSystemToolClassLoader()).getURLs()) 19} 20 21if (project.hasProperty("usePrebuilts") && project.usePrebuilts == "true") { 22 repositories { 23 maven { url '../../prebuilts/tools/common/m2/repository' } 24 } 25 26 dependencies { 27 compile 'org.antlr:antlr:3.5.2' 28 compile 'com.google.jsilver:jsilver:1.0.0' 29 compile 'org.ccil.cowan.tagsoup:tagsoup:1.2.1' 30 // required by jsilver 31 compile 'com.google.guava:guava:15.0' 32 } 33} else { 34 dependencies { 35 compile project(path: ':antlr', configuration: 'antlrRuntime') 36 compile project(':jsilver') 37 compile project(':tagsoup') 38 } 39} 40