forked from tomasbjerre/git-changelog-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
101 lines (87 loc) · 2.14 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'net.researchgate:gradle-release:2.2.2'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'signing'
apply plugin: 'com.bmuschko.nexus'
apply plugin: 'net.researchgate.release'
group = 'se.bjurr.gitchangelog'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile 'com.jayway.jsonpath:json-path:2.1.0'
compile 'com.google.guava:guava:11.0.1'
compile 'org.eclipse.jgit:org.eclipse.jgit:3.6.2.201501210735-r'
compile 'com.github.spullara.mustache.java:compiler:0.8.18'
compile 'com.google.code.gson:gson:2.5'
testCompile 'junit:junit:4.12'
testCompile 'org.slf4j:slf4j-simple:1.7.13'
testCompile 'org.assertj:assertj-core:2.3.0'
}
test {
if (System.getProperty('DEBUG', 'false') == 'true') {
jvmArgs '-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9009'
}
}
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 'GIT Changelog'
description 'Library that generates changelog from a GIT repository.'
url 'https://github.com/tomasbjerre/git-changelog-lib'
inceptionYear '2015'
scm {
url 'https://github.com/tomasbjerre/git-changelog-lib'
connection 'scm:https://[email protected]/tomasbjerre/git-changelog-lib.git'
developerConnection 'scm:git://github.com/tomasbjerre/git-changelog-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 uploadArchives