This repository has been archived by the owner on Nov 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
91 lines (78 loc) · 2.44 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
/*
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'groovy'
id 'idea'
id 'maven-publish'
id 'java-gradle-plugin'
id 'com.jfrog.bintray' version '1.8.0'
id 'net.nemerosa.versioning' version '2.6.1'
id 'com.github.ben-manes.versions' version '0.17.0'
id 'com.gradle.plugin-publish' version '0.9.9'
id 'com.github.hierynomus.license' version '0.11.0'
id 'com.github.kt3k.coveralls' version '2.8.2'
}
apply from: 'gradle/publishing.gradle'
apply from: 'gradle/code-coverage.gradle'
apply from: 'gradle/code-quality.gradle'
repositories {
jcenter()
}
dependencies {
compile gradleApi()
testCompile 'junit:junit:4.12'
testCompile('org.spockframework:spock-core:1.1-groovy-2.4') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
}
tasks.withType(JavaCompile) {
sourceCompatibility = 1.6
targetCompatibility = 1.6
}
tasks.withType(GroovyCompile) {
sourceCompatibility = 1.6
targetCompatibility = 1.6
}
javadoc {
excludes = ['**/*.html', 'META-INF/**']
options.use = true
options.splitIndex = true
options.encoding = 'UTF-8'
options.author = true
options.version = true
options.windowTitle = "$project.name $project.version API"
options.docTitle = "$project.name $project.version API"
options.links = ['http://docs.oracle.com/javase/7/docs/api/']
}
task sourcesJar(type: Jar) {
group 'Build'
description 'An archive of the source code'
classifier 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
group 'Build'
description 'An archive of the javadoc'
classifier 'javadoc'
from javadoc.destinationDir
}
jar.finalizedBy sourcesJar
jar.finalizedBy javadocJar
artifacts {
sourcesJar
javadocJar
}
task publishRelease(dependsOn: [bintrayUpload, publishPlugins]) {}