forked from allure-framework/allure-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (68 loc) · 2.1 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
group = 'io.qameta.allure'
buildscript {
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.gradle.publish:plugin-publish-plugin:0.10.0'
classpath 'net.researchgate:gradle-release:2.8.0'
classpath 'ru.vyarus:gradle-quality-plugin:3.3.0'
}
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'java-gradle-plugin'
apply plugin: 'ru.vyarus.quality'
apply from: "${rootProject.projectDir}/gradle/plugin-publish.gradle"
apply from: "${rootProject.projectDir}/gradle/maven-publish.gradle"
apply from: "${rootProject.projectDir}/gradle/bintray.gradle"
apply from: "${rootProject.projectDir}/gradle/release.gradle"
gradlePlugin {
plugins {
allurePlugin {
id = 'io.qameta.allure'
implementationClass = 'io.qameta.allure.gradle.AllurePlugin'
}
}
}
compileJava {
sourceCompatibility = 1.7
targetCompatibility = 1.7
options.encoding = 'UTF-8'
}
compileTestJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}
configurations {
junit5Plugin
}
dependencies {
compile localGroovy()
testCompile gradleTestKit()
testCompile 'junit:junit:4.12'
testCompile 'commons-io:commons-io:2.5'
testCompile 'org.assertj:assertj-core:3.6.2'
testCompile 'org.apache.commons:commons-text:1.1'
junit5Plugin 'org.junit.platform:junit-platform-gradle-plugin:1.0.0'
testRuntime files(testPluginClasspath(sourceSets.main.runtimeClasspath.files + configurations.junit5Plugin.files))
}
quality {
pmdVersion = '5.5.4'
checkstyleVersion = '7.6'
findbugsVersion = '3.0.1'
codenarcVersion = '0.26.0'
}
def testPluginClasspath(Collection<File> collections) {
def generatedDir = new File(buildDir, "generated")
def pluginsClasspathFile = new File(generatedDir, "plugin-classpath.txt")
generatedDir.mkdirs()
pluginsClasspathFile.text = collections.join("\n")
return generatedDir
}