This repository has been archived by the owner on Jun 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
95 lines (79 loc) · 2.45 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
plugins{
id 'com.jfrog.bintray' version '1.8.5'
id 'java-library'
id 'idea'
id 'maven-publish'
id 'maven'
}
group = 'io.homecentr'
sourceCompatibility = 1.8
jar {
baseName = 'ansible-tests'
}
repositories{
mavenCentral()
jcenter()
maven {
url "https://dl.bintray.com/homecentr/maven"
}
}
dependencies{
implementation "org.testcontainers:testcontainers:1.14.3"
implementation 'io.homecentr:testcontainers-extensions:1.4.0'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.2'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.2'
testImplementation group: 'junit', name: 'junit', version: '4.13'
testCompile "org.mockito:mockito-core:3.4.6"
}
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
archives javadocJar
}
bintray{
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_API_KEY")
publications = ['AnsibleTests']
publish = true
pkg{
repo = String.valueOf(System.getenv('BINTRAY_REPO')).toLowerCase()
userOrg = String.valueOf(System.getenv('BINTRAY_ORG')).toLowerCase()
name = 'ansible-tests'
licenses = ['MIT']
vcsUrl = 'https://github.com/homecentr/lib-ansible-tests.git'
websiteUrl = 'https://github.com/homecentr/lib-ansible-tests'
issueTrackerUrl = 'https://github.com/homecentr/lib-ansible-tests/issues'
publicDownloadNumbers = true
githubRepo = 'homecentr/lib-ansible-tests'
githubReleaseNotesFile = 'README.md'
version {
name = String.valueOf(System.getenv("RELEASE_VERSION")).replace("v", "")
vcsTag = String.valueOf(System.getenv("GITHUB_SHA")).toLowerCase()
released = new Date()
}
}
}
publishing {
publications {
AnsibleTests(MavenPublication){
from components.java
groupId group
artifactId 'ansible-tests'
version String.valueOf(System.getenv("RELEASE_VERSION")).replace("v", "")
artifact javadocJar
artifact sourcesJar
}
}
}
test {
afterTest { desc, result ->
logger.quiet "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}"
}
}