forked from xebialabs-community/xld-liquibase-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
98 lines (82 loc) · 2.21 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
defaultTasks 'build'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0"
}
}
apply plugin: "com.github.hierynomus.license"
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
group = 'com.xebialabs.deployit.community'
sourceCompatibility = 1.6
targetCompatibility = 1.6
version = '4.1.0'
def apiVersion = '4.5.2'
def xldeployHome = "$System.env.XLDEPLOY_HOME"
repositories {
mavenLocal()
mavenCentral()
maven {
credentials {
username 'community-plugins'
password 'community'
}
url 'http://nexus.xebialabs.com/nexus/content/repositories/releases'
}
}
configurations {
compile {
transitive = false
}
itestCompile { extendsFrom testCompile }
itestRuntime { extendsFrom itestCompile, testRuntime }
}
dependencies {
testCompile "org.hamcrest:hamcrest-core:1.2.1"
testCompile "org.hamcrest:hamcrest-library:1.2.1"
itestCompile fileTree(dir: "$xldeployHome/lib", include: ['*.jar'])
}
sourceSets {
itest {
java {
srcDirs = ['src/test/itest']
}
compileClasspath = sourceSets.main.output + configurations.testCompile + configurations.itestCompile
runtimeClasspath = sourceSets.itest.output + configurations.itestCompile + sourceSets.main.output + configurations.itestRuntime
}
}
import org.apache.tools.ant.filters.*
processResources {
filter ReplaceTokens, tokens: [
"project.version": project.property("version"),
"project.artifactId": project.property("name")
]
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = "javadoc"
from javadoc.destinationDir
}
artifacts {
archives sourcesJar, javadocJar
}
license {
header rootProject.file('src/main/license/xebialabs_community.license')
strictCheck true
}
task itest(dependsOn: 'itestClasses',type: Test) {
testClassesDir = sourceSets.itest.output.classesDir
classpath = sourceSets.itest.runtimeClasspath
}
itest.configure {
useJUnit() {
}
}