-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
76 lines (61 loc) · 1.74 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
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'jstumpp' at '16.12.15 17:35' with Gradle 1.12
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at http://gradle.org/docs/1.12/userguide/tutorial_java_projects.html
*/
plugins {
id "org.jruyi.osgibnd" version "0.5.0"
}
// java plugin implied by the osgibnd plugin
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
group = 'com.github.unisens'
targetCompatibility = 1.6
sourceCompatibility = 1.6
version = '2.2.3'
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
}
//OSGI specific entries that are not automatically generated
jar {
manifest {
attributes (
'Bundle-SymbolicName': project.group + project.name,
'Bundle-Version': project.version,
'Export-Package': 'org.unisens'
)
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
task myJavadocs(type: Javadoc) {
exclude "**/ri/**"
source = sourceSets.main.allJava
}
configurations {
xsdTask
}
dependencies {
xsdTask group: 'xsddoc', name: 'xsddoc', version: '1.0'
xsdTask group: 'xalan', name: 'xalan', version: '2.7.2'
}
task myXsddoc(type: JavaExec) {
classpath configurations.xsdTask
group = "Execution"
description = "Create XSD documentation"
main = 'net.sf.xframe.xsddoc.Main'
//http://xframe.sourceforge.net/xsddoc/usage-console.html
args '-v', '-t', '"Unisens - a universal data format"', '-o', '"documentation/schema-doc"', 'src/main/resources/unisens.xsd'
}