-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
570 lines (534 loc) · 19.6 KB
/
build.sbt
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
/*
* Copyright © 2005 - 2021 Schlichtherle IT Services
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import BuildSettings._
import Dependencies._
lazy val root: Project = project
.in(file("."))
.aggregate(access, accessSwing, comp, driver, ext, it, kernel, profile, samples)
.settings(releaseSettings)
.settings(aggregateSettings)
.settings(name := "TrueVFS")
lazy val access: Project = project
.in(file("truevfs-access"))
.dependsOn(driverFile % Runtime, kernelImpl % "compile;runtime->runtime")
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides convenient access to the (federated virtual) file system space for TrueVFS client applications.
|Features simple, uniform, transparent, thread-safe, read/write access to archive files as if they were virtual directories in a file system path.""".stripMargin,
libraryDependencies ++= Seq(
JunitInterface % Test,
MockitoCore % Test,
Scalacheck % Test,
Scalatest % Test,
Slf4jSimple % Test,
TrueCommonsServices,
),
name := "TrueVFS Access",
normalizedName := "truevfs-access"
)
lazy val accessSwing: Project = project
.in(file("truevfs-access-swing"))
.dependsOn(access % "compile;runtime->runtime")
.settings(javaLibrarySettings)
.settings(
description :=
"""This module provides Swing GUI classes for viewing file trees and choosing entries in archive files.""".stripMargin,
name := "TrueVFS Access Swing",
normalizedName := "truevfs-access-swing"
)
lazy val comp: Project = project
.in(file("truevfs-comp"))
.aggregate(
compIbm437,
compInst,
compJmx,
compTarDriver,
compZip,
compZipDriver
)
.settings(aggregateSettings)
.settings(name := "TrueVFS Component")
lazy val compIbm437: Project = project
.in(file("truevfs-comp/truevfs-comp-ibm437"))
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides the IBM437 character set alias CP437 for use with genuine ZIP files.
|Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.""".stripMargin,
libraryDependencies ++= Seq(
FindbugsAnnotations,
JunitInterface % Test,
Scalatest % Test,
ServiceWightAnnotation,
),
name := "TrueVFS Component IBM437",
normalizedName := "truevfs-comp-ibm437"
)
lazy val compInst: Project = project
.in(file("truevfs-comp/truevfs-comp-inst"))
.dependsOn(kernelSpec)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides basic functionality for instrumenting the TrueVFS Kernel.""".stripMargin,
name := "TrueVFS Component Instrumentation",
normalizedName := "truevfs-comp-inst"
)
lazy val compJmx: Project = project
.in(file("truevfs-comp/truevfs-comp-jmx"))
.dependsOn(compInst)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides basic functionality for instrumenting the TrueVFS Kernel with JMX.""".stripMargin,
libraryDependencies ++= Seq(
JunitInterface % Test,
Scalatest % Test,
Slf4jSimple % Test,
TrueCommonsJMX
),
name := "TrueVFS Component JMX",
normalizedName := "truevfs-comp-jmx"
)
lazy val compTarDriver: Project = project
.in(file("truevfs-comp/truevfs-comp-tardriver"))
.dependsOn(kernelSpec)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides basic drivers for reading and writing TAR files.""".stripMargin,
libraryDependencies ++= Seq(
CommonsCompress
),
name := "TrueVFS Component TarDriver",
normalizedName := "truevfs-comp-tardriver"
)
lazy val compZip: Project = project
.in(file("truevfs-comp/truevfs-comp-zip"))
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides basic functionality for reading and writing ZIP files.""".stripMargin,
libraryDependencies ++= Seq(
BcprovJdk15on,
CommonsCompress,
FindbugsAnnotations,
JunitInterface % Test,
Scalatest % Test,
TrueCommonsIO,
TrueCommonsIO % Test classifier "tests",
TrueCommonsKeySpec,
TrueCommonsShed,
TrueCommonsShed % Test classifier "tests"
),
name := "TrueVFS Component ZIP",
normalizedName := "truevfs-comp-zip"
)
lazy val compZipDriver: Project = project
.in(file("truevfs-comp/truevfs-comp-zipdriver"))
.dependsOn(compZip, kernelSpec)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides basic drivers for reading and writing ZIP files.""".stripMargin,
name := "TrueVFS Component ZipDriver",
normalizedName := "truevfs-comp-zipdriver"
)
lazy val driver: Project = project
.in(file("truevfs-driver"))
.aggregate(
driverFile,
driverHttp,
driverJar,
driverOdf,
driverSfx,
driverTar,
driverTarBzip2,
driverTarGzip,
driverTarXz,
driverZip,
driverZipRaes
)
.settings(aggregateSettings)
.settings(name := "TrueVFS Driver")
lazy val driverFile: Project = project
.in(file("truevfs-driver/truevfs-driver-file"))
.dependsOn(kernelSpec)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides a file system driver for accessing the platform file system.
|Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.""".stripMargin,
libraryDependencies ++= Seq(
JunitInterface % Test,
Slf4jSimple % Test
),
name := "TrueVFS Driver FILE",
normalizedName := "truevfs-driver-file"
)
lazy val driverHttp: Project = project
.in(file("truevfs-driver/truevfs-driver-http"))
.dependsOn(kernelSpec)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides a file system driver for read-only access to the web.
|Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.""".stripMargin,
libraryDependencies ++= Seq(
Httpclient,
JclOverSlf4j % Runtime
),
name := "TrueVFS Driver HTTP(S)",
normalizedName := "truevfs-driver-http"
)
lazy val driverJar: Project = project
.in(file("truevfs-driver/truevfs-driver-jar"))
.dependsOn(compZipDriver)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides a file system driver for accessing the JAR file format.
|Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.""".stripMargin,
name := "TrueVFS Driver JAR",
normalizedName := "truevfs-driver-jar"
)
lazy val driverOdf: Project = project
.in(file("truevfs-driver/truevfs-driver-odf"))
.dependsOn(compZipDriver)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides a file system driver for accessing the Open Document File format.
|Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.""".stripMargin,
name := "TrueVFS Driver ODF",
normalizedName := "truevfs-driver-odf"
)
lazy val driverSfx: Project = project
.in(file("truevfs-driver/truevfs-driver-sfx"))
.dependsOn(compZipDriver)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides a file system driver for read-only access to the SelF eXtracting ZIP file format, alias SFX.
|Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.""".stripMargin,
name := "TrueVFS Driver SFX",
normalizedName := "truevfs-driver-sfx"
)
lazy val driverTar: Project = project
.in(file("truevfs-driver/truevfs-driver-tar"))
.dependsOn(compTarDriver)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides a file system driver for accessing the TAR file format.
|Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.""".stripMargin,
name := "TrueVFS Driver TAR",
normalizedName := "truevfs-driver-tar"
)
lazy val driverTarBzip2: Project = project
.in(file("truevfs-driver/truevfs-driver-tar-bzip2"))
.dependsOn(compTarDriver)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides a file system driver for accessing the BZIP2 compressed TAR file format.
|Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.""".stripMargin,
name := "TrueVFS Driver TAR.BZIP2",
normalizedName := "truevfs-driver-tar-bzip2"
)
lazy val driverTarGzip: Project = project
.in(file("truevfs-driver/truevfs-driver-tar-gzip"))
.dependsOn(compTarDriver)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides a file system driver for accessing the GZIP compressed TAR file format.
|Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.""".stripMargin,
name := "TrueVFS Driver TAR.GZIP",
normalizedName := "truevfs-driver-tar-gzip"
)
lazy val driverTarXz: Project = project
.in(file("truevfs-driver/truevfs-driver-tar-xz"))
.dependsOn(compTarDriver)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides a file system driver for accessing the XZ compressed TAR file format.
|Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.""".stripMargin,
libraryDependencies ++= Seq(
Xz
),
name := "TrueVFS Driver TAR.XZ",
normalizedName := "truevfs-driver-tar-xz"
)
lazy val driverZip: Project = project
.in(file("truevfs-driver/truevfs-driver-zip"))
.dependsOn(compIbm437 % Runtime, compZipDriver)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides a file system driver for accessing the ZIP file format.
|Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.""".stripMargin,
name := "TrueVFS Driver ZIP",
normalizedName := "truevfs-driver-zip"
)
lazy val driverZipRaes: Project = project
.in(file("truevfs-driver/truevfs-driver-zip-raes"))
.dependsOn(compZipDriver)
.settings(javaLibrarySettings)
.settings(
description :=
"""Provides a file system driver for accessing the RAES encrypted ZIP file format, alias ZIP.RAES or TZP.
|Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.""".stripMargin,
name := "TrueVFS Driver ZIP.RAES",
normalizedName := "truevfs-driver-zip-raes"
)
lazy val ext: Project = project
.in(file("truevfs-ext"))
.aggregate(extInsight, extLogging, extPacemaker)
.settings(aggregateSettings)
.settings(name := "TrueVFS Extension")
lazy val extInsight: Project = project
.in(file("truevfs-ext/truevfs-ext-insight"))
.dependsOn(compJmx)
.settings(javaLibrarySettings)
.settings(
description :=
"""Instruments the TrueVFS Kernel for statistics monitoring via JMX.
|Add the JAR artifact of this module to the run time class path to make its services available for service location in the client API modules.""".stripMargin,
libraryDependencies ++= Seq(
FunIoBIOS % Test,
Lombok % Provided,
JunitInterface % Test,
Scalatest % Test
),
name := "TrueVFS Extension Insight",
normalizedName := "truevfs-ext-insight"
)
lazy val extLogging: Project = project
.in(file("truevfs-ext/truevfs-ext-logging"))
.dependsOn(compInst)
.settings(javaLibrarySettings)
.settings(
description :=
"""Instruments the TrueVFS Kernel for logging via SLF4J.
|Add the JAR artifact of this module to the run time class path to make its services available for service location in the client API modules.""".stripMargin,
libraryDependencies ++= Seq(
Lombok % Provided,
TrueCommonsLogging,
),
name := "TrueVFS Extension Logging",
normalizedName := "truevfs-ext-logging"
)
lazy val extPacemaker: Project = project
.in(file("truevfs-ext/truevfs-ext-pacemaker"))
.dependsOn(compJmx)
.settings(javaLibrarySettings)
.settings(
description :=
"""Constraints the number of concurrently mounted archive file systems in order to save some heap space.
|Provides a JMX interface for monitoring and management.
|Add the JAR artifact of this module to the run time class path to make its services available for service location in the client API modules.""".stripMargin,
libraryDependencies ++= Seq(
JunitInterface % Test,
Lombok % Provided,
MockitoCore % Test,
Scalacheck % Test,
Scalatest % Test,
Slf4jSimple % Test
),
name := "TrueVFS Extension Pacemaker",
normalizedName := "truevfs-ext-pacemaker"
)
lazy val it: Project = project
.in(file("truevfs-it"))
.dependsOn(
access % "compile;runtime->runtime",
driverFile,
driverHttp,
driverJar,
driverOdf,
driverSfx,
driverTar,
driverTarBzip2,
driverTarGzip,
driverTarXz,
driverZip % "compile;runtime->runtime",
driverZipRaes,
).settings(scalaLibrarySettings)
.settings(
description :=
"""Provides integration tests for TrueVFS.""".stripMargin,
libraryDependencies ++= Seq(
FunIoBIOS % Test,
FunIoScalaApi % Test,
JunitInterface % Test,
MockitoCore % Test,
Scalacheck % Test,
Scalatest % Test,
Slf4jSimple % Test,
TrueCommonsIO % Test classifier "" classifier "tests",
TrueCommonsKeyDefault % Test,
TrueCommonsKeySpec % Test classifier "" classifier "tests",
TrueCommonsShed % Test classifier "" classifier "tests"
),
name := "TrueVFS Integration Tests",
normalizedName := "truevfs-it",
publishArtifact := false
)
lazy val kernel: Project = project
.in(file("truevfs-kernel"))
.aggregate(kernelImpl, kernelSpec)
.settings(aggregateSettings)
.settings(name := "TrueVFS Kernel")
lazy val kernelImpl: Project = project
.in(file("truevfs-kernel/truevfs-kernel-impl"))
.dependsOn(kernelSpec)
.settings(javaLibrarySettings)
.settings(
description :=
"""Implements the API for accessing the federated virtual file system space.
|You can override it by providing another file system manager factory implementation with a higher priority on the class path.""".stripMargin,
libraryDependencies ++= Seq(
Bali % Provided,
JunitInterface % Test,
Lombok % Provided,
MockitoCore % Test,
Scalatest % Test,
Slf4jSimple % Test,
TrueCommonsLogging,
TrueCommonsShed % Test classifier "" classifier "tests"
),
name := "TrueVFS Kernel Implementation",
normalizedName := "truevfs-kernel-impl"
)
lazy val kernelSpec: Project = project
.in(file("truevfs-kernel/truevfs-kernel-spec"))
.settings(javaLibrarySettings)
.settings(
description :=
"""Specifies the API for accessing the federated virtual file system space.
|Provides a service provider API for a singleton file system manager, an I/O buffer pool and a file system driver map.""".stripMargin,
libraryDependencies ++= Seq(
Bali % Provided,
FindbugsAnnotations,
JunitInterface % Test,
ServiceWightCore,
Slf4jSimple % Test,
TrueCommonsCIO,
TrueCommonsIO,
),
name := "TrueVFS Kernel Specification",
normalizedName := "truevfs-kernel-spec"
)
lazy val profile: Project = project
.in(file("truevfs-profile"))
.aggregate(profileBase, profileDefault, profileFull)
.settings(aggregateSettings)
.settings(name := "TrueVFS Profile")
lazy val profileBase: Project = project
.in(file("truevfs-profile/truevfs-profile-base"))
.dependsOn(
accessSwing % "compile;runtime->runtime",
driverJar % Runtime,
driverZip % "runtime->runtime",
kernelImpl % Runtime
).settings(javaLibrarySettings)
.settings(
description :=
"""Bundles dependencies to support the most prominent use cases.
|Provides the file system drivers for JAR and ZIP.""".stripMargin,
libraryDependencies ++= Seq(
TrueCommonsKeyConsole % Runtime,
TrueCommonsKeyDefault % Runtime,
TrueCommonsKeySwing % Runtime
),
name := "TrueVFS Profile Base",
normalizedName := "truevfs-profile-base"
)
lazy val profileDefault: Project = project
.in(file("truevfs-profile/truevfs-profile-default"))
.dependsOn(
driverHttp % Runtime,
driverOdf % Runtime,
driverTar % Runtime,
driverTarBzip2 % Runtime,
driverTarGzip % Runtime,
driverTarXz % Runtime,
driverZipRaes % Runtime,
profileBase % "compile;runtime->runtime"
).settings(javaLibrarySettings)
.settings(
description :=
"""Bundles dependencies to support accessing all TrueVFS features without the slight negative performance impact of some excluded modules.
|Depends on the base configuration profile and adds the file system drivers for HTTP(S), ODF, TAR, TAR.BZIP2, TAR.GZIP, TAR.XZ and ZIP.RAES.""".stripMargin,
libraryDependencies ++= Seq(
TrueCommonsKeyMacosx % Runtime
),
name := "TrueVFS Profile Default",
normalizedName := "truevfs-profile-default"
)
lazy val profileFull: Project = project
.in(file("truevfs-profile/truevfs-profile-full"))
.dependsOn(
driverSfx % Runtime,
extInsight % Runtime,
extLogging % Runtime,
extPacemaker % Runtime,
profileDefault % "compile;runtime->runtime"
).settings(javaLibrarySettings)
.settings(
description :=
"""Bundles dependencies to support all TrueVFS features.
|Should not be used in production environments because of its slightly negative performance impact.
|Depends on the default configuration profile and adds the file system driver for SFX and the extensions Insight, Logging and Pacemaker.""".stripMargin,
libraryDependencies ++= Seq(
TrueCommonsKeyHurlfb % Runtime
),
name := "TrueVFS Profile Full",
normalizedName := "truevfs-profile-full"
)
lazy val samples: Project = project
.in(file("truevfs-samples"))
.dependsOn(
access % "compile;runtime->runtime",
driverHttp % Runtime,
driverJar,
driverOdf % Runtime,
driverSfx,
driverTar,
driverTarBzip2,
driverTarGzip,
driverTarXz,
driverZip % "compile;runtime->runtime",
driverZipRaes,
kernelImpl % Runtime
).settings(javaLibrarySettings)
.settings(
description :=
"""Sample applications to demonstrate the usage of TrueVFS modules to support many, even esoteric use cases.""".stripMargin,
libraryDependencies ++= Seq(
Slf4jSimple % Runtime,
TrueCommonsKeyConsole % Runtime,
TrueCommonsKeyDefault % Runtime,
TrueCommonsKeyHurlfb % Runtime,
TrueCommonsKeyMacosx % Runtime,
TrueCommonsKeySwing % Runtime
),
name := "TrueVFS Samples",
normalizedName := "truevfs-samples"
)