-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
85 lines (68 loc) · 2.01 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'net.saliman:gradle-cobertura-plugin:2.2.4'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.5'
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.5-beta-6'
classpath 'org.codehaus.groovy:groovy-backports-compat23:2.3.6'
}
}
apply plugin: 'groovy'
apply plugin: 'codenarc'
apply plugin: 'cobertura'
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'com.github.hierynomus.license'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'build-dashboard'
// apply from: 'gradle/publish.gradle'
repositories {
jcenter()
}
dependencies {
compile gradleApi()
compile 'org.walkmod:walkmod-cmd:3.0.0'
testCompile('org.spockframework:spock-core:1.0-groovy-2.4') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
testRuntime 'cglib:cglib-nodep:3.2.0'
// Version of Gradle Wrapper
// testRuntime 'org.codehaus.groovy:groovy-all:2.4.4'
}
license {
header = rootProject.file('config/HEADER')
strictCheck = false
ignoreFailures = false
mapping {
java ='SLASHSTAR_STYLE'
groovy ='SLASHSTAR_STYLE'
}
ext.year = '2017'
excludes(['**/*.ad', '**/*.asciidoc', '**/*.adoc'])
}
cobertura {
coverageFormats = ['html', 'xml']
coverageSourceDirs = sourceSets.main.groovy.srcDirs
}
cobertura.coverageSourceDirs = sourceSets.main.groovy.srcDirs
codenarc {
configFile = file('config/codenarc/codenarc.groovy')
// run codenarc on production sources only
sourceSets = [project.sourceSets.main]
}
task sourceJar(type: Jar) {
group 'Build'
description 'An archive of the source code'
classifier 'sources'
from sourceSets.main.allSource
}
artifacts {
sourceJar
}
task wrapper(type: Wrapper) {
gradleVersion = '2.8'
}