-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
82 lines (71 loc) · 2.48 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
plugins {
id 'java'
id 'maven'
}
group 'com.jfrog.xray.client'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://releases.jfrog.io/artifactory/oss-releases"
}
maven {
url "https://releases.jfrog.io/artifactory/oss-snapshots"
mavenContent {
snapshotsOnly()
}
}
}
def buildInfoVersion = '2.41.1'
dependencies {
implementation group: 'org.jfrog.buildinfo', name: 'build-info-extractor', version: buildInfoVersion
implementation group: 'org.jfrog.buildinfo', name: 'build-info-client', version: buildInfoVersion
implementation group: 'org.jfrog.buildinfo', name: 'build-info-api', version: buildInfoVersion
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.14.1'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.14.1'
implementation(group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.14') {
exclude group: 'commons-codec', module: 'commons-codec'
}
implementation group: 'org.jfrog.filespecs', name: 'file-specs-java', version: '1.1.0'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.11'
implementation group: 'commons-codec', name: 'commons-codec', version: '1.13'
implementation group: 'commons-io', name: 'commons-io', version: '2.9.0'
testImplementation group: 'org.mock-server', name: 'mockserver-netty', version: '5.11.2'
testImplementation group: 'org.testng', name: 'testng', version: '7.4.0'
}
//noinspection GroovyAssignabilityCheck
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
//noinspection GroovyAssignabilityCheck
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}
//noinspection GroovyAssignabilityCheck
task testResultsZip(type: Zip) {
archiveClassifier.set('testreports')
from testReportDir
}
test {
useTestNG()
testLogging {
exceptionFormat "full"
events "started", "passed", "skipped", "failed", "standardOut", "standardError"
minGranularity 0
}
// Have the XraySpecSuite run all tests
exclude 'com/jfrog/xray/client/test/spec'
finalizedBy(testResultsZip)
}
artifacts {
archives sourcesJar
}
jar {
manifest {
attributes 'Implementation-Version': archiveVersion
}
}