forked from jirislav/azkaban-ldap-usermanager
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
69 lines (57 loc) · 1.52 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
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.4'
id 'net.researchgate.release' version '2.5.0'
id 'co.riiid.gradle' version '0.4.2'
id 'java'
id 'maven'
id 'idea'
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url "https://jitpack.io"
}
}
shadowJar {
relocate 'org.apache.mina', 'shadow_2_0_9.org.apache.mina'
classifier = null
}
jar.enabled = false
dependencies {
compileOnly group: 'com.github.azkaban', name: 'azkaban', version: '3.16.0'
compile group: 'org.apache.directory.api', name: 'api-all', version: '1.0.0-M31'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.zapodot', name: 'embedded-ldap-junit', version: '0.5.2'
testCompile group: 'com.github.azkaban', name: 'azkaban', version: '3.16.0'
}
github {
owner = 'researchgate'
repo = 'azkaban-ldap-usermanager'
token = project.hasProperty('githubToken') ? githubToken : 'Set token'
tagName = project.version
targetCommitish = 'master'
name = 'v' + project.version
assets = [
shadowJar.getArchivePath()
]
}
artifacts {
shadowJar;
}
githubRelease {
doFirst {
if (!project.hasProperty('githubToken')) {
throw new Exception("No github token is set!")
}
}
}
release {
git {
requireBranch = '(master|\\d+\\.\\d+)'
}
}
build.dependsOn(shadowJar);
release.buildTasks = ["build"];
afterReleaseBuild.dependsOn githubRelease
createReleaseTag.enabled = false