-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
114 lines (95 loc) · 3.65 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
110
111
112
113
114
plugins {
id 'java'
id 'war'
}
repositories {
mavenCentral()
mavenLocal()
maven {
url = 'https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/m2repo'
}
// To obtain access to the Oracle Maven repository, put your credentials into environment variables:
// - MAVEN_ORACLE_USERNAME
// - MAVEN_ORACLE_PASSWORD
//
maven {
name 'maven.oracle.com'
url 'https://maven.oracle.com'
credentials {
username "${System.env.MAVEN_ORACLE_USERNAME}"
password "${System.env.MAVEN_ORACLE_PASSWORD}"
}
}
}
group = 'org.opencadc'
sourceCompatibility = 1.8
version = '1000'
war {
archiveFileName = 'tap##' + project.version + '.war'
}
configurations {
intTestCompile.extendsFrom testImplementation
intTestRuntime.extendsFrom testRuntimeOnly
implementation.exclude group: 'uk.ac.starlink'
}
dependencies {
implementation 'org.apache.logging.log4j:log4j-core:2.17.2'
implementation 'org.apache.logging.log4j:log4j-api:2.17.2'
implementation 'org.opencadc:cadc-access-control-identity:[1.0.7,)'
implementation 'org.opencadc:cadc-adql:1.1.13'
implementation 'org.opencadc:cadc-dali-pg:0.3.1'
implementation 'org.opencadc:cadc-log:1.2.1'
implementation 'org.opencadc:cadc-gms:[1.0.14,2.0)'
implementation 'org.opencadc:cadc-rest:1.3.20'
implementation 'org.opencadc:cadc-tap-schema:1.1.32'
implementation 'org.opencadc:cadc-tap-server:1.1.23'
implementation 'org.opencadc:cadc-tap-server-pg:1.0.5'
implementation 'org.opencadc:cadc-tap-server-oracle:1.2.11'
implementation 'org.opencadc:cadc-util:1.11.2'
implementation 'org.opencadc:cadc-uws:1.0.5'
implementation 'org.opencadc:cadc-uws-server:1.2.21'
implementation 'org.opencadc:cadc-vosi:1.4.6'
// Switch out this to use any supported database instead of PostgreSQL.
// ## START CUSTOM DATABASE ##
implementation group: 'com.mysql', name: 'mysql-connector-j', version: '8.4.0'
implementation group: 'org.postgresql', name: 'postgresql', version: '42.2.5'
// ## END CUSTOM DATABASE ##
testImplementation 'junit:junit:[4.0,)'
testImplementation 'xmlunit:xmlunit:[1.0,)'
implementation 'com.google.cloud:google-cloud-storage:1.48.0'
implementation 'software.amazon.awssdk:s3:2.17.230'
implementation 'software.amazon.awssdk:auth:2.17.230'
implementation 'org.apache.solr:solr-s3-repository:8.11.2'
// runtimeOnly 'org.opencadc:cadc-registry:[1.2.1,)'
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
// https://mvnrepository.com/artifact/org.antlr/ST4
implementation 'org.antlr:ST4:4.3.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
testClassesDirs = sourceSets.intTest.output.classesDirs
classpath = sourceSets.intTest.runtimeClasspath
// run the tests always
outputs.upToDateWhen { false }
}