forked from jamescarr/h2-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (37 loc) · 837 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apply plugin: 'groovy'
apply plugin: 'maven'
repositories {
mavenCentral()
}
sourceCompatibility = 1.5
targetCompatibility = sourceCompatibility
dependencies {
groovy "org.codehaus.groovy:groovy-all:1.8.5"
compile gradleApi()
compile 'com.h2database:h2:1.3.164'
testCompile 'junit:junit:4.10'
}
println System.getProperty('release')
if(!System.getProperty("release")){
version = "${version}-SNAPSHOT"
}
task wrapper(type: Wrapper) {
gradleVersion = '1.0-rc-3'
}
task writeNewPom << {
pom {
project {
inceptionYear '2012'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}.writeTo("$buildDir/libs/${project.name}-${version}.pom")
}
build.doLast {
writeNewPom.execute()
}