forked from bitsofinfo/hazelcast-etcd-discovery-spi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
97 lines (76 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
buildscript {
repositories {
jcenter()
}
}
plugins {
id "com.jfrog.bintray" version "1.5"
}
group = 'org.bitsofinfo'
allprojects {
repositories {
jcenter()
}
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'java'
}
sourceCompatibility = 1.6
targetCompatibility = 1.6
dependencies {
compile group: 'com.hazelcast', name: 'hazelcast', version:'3.6'
compile group: 'org.mousio', name: 'etcd4j', version:'2.9.0'
compile group: 'com.google.code.gson', name: 'gson', version:'2.4'
testCompile 'junit:junit:4.12'
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('bintrayUser')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('bintrayApiKey')
publications = ['hazelcastEtcdDiscoverySpi']
pkg {
repo = 'maven'
name = 'hazelcast-etcd-discovery-spi'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/bitsofinfo/hazelcast-etcd-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 {
hazelcastEtcdDiscoverySpi(MavenPublication) {
from components.java
groupId project.property('group')
artifactId 'hazelcast-etcd-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
}
//Exclude TestDoNothingRegistrator test because it requires special setup
exclude "**/TestDoNothingRegistrator.class"
}
runTests {
testLogging {
// Show that tests are run in the command-line output
events 'started', 'passed'
}
}
artifacts {
archives sourcesJar
}