-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (50 loc) · 1.36 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
plugins {
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.8.1'
id 'java'
id 'maven'
id 'eclipse'
id 'idea'
id 'org.scm4j.releaser.scm4j-releaser-gradle-plugin' version '0.2.0'
}
repositories {
maven { url "https://jitpack.io" }
mavenCentral()
}
configurations.compile {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
group = 'org.scm4j'
dependencies {
compileOnly 'org.projectlombok:lombok:1.16.18'
compile 'org.apache.maven.resolver:maven-resolver-api:1.1.0'
testCompile 'junit:junit:4.12'
}
jar {
manifest.attributes(
'Specification-Title': project.name,
'Specification-Version': version.replaceAll(/-SNAPSHOT$/, ''),
'Implementation-Title': project.name,
'Implementation-Version': "$version (${new Date().format('yyyy-MM-dd')})",
)
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}