annotate build.gradle @ 2:4db19f1c5ad0

create ProjectVersion as instance instead of static. Add build info to jar manifest
author smith@nwoca.org
date Fri, 18 May 2012 18:21:13 +0100
parents c51874d4a5a7
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 }