This repository has been archived by the owner on Jun 9, 2021. It is now read-only.
/
build.gradle
65 lines (57 loc) · 1.8 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "se.bjurr.violations:violation-comments-to-github-gradle-plugin:1.4"
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'checkstyle'
apply plugin: 'findbugs'
apply plugin: 'pmd'
apply plugin: "se.bjurr.violations.violation-comments-to-github-gradle-plugin"
task violationCommentsToGitHub(type: se.bjurr.violations.comments.github.plugin.gradle.ViolationCommentsToGitHubTask) {
repositoryOwner = "tomasbjerre";
repositoryName = "violations-test"
pullRequestId = System.properties['GITHUB_PULLREQUESTID']
oAuth2Token = System.properties['GITHUB_OAUTH2TOKEN']
gitHubUrl = "https://api.github.com/"
createCommentWithAllSingleFileComments = false
createSingleFileComments = true
violations = [
["FINDBUGS", ".", ".*/findbugs/.*\\.xml\$"],
["PMD", ".", ".*/pmd/.*\\.xml\$"],
["CHECKSTYLE", ".", ".*/checkstyle/.*\\.xml\$"],
["JSHINT", ".", ".*/jshint/.*\\.xml\$"],
["CSSLINT", ".", ".*/csslint/.*\\.xml\$"],
["CPPCHECK", ".", ".*/cppcheck/.*\\.xml\$"],
["CPPLINT", ".", ".*/cpplint/.*\\.txt\$"],
["FLAKE8", ".", ".*/flake8/.*\\.txt\$"],
["JSHINT", ".", ".*/jshint/.*\\.xml\$"],
["PERLCRITIC", ".", ".*/perlcritic/.*\\.txt\$"],
["XMLLINT", ".", ".*/xmllint/.*\\.txt\$"]
]
}
group = 'se.bjurr.violations'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenLocal()
mavenCentral()
}
checkstyle {
ignoreFailures = true
//reportsDir = file('../violations-lib/src/test/resources/checkstyle')
}
findbugs {
ignoreFailures = true
//reportsDir = file('../violations-lib/src/test/resources/findbugs')
}
pmd {
ignoreFailures = true
//reportsDir = file('../violations-lib/src/test/resources/pmd')
}