forked from lsst-sqre/lsst-tap-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
109 lines (89 loc) · 3.35 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
plugins {
id 'war'
}
repositories {
mavenLocal()
jcenter()
// To obtain access to the Oracle Maven repository, put your credentials into environment variables:
// - MAVEN_ORACLE_USERNAME
// - MAVEN_ORACLE_PASSWORD
//
// or, create a gradle.properties in your ~/.gradle directory with the following variables set:
// - mavenOracleUsername
// - mavenOraclePassword
maven {
name 'maven.oracle.com'
url 'https://maven.oracle.com'
credentials {
username = System.getenv("MAVEN_ORACLE_USERNAME") ?: mavenOracleUsername
password = System.getenv("MAVEN_ORACLE_PASSWORD") ?: mavenOraclePassword
}
}
maven {
url = 'http://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/m2repo'
}
}
group = 'org.opencadc'
sourceCompatibility = 1.7
version = '1000'
war {
archiveName = 'tap##' + project.version + '.war'
}
configurations {
intTestCompile.extendsFrom testCompile
intTestRuntime.extendsFrom testRuntime
}
dependencies {
compile 'log4j:log4j:1.2.+'
compile 'com.oracle:ojdbc6:11.2.0.3'
compile 'com.google.cloud:google-cloud-storage:1.48.0'
compile 'org.restlet.jee:org.restlet.ext.servlet:2.0.3'
compile 'org.opencadc:cadc-tap-server-oracle:[1.0.0,)'
compile 'org.opencadc:cadc-tap-server:[1.1.5,)'
compile 'org.opencadc:cadc-adql:[1.1.4,)'
compile 'org.opencadc:cadc-vosi:[1.0.1,2.0)'
compile 'org.opencadc:cadc-util:[1.2.18,)'
compile 'org.opencadc:cadc-access-control-identity:[1.0.7,)'
// https://mvnrepository.com/artifact/org.postgresql/postgresql
compile group: 'org.postgresql', name: 'postgresql', version: '42.2.5'
// https://mvnrepository.com/artifact/mysql/mysql-connector-java
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.13'
// https://mvnrepository.com/artifact/com.facebook.presto/presto-jdbc
compile group: 'com.facebook.presto', name: 'presto-jdbc', version: '0.213'
implementation 'com.auth0:java-jwt:3.8.1'
runtime 'org.opencadc:cadc-registry:[1.2.1,)'
testCompile 'junit:junit:4.+'
testCompile 'org.opencadc:cadc-test-uws:[1.1.1,)'
testCompile 'org.opencadc:cadc-test-vosi:[1.0.2,)'
testCompile 'org.opencadc:cadc-test-tap:[1.1,)'
intTestCompile 'org.opencadc:cadc-test-uws:[1.1.1,)'
intTestCompile 'org.opencadc:cadc-test-vosi:[1.0.2,)'
intTestCompile 'org.opencadc:cadc-test-tap:[1.1,)'
}
sourceSets {
intTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/intTest/java')
}
// set the intTest resource directory
resources.srcDir file('src/intTest/resources')
}
}
tasks.withType(Test) {
// reset the report destinations so that intTests go to their
// own page
//reports.html.destination = file("${reporting.baseDir}/${name}")
reports.html.destination = file(reporting.baseDir.getAbsolutePath() + '/' + name)
// Assign all Java system properties from
// the command line to the tests
systemProperties System.properties as Map<String, ?>
}
task intTest(type: Test) {
// set the configuration context
testClassesDir = sourceSets.intTest.output.classesDir
classpath = sourceSets.intTest.runtimeClasspath
// run the tests always
outputs.upToDateWhen { false }
}