forked from alfa-laboratory/akita
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
156 lines (133 loc) · 4.71 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.4.9"
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.1'
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.10.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.netflix.nebula:nebula-release-plugin:4.1.0'
classpath 'com.netflix.nebula:gradle-info-plugin:3.2.1'
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:3.3.0'
classpath 'com.netflix.nebula:nebula-publishing-plugin:4.9.1'
}
}
repositories {
maven {
url "http://dl.bintray.com/alfa-laboratory/maven-releases"
}
mavenLocal()
jcenter()
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'base'
apply plugin: 'maven-publish'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'license'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'distribution'
// ==== nebula
apply plugin: 'nebula.release'
apply plugin: 'nebula.maven-publish'
apply plugin: 'nebula.source-jar'
apply plugin: 'nebula.javadoc-jar'
group = 'ru.alfabank.tests'
description = """light testing framework Akita"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
project.ext {
cucumberVersion = '2.4.0'
selenideVersion = '4.11.4'
}
dependencies {
compile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
compile group: 'org.codehaus.groovy', name: 'groovy', version: '2.4.8'
compile group: 'org.reflections', name: 'reflections', version: '0.9.10'
compile group: 'junit', name: 'junit', version: '4.12'
compile group: 'com.codeborne', name: 'selenide', version: selenideVersion
compile group: 'io.cucumber', name: 'cucumber-java', version: cucumberVersion
compile group: 'io.cucumber', name: 'cucumber-core', version: cucumberVersion
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.21'
compile group: 'org.projectlombok', name: 'lombok', version: '1.16.10'
compile group: 'io.rest-assured', name: 'rest-assured', version: '3.0.2'
compile group: 'com.google.inject', name: 'guice', version: '4.1.0'
compile group: 'com.galenframework', name: 'galen-java-support', version: '2.3.6'
compile group: 'com.jayway.jsonpath', name: 'json-path', version: '2.4.0'
testCompile "org.mockito:mockito-core:2.13.0"
testCompile "org.mockito:mockito-inline:2.13.0"
testCompile "com.github.tomakehurst:wiremock-standalone:2.15.0"
}
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact javadocJar {
classifier "javadoc"
}
artifact sourceJar {
classifier "sources"
}
}
}
}
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 = 'akita'
desc = project.description
websiteUrl = 'https://github.com/alfa-laboratory/akita'
issueTrackerUrl = 'https://github.com/alfa-laboratory/akita/issues'
vcsUrl = 'https://github.com/alfa-laboratory/akita.git'
licenses = ['Apache-2.0']
labels = ['gradle', 'nebula']
publicDownloadNumbers = true
attributes = [:]
version {
name = project.version
vcsTag = project.version
attributes = [:]
}
}
}
test {
maxParallelForks = 1
ignoreFailures = false
jvmArgs += "-Dfile.encoding=UTF-8"
jvmArgs += "-Dbrowser=chrome"
jvmArgs += "-Dselenide.pageLoadStrategy=none"
}
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")
}
}
license {
header rootProject.file('HEADER')
exclude ("body.json")
strictCheck false
}