forked from bitsofinfo/hazelcast-docker-swarm-discovery-spi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
113 lines (91 loc) · 2.68 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
}
}
plugins {
id "com.jfrog.bintray" version "1.7.3"
}
group = 'org.bitsofinfo'
allprojects {
repositories {
jcenter()
}
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
mainClassName = 'org.bitsofinfo.hazelcast.discovery.docker.swarm.test.DockerTestRunner'
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
dependencies {
compile group: 'com.hazelcast', name: 'hazelcast', version: '[3.9,3.10-BETA-1)'
compile group: 'com.spotify', name: 'docker-client', version: '[8,9)', classifier: 'shaded'
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('bintrayUser')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('bintrayApiKey')
publications = ['hazelcastDockerSwarmDiscoverySpi']
pkg {
repo = 'maven'
name = 'hazelcast-docker-swarm-discovery-spi'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/bitsofinfo/hazelcast-docker-swarm-discovery-spi'
publicDownloadNumbers = true
version {
name = project.property('version')
desc = project.property('version') + " : " + project.property('description')
released = new Date()
vcsTag = project.property('version')
}
}
}
publishing {
publications {
hazelcastDockerSwarmDiscoverySpi(MavenPublication) {
from components.java
groupId project.property('group')
artifactId 'hazelcast-docker-swarm-discovery-spi'
version project.property('version')
artifact sourcesJar
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task runTests(type: Test) {
description 'Runs unit tests for all tests except TestDoNothingRegistrator.'
//Always run tests even when up-to-date
outputs.upToDateWhen {
false
}
}
task unitTest(type: Test) {
description 'Runs unit tests for single class.'
//Always run tests even when up-to-date
outputs.upToDateWhen {
false
}
}
runTests {
testLogging {
// Show that tests are run in the command-line output
events 'started', 'passed'
}
}
unitTest {
testLogging {
// Show that tests are run in the command-line output
events 'started', 'passed'
}
}
artifacts {
archives sourcesJar
}