-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
37 lines (30 loc) · 972 Bytes
/
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
apply plugin: 'java'
sourceCompatibility = 1.7
version = '1.0'
compileJava.options.encoding = 'UTF-8'
jar {
archiveName='TortoiseChecklist.jar';
manifest {
attributes 'Implementation-Title': 'TortoisePSP',
'Implementation-Version': version,
'main-class': 'de.tntinteractive.tortoisechecklist.TortoiseChecklist'
}
from sourceSets.main.allSource
}
repositories {
mavenCentral()
}
configurations {
classycle
}
dependencies {
compile 'com.puppycrawl.tools:checkstyle:8.35', 'com.google.code.findbugs:findbugs:2.0.3'
testCompile 'junit:junit:4.+', 'org.hamcrest:hamcrest-all:1.3'
classycle 'org.specs2:classycle:1.4.1'
}
task noCyclicDependencies(type: JavaExec) {
main = 'classycle.dependency.DependencyChecker'
classpath = configurations.classycle
args '-dependencies=check absenceOfPackageCycles > 1 in *', "${project.buildDir}/classes/java/main"
}
check.dependsOn noCyclicDependencies