forked from tomasbjerre/violation-comments-to-github-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
107 lines (93 loc) · 2.48 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
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'net.researchgate:gradle-release:2.2.2'
classpath "gradle.plugin.se.bjurr.gitchangelog:git-changelog-gradle-plugin:1.40"
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'signing'
apply plugin: 'com.bmuschko.nexus'
apply plugin: 'net.researchgate.release'
apply plugin: "se.bjurr.gitchangelog.git-changelog-gradle-plugin"
task gitChangelogTask(type: se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask) {
filePath = "CHANGELOG.md";
templateContent = new File('changelog.mustache').getText('UTF-8');
removeIssueFromMessage = true
customIssues = [
[ "GitHub", "#([0-9]+)", "https://github.com/tomasbjerre/violations-comments-to-github-lib/issues/\${PATTERN_GROUP_1}" ]
]
}
group = 'se.bjurr.violations'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile 'se.bjurr.violations:violation-comments-lib:1.22'
compile 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5'
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:2.3.0'
}
eclipse {
classpath {
downloadSources = true
downloadJavadoc = true
}
}
sourceSets {
main.java.srcDirs = ['src/main/java' ]
test.java.srcDirs = ['src/test/java' ]
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
modifyPom {
project {
name 'Violation Comments to GitHub Lib'
description 'Library that adds violation comments from static code analysis to GitHub.'
url 'https://github.com/tomasbjerre/violation-comments-to-github-lib'
inceptionYear '2016'
scm {
url 'https://github.com/tomasbjerre/violation-comments-to-github-lib'
connection 'scm:https://[email protected]/tomasbjerre/violation-comments-to-github-lib.git'
developerConnection 'scm:git://github.com/tomasbjerre/violation-comments-to-github-lib.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'tomasbjerre'
name 'Tomas Bjerre'
email '[email protected]'
}
}
}
}
extraArchive {
sources = true
tests = true
javadoc = true
}
afterReleaseBuild.dependsOn {
[install, uploadArchives]
}