forked from geowarin/docker-junit-rule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
77 lines (65 loc) · 1.58 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
plugins {
id "com.jfrog.bintray" version "1.3.1"
}
allprojects {
repositories {
jcenter()
}
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'java'
}
group = 'com.github.geowarin'
version = '1.2.0'
description = 'A junit rule to run docker containers'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenCentral()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.12'
compile 'com.spotify:docker-client:8.9.1'
compileOnly('junit:junit:4.12')
testCompile('junit:junit:4.12')
testCompile 'org.slf4j:slf4j-simple:1.7.12'
testCompile 'com.rabbitmq:amqp-client:3.2.1'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar, javadocJar
}
publishing {
publications {
JarPublication(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
def bintrayUser = project.hasProperty('bintrayUser') ? project.bintrayUser : System.getenv('BINTRAY_USER')
def bintrayKey = project.hasProperty('bintrayKey') ? project.bintrayKey : System.getenv('BINTRAY_KEY')
bintray {
user = bintrayUser
key = bintrayKey
publications = ['JarPublication']
pkg {
repo = 'maven'
name = project.name
desc = project.description
licenses = ['MIT']
vcsUrl = 'https://github.com/geowarin/docker-junit-rule.git'
version {
name = project.version
desc = project.description
}
}
}