annotate build.gradle @ 9:9f9063d3c17c

cope with subproject without src files
author smith@nwoca.org
date Thu, 25 Oct 2012 14:24:39 +0100
parents 4db19f1c5ad0
children 8400a7db1330
rev   line source
0
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
1
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
2 apply from: "${gradle.hasProperty('ssdtDevelkitLocation') ? gradle.ssdtDevelkitLocation :'http://hg.ssdt-ohio.org/browse/public/develkit'}/init.gradle"
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
3
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
4 description = "SSDT Gradle Plugins"
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
5
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
6 group="org.ssdt_ohio"
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
7
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
8 apply plugin: 'groovy'
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
9 apply plugin: 'idea'
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
10 apply plugin: 'maven'
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
11
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
12 defaultTasks 'clean', 'build'
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
13
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
14 sourceCompatibility = 1.6
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
15
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
16 dependencies {
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
17 groovy localGroovy()
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
18 compile gradleApi()
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
19 testCompile 'junit:junit:4.10'
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
20 }
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
21
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
22 idea.project {
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
23 jdkName = '1.6'
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
24 }
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
25
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
26 idea.module {
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
27 downloadSources = true
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
28 downloadJavadoc = true
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
29 }