forked from alfa-laboratory/colibri-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
121 lines (105 loc) · 3.39 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
group 'ru.colibri'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath "ru.d10xa:gradle-allure-plugin:0.5.3"
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.4.9'
classpath 'com.netflix.nebula:nebula-release-plugin:4.1.0'
classpath 'com.netflix.nebula:nebula-publishing-plugin:4.9.1'
classpath 'com.netflix.nebula:nebula-project-plugin:3.3.0'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.6.3'
}
}
apply plugin: 'findbugs'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'base'
apply plugin: 'java'
apply plugin: 'ru.d10xa.allure'
apply plugin: 'distribution'
apply plugin: 'nebula.release'
apply plugin: 'nebula.project'
apply plugin: 'nebula.maven-publish'
apply from: 'loadSettings.gradle'
repositories {
maven {
url "http://dl.bintray.com/alfa-laboratory/maven-releases"
}
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
compile "io.appium:java-client:6.1.0"
compile "org.jbehave:jbehave-core:4.3.3"
compile "org.jbehave:jbehave-spring:4.3.3"
compile "org.projectlombok:lombok:1.16.18"
compile "com.opencsv:opencsv:3.9"
compile "ru.yandex.qatools.allure:allure-junit-adaptor:1.5.4"
compile "org.slf4j:slf4j-api:1.7.25"
testCompile "org.springframework:spring-test:4.3.8.RELEASE"
testCompile "junit:junit:4.12"
testCompile "org.mockito:mockito-core:2.+"
}
loadSettings()
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
}
}
}
tasks.withType(FindBugs) {
reports {
xml.enabled false
html.enabled true
}
}
ext {
bintrayUserName = (project.hasProperty('BINTRAY_USERNAME') ? project.findProperty('BINTRAY_USERNAME') : System.getenv()['BINTRAY_USERNAME'])
bintrayPassword = (project.hasProperty('BINTRAY_PASSWORD') ? project.findProperty('BINTRAY_PASSWORD') : System.getenv()['BINTRAY_PASSWORD'])
bintrayRepository = (project.hasProperty('BINTRAY_REPOSITORY') ? project.findProperty('BINTRAY_REPOSITORY') : System.getenv()['BINTRAY_REPOSITORY'])
}
bintray {
user = bintrayUserName
key = bintrayPassword
publications = ['nebula']
dryRun = false
publish = true
pkg {
userOrg = 'alfa-laboratory'
repo='maven-releases'
name = 'colibri-ui'
desc = project.description
websiteUrl = 'https://github.com/alfa-laboratory/colibri-ui'
issueTrackerUrl = 'https://github.com/alfa-laboratory/colibri-ui'
vcsUrl = 'https://github.com/alfa-laboratory/colibri-ui'
licenses = ['Apache-2.0']
labels = ['gradle', 'nebula']
publicDownloadNumbers = true
attributes = [:]
version {
name = project.version
vcsTag = project.version
attributes = [:]
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.1'
}
bintrayUpload.onlyIf { !project.version.toString().toUpperCase().endsWith("-SNAPSHOT") && !project.version.toString().toUpperCase().contains("-DEV") }
jacocoTestReport {
reports {
xml.enabled true
csv.enabled true
html.destination file("${buildDir}/jacocoHtml")
}
}