-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdependencies.gradle
More file actions
132 lines (91 loc) · 3.91 KB
/
Copy pathdependencies.gradle
File metadata and controls
132 lines (91 loc) · 3.91 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
apply plugin:'maven-publish'
version '1.0' // default for now.
def libPath = "$fireflyPath/jars"
//project.ext.properties.each{ k, v -> println "${k}:${v}\n" }
repositories {
flatDir {
name 'firefly_repo'
dirs "$libPath/build",
"$libPath/starlink"
}
mavenCentral()
}
configurations {
webappLib {
description = 'web app runtime dependencies.'
canBeResolved = true
}
tests
}
dependencies {
// local jars (not in maven central)
implementation ':firefly_data'
// ============== from maven central ===============
// apache commons
implementation 'commons-io:commons-io:2.4', 'commons-lang:commons-lang:2.2', 'org.apache.commons:commons-csv:1.0', 'org.apache.commons:commons-compress:1.28.0'
// log4j
implementation 'org.apache.logging.log4j:log4j-core:2.25.4'
implementation 'org.apache.logging.log4j:log4j-slf4j2-impl:2.25.4'
// nom tam fits
implementation 'gov.nasa.gsfc.heasarc:nom-tam-fits:1.22.2'
// openidconnect
implementation ('net.minidev:json-smart:2.4.9')
implementation ('com.nimbusds:nimbus-jose-jwt:9.37.4') { transitive = false }
implementation ('com.googlecode.json-simple:json-simple:1.1.1') { transitive = false }
// Lettuce(Redis client); support Redis server version 2.6+ up to Redis 8.x
implementation 'io.lettuce:lettuce-core:7.0.0.RELEASE'
// ehcache
implementation ('org.ehcache:ehcache:3.11.0')
// java mail
implementation 'org.eclipse.angus:jakarta.mail:2.0.4'
// xstream
implementation ('com.thoughtworks.xstream:xstream:1.4.21')
// webdav includes httpclient 3.1
implementation 'org.apache.jackrabbit:jackrabbit-webdav:2.8.10'
// embedded db drivers
implementation 'org.hsqldb:hsqldb:2.7.1', 'com.h2database:h2:2.2.224', 'org.xerial:sqlite-jdbc:3.41.2.2'
// reflections used by SearchProcessorImpl annotation
implementation 'org.reflections:reflections:0.10.2'
// servlet API
implementation 'jakarta.servlet:jakarta.servlet-api:6.1.0'
// FileUpload Jakarta fork for servlet api 6.0+
implementation 'org.apache.commons:commons-fileupload2-jakarta-servlet6:2.0.0-M5'
// starlink
implementation ':starlink-registry-1.2+2016.05.03'
implementation ('uk.ac.starlink:stil:4.3.2')
// validation
implementation 'javax.validation:validation-api:1.1.0.Final'
// websocket
implementation 'jakarta.platform:jakarta.jakartaee-web-api:10.0.0'
// junit for java test
implementation 'junit:junit:4.12'
// duckdb - SQL support for parquet, csv, and tsv files
implementation 'org.duckdb:duckdb_jdbc:1.5.2.1'
// embedded redis server; version ~ 6.2
implementation 'com.github.codemonstur:embedded-redis:1.4.3'
// amazon s3 support
implementation 'software.amazon.awssdk:s3-transfer-manager:2.42.35'
// jackson serialization support, including msgpack
implementation "org.msgpack:jackson-dataformat-msgpack:0.9.11"
implementation "com.fasterxml.jackson.core:jackson-databind:2.21.2"
implementation "com.fasterxml.jackson.core:jackson-annotations:2.21"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.2"
// asdf
implementation 'org.asdf-format:asdf-core:0.1-alpha-10'
implementation 'edu.stsci:roman-datamodels:0.1-alpha-3'
// tomcat for standalone
}
task copyDependencies(dependsOn: jar) {
doLast {
def homePath = System.properties['user.home']
def publishDir = project.group.replaceAll("\\.", "/") + "/${project.name}/${project.version}"
def repoDir = file("${homePath}/.m2/repository/" + publishDir)
if (repoDir.exists()) repoDir.deleteDir() // clear out the old jars
copy {
from(configurations.runtimeClasspath)
into repoDir
}
println "Firefly local maven directory: ${repoDir}"
}
}
publishToMavenLocal.dependsOn(copyDependencies)