-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
58 lines (42 loc) · 1.17 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
plugins {
id 'java'
id 'checkstyle'
id "com.github.eerohele.saxon-gradle" version "0.2.1"
}
repositories {
mavenCentral()
mavenLocal()
}
sourceCompatibility = 1.8
group = 'org.opencadc'
version = '2.4'
jar {
enabled = true
}
defaultTasks 'build', 'xslt'
task initHTML(type: Copy) {
project.mkdir('build/html')
from 'src/main/resources'
into 'build/html'
include '**/*.png'
include '**-profile.html'
}
xslt {
dependsOn initHTML
stylesheet file('src/main/xsl/vo-dml2html.xsl')
input file('src/main/resources/CAOM-' + project.version + '-vodml.xml')
output file('build/html/index.html')
parameters(
project_name: 'Common Archive Observation Model',
preamble: '../resources/preamble.html', // relative to stylesheet apparently
abstract: '../resources/abstract.html',
status: '../resources/status.html',
acknowledgment: '../resources/acknowledgment.html',
graphviz_png: 'CAOM-' + project.version + '.png'
)
}
dependencies {
testCompile 'org.opencadc:cadc-vodml:[1.0.9,1.1)'
testCompile 'junit:junit:4.13'
}
apply from: 'opencadc.gradle'