forked from flyway/flyway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
41 lines (32 loc) · 824 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
apply plugin: 'groovy'
def pomProject = new XmlSlurper().parse(file('pom.xml'))
group = pomProject.parent.groupId
version = pomProject.parent.version
sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6
repositories {
mavenLocal()
}
dependencies {
compile "${group}:flyway-core:${version}"
compile gradleApi()
compile localGroovy()
testCompile 'junit:junit:4.11'
testCompile 'org.hsqldb:hsqldb:2.3.2'
}
jar {
from ('..') {
include 'LICENSE.txt' into('META-INF')
include 'README.txt' into('META-INF')
}
}
test.dependsOn cleanTest
test {
beforeTest { descriptor ->
println("Running: " + descriptor)
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}