-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.gradle
86 lines (73 loc) · 2.1 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
buildscript {
repositories {
jcenter()
}
dependencies {
}
}
plugins {
id 'com.jfrog.bintray' version '1.3.1'
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'pmd'
group = 'org.incava'
version ='1.6.3'
mainClassName = 'org.incava.diffj.app.DiffJ'
ext {
pkgName = 'diffj'
pkgDesc = 'Java code comparison'
githubRepo = 'github.com/jpace/diffj'
pkgLicense = 'Apache-2.0'
pkgLicenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
devInfo = {
id 'jpace'
name 'Jeff Pace'
url 'https://github.com/jpace'
email 'jeugenepace@gmail'
}
bintrayUser = System.getenv('BINTRAY_USER')
bintrayKey = System.getenv('BINTRAY_API_KEY')
mavenUserToken = System.getenv('MAVEN_USER_TOKEN')
mavenUserPass = System.getenv('MAVEN_USER_PASS')
deployDryRun = false
}
apply from: 'deploy.gradle'
dependencies {
compile files('libs/pmdx-3.0.0.jar')
// compile files('libs/ijdk-3.4.3.jar')
// compile files('libs/qualog-2.2.0.jar')
compile files('libs/ijdk-3.9.0.jar')
compile files('libs/qualog-3.0.0.jar')
compile files('libs/jagol-1.1.0.jar')
compile files('libs/java-diff-1.0.0.jar')
testCompile group: 'junit', name: 'junit', version: '4.10'
testCompile group: 'pl.pragmatists', name: 'JUnitParams', version: '1.0.6'
testCompile 'org.incava:attest:[0.0.4,)'
testCompile 'org.hamcrest:hamcrest-library:[1.3,)'
}
allprojects {
tasks.withType(JavaCompile).all { JavaCompile compile ->
compile.options.debug = true
compile.options.compilerArgs = ['-Xlint:all']
}
}
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest { attributes 'Main-Class' : 'org.incava.diffj.app.DiffJ' }
}
test {
excludes = [ '**/*TestCase*', '**/.#*', '**/ItemsTest.class', '**/OutputTest.class' ]
includes = [ '**/*Test*' ]
testLogging {
exceptionFormat = "full"
}
}
logging.captureStandardOutput LogLevel.ERROR
// -- PMD configuration --
configurations {
pmdConf
}
dependencies {
pmdConf 'pmd:pmd:4.2.5'
}