-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
70 lines (62 loc) · 1.65 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
group = 'org.oficina24x7'
description = 'Recipient Exceptions'
version = '1.0.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'checkstyle'
sourceCompatibility = 1.5
targetCompatibility = 1.5
jar {
manifest {
attributes 'Implementation-Title': description,
'Implementation-Version': version
}
}
repositories {
mavenCentral()
maven { url "http://repo.spring.io/release" }
}
checkstyle {
configFile file('google_checks.xml')
toolVersion '7.1'
showViolations = true
}
configurations.all {
//Using SLF4J
exclude group: "commons-logging", module: "commons-logging"
}
dependencies {
testCompile("junit:junit:4.12")
}
//Maven compatibility task:
task writePom {
doLast {
pom {
project {
inceptionYear '2016'
properties {
"project.build.sourceEncoding" "UTF-8"
"checkstyle.config.location" "google_checks.xml"
"checkstyle.consoleOutput" "true"
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
reporting {
plugins {
plugin {
groupId "org.apache.maven.plugins"
artifactId "maven-checkstyle-plugin"
version "2.17"
}
}
}
}
}.writeTo("pom.xml")
}
}