forked from vividus-framework/vividus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (81 loc) · 2.98 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
}
}
ext.buildSystemDir = file("${System.env.BUILD_SYSTEM_ROOT?:buildSystemRootDir}/${buildSystemVersion}")
ext.gradleScriptDir = new File(ext.buildSystemDir, 'gradle')
apply from: "${gradleScriptDir}/project.gradle"
apply from: "${gradleScriptDir}/jacoco.gradle"
apply from: "${gradleScriptDir}/sonarqube.gradle"
def testProjectPostfix = '-tests'
def nonTestSubprojects = subprojects.findAll { !it.name.endsWith(testProjectPostfix) }
configure(subprojects.findAll { it.name.endsWith(testProjectPostfix) }) {
apply from: "${buildSystemDir}/vividus-test-subproject.gradle"
}
configure(nonTestSubprojects) {
apply plugin: 'com.jfrog.bintray'
apply from: "${buildSystemDir}/vividus-library-subproject.gradle"
dependencies {
modules {
module('org.hamcrest:hamcrest-core') {
replacedBy('org.hamcrest:hamcrest', 'Use latest hamcrest version')
}
}
}
bintray {
user = System.getProperty('bintray.user')
key = System.getProperty('bintray.key')
publications = ['maven']
pkg {
repo = 'maven-releases'
name = "${project.group}.${project.name}"
desc = project.description
userOrg = 'vividus'
licenses = ['Apache-2.0']
websiteUrl = 'https://github.com/vividus-framework/vividus'
issueTrackerUrl = 'https://github.com/vividus-framework/vividus/issues'
vcsUrl = 'https://github.com/vividus-framework/vividus.git'
publicDownloadNumbers = true
version {
name = project.version
vcsTag = "release-${project.version}"
released = new Date()
}
}
}
}
task jacocoAggregatedReport(type: JacocoReport) {
nonTestSubprojects.each {
executionData it.tasks.withType(Test)
}
dependsOn nonTestSubprojects.collect { it.tasks.withType(Test) }
sourceDirectories.from(subprojects.sourceSets.main.java.sourceDirectories)
classDirectories.from(subprojects.sourceSets.main.output)
}
project.description = 'Vividus'
ext {
versions = [
allure: '2.13.2',
commonsIo: '2.7',
commonsLang3: '3.10',
commonsText: '1.8',
groovy: '3.0.4',
guava: '29.0-jre',
hamcrest: '2.2',
httpclient: '4.5.12',
javaxInject: '1',
jbehave: '4.6.4-alpha.3',
junit4: '4.13',
slf4j: '2.0.0-alpha1',
spring: '5.2.7.RELEASE',
junit: '5.6.2',
junit4Dataprovider: '2.6',
mockito: '3.3.3',
powermock: '2.0.7',
slf4jTest: '2.1.1'
]
}