forked from reportportal/agent-java-soapui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (59 loc) · 1.81 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'net.researchgate:gradle-release:2.8.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.github.jengelman.gradle.plugins:shadow:5.1.0'
}
}
description = 'EPAM Report portal. SoapUI client API'
allprojects {
apply plugin: 'java'
group = 'com.epam.reportportal'
}
project.ext.releaseMode = project.hasProperty('releaseMode')
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'net.researchgate.release'
apply plugin: 'com.jfrog.bintray'
// apply from: "${rootProject.projectDir}/quality.gradle"
apply from: "${rootProject.projectDir}/release.gradle"
sourceCompatibility = 11
targetCompatibility = 11
repositories {
jcenter()
releaseMode ? maven { url "http://dl.bintray.com/epam/reportportal" } : maven { url "https://jitpack.io" }
maven { url "https://www.soapui.org/repository/maven2" }
mavenCentral()
}
publishing {
repositories {
maven {
url mavenRepoUrl
credentials {
username = mavenUsername
password = mavenPassword
}
}
}
}
//noinspection GroovyAssignabilityCheck
task zip(type: Zip, overwrite: true) {
def path = "${project.projectDir}/src/main/resources/"
archiveClassifier.set('full')
from shadowJar.outputs.files
from(path, {
include 'soapui-log4j.xml'
into('/bin')
})
from(path, {
include 'reportportal-listeners.xml'
into('/bin/listeners')
})
}
build.dependsOn zip
}