forked from jfrog/ide-plugins-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
93 lines (81 loc) · 3.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
plugins {
id 'java'
id 'maven'
}
group 'com.jfrog.ide'
sourceCompatibility = '1.11'
targetCompatibility = '1.11'
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.36.3'
dependencies {
implementation group: 'org.jfrog.buildinfo', name: 'build-info-extractor-npm', version: buildInfoVersion
implementation group: 'org.jfrog.buildinfo', name: 'build-info-extractor-go', 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.12.6.1'
implementation(group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13') {
exclude group: 'commons-codec', module: 'commons-codec'
}
implementation group: 'com.jfrog.xray.client', name: 'xray-client-java', version: '0.11.0'
implementation group: 'org.apache.commons', name: 'commons-collections4', version: '4.4'
implementation group: 'org.jfrog.filespecs', name: 'file-specs-java', version: '1.1.0'
implementation group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.14'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.11'
implementation group: 'com.google.guava', name: 'guava', version: '30.1.1-jre'
implementation group: 'commons-codec', name: 'commons-codec', version: '1.13'
implementation group: 'com.jfrog', name: 'gradle-dep-tree', version: '1.0.0'
implementation group: 'commons-io', name: 'commons-io', version: '2.9.0'
implementation group: 'com.opencsv', name: 'opencsv', version: '5.5.2'
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.12'
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.12'
testImplementation group: 'org.mockito', name: 'mockito-inline', version: '4.2.0'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.2.0'
testImplementation group: 'org.testng', name: 'testng', version: '7.4.0'
}
task uberJar(type: Jar) {
archiveClassifier.set('uber')
manifest {
attributes 'Implementation-Version': archiveVersion
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
with jar
}
jar {
manifest {
attributes 'Implementation-Version': archiveVersion
}
}
//noinspection GroovyAssignabilityCheck
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
test {
useTestNG() {
useDefaultListeners = true
}
testLogging {
exceptionFormat "full"
events "started", "passed", "skipped", "failed", "standardOut", "standardError"
minGranularity 0
}
}
artifacts {
archives sourcesJar
archives uberJar
}