-
Notifications
You must be signed in to change notification settings - Fork 32
/
build.gradle
72 lines (65 loc) · 1.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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'findbugs'
apply plugin: 'checkstyle'
apply plugin: 'org.dm.bundle'
repositories {
mavenCentral()
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.dm.gradle:gradle-bundle-plugin:0.6.2'
}
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.5'
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-core:1.9.+'
testRuntime 'ch.qos.logback:logback-classic:1.1.2'
}
checkstyleMain {
configFile = file("tools/csMain.xml")
}
checkstyleTest {
configFile = file("tools/csTest.xml")
}
findbugs {
toolVersion = "3.+"
effort = "max"
reportLevel = "high"
}
findbugsMain {
reports {
xml.enabled = false
html.enabled = true
}
}
findbugsTest {
reports {
xml.enabled = false
html.enabled = true
}
}
// Workaround so that packageinfo files get included for OSGi package versions
sourceSets {
main {
resources.srcDirs = java.srcDirs
output.resourcesDir = output.classesDir
}
}
project.version = '2.2'
bundle {
instructions << [
'Bundle-Name' : 'JEBML',
'Bundle-Version': version,
'Bundle-License': 'LGPLv2',
'Export-Package': 'org.ebml.*;-split-package:=merge-first',
'Import-Package': '*;resolution:=optional',
'-nodefaultversion': true,
'-noee': true,
'majorMinor' : 1
]
}