@@ -19,13 +19,17 @@ export GUAVA_FAILUREACCESS_VERSION ?= 1.0.3-jpms
19
19
export REACTIVE_STREAMS_VERSION ?= 1.0.5-SNAPSHOT
20
20
export PROTOBUF_VERSION ?= 4.27.0-SNAPSHOT
21
21
export GEANTYREF_VERSION ?= 1.3.16-SNAPSHOT
22
+ export KOTLINX_COLLECTIONS_VERSION ?= 0.4.1
23
+ export KOTLINX_COLLECTIONS_POSTFIX ?= SNAPSHOT
22
24
else
23
25
export CHECKER_FRAMEWORK_VERSION ?= 3.43.0-SNAPSHOT
24
26
export GUAVA_VERSION ?= 33.0.0-jre-jpms
25
27
export GUAVA_FAILUREACCESS_VERSION ?= 1.0.3-jpms
26
28
export REACTIVE_STREAMS_VERSION ?= 1.0.5-jpms
27
29
export PROTOBUF_VERSION ?= 4.26.0-jpms
28
30
export GEANTYREF_VERSION ?= 1.3.15-jpms
31
+ export KOTLINX_COLLECTIONS_VERSION ?= 0.4.1
32
+ export KOTLINX_COLLECTIONS_POSTFIX ?= jpms
29
33
endif
30
34
31
35
export PROJECT ?= $(shell pwd)
@@ -34,7 +38,7 @@ export DEV_BIN ?= $(DEV_ROOT)/bin
34
38
export LIBS ?= $(PROJECT ) /libs
35
39
export PROJECT_PATH ?= $(DEV_BIN ) :$(shell echo $$PATH)
36
40
37
- DEPS ?= com.google.guava com.google.errorprone com.google.j2objc org.checkerframework org.reactivestreams com.google.protobuf io.leangen.geantyref
41
+ DEPS ?= com.google.guava com.google.errorprone com.google.j2objc org.checkerframework org.reactivestreams com.google.protobuf io.leangen.geantyref kotlinx.collections.immutable
38
42
POSIX_FLAGS ?=
39
43
40
44
ifeq ($(VERBOSE ) ,yes)
@@ -394,7 +398,7 @@ endif
394
398
@echo "Protobuf ready."
395
399
396
400
#
397
- # Library: Checker Framework ---------------------------------------------------------------
401
+ # Library: Geantyref -------- ---------------------------------------------------------------
398
402
399
403
geantyref : io.leangen.geantyref # # Build Geantyref reflection library.
400
404
io.leangen.geantyref : $(BUILD_DEPS ) io.leangen.geantyref/target
@@ -419,7 +423,21 @@ ifeq ($(SNAPSHOT),no)
419
423
endif
420
424
421
425
#
422
- # Testing: Google GSON ---------------------------------------------------------------------
426
+ # Library: KotlinX Collections Immutable ---------------------------------------------------
427
+
428
+ kotlinx-collections : kotlinx.collections.immutable # # Build KotlinX Immutable Collections.
429
+ kotlinx.collections.immutable : $(BUILD_DEPS ) kotlinx.collections.immutable/core/build
430
+ kotlinx.collections.immutable/core/build :
431
+ $(info Building KotlinX Immutable Collections...)
432
+ $(RULE ) cd kotlinx.collections.immutable \
433
+ && $(GRADLE ) \
434
+ -Pversion=$(KOTLINX_COLLECTIONS_VERSION ) \
435
+ -PversionSuffix=$(KOTLINX_COLLECTIONS_POSTFIX ) \
436
+ kotlinx-collections-immutable:publishAllPublicationsToJpmsRepository
437
+ @echo " KotlinX Immutable Collections ready."
438
+
439
+ #
440
+ # Testing: Integration ---------------------------------------------------------------------
423
441
424
442
tests-gson : # # Build GSON against local libraries.
425
443
$(RULE )$(MAKE ) -C tests/integration gson
@@ -481,6 +499,7 @@ $(LIBS):
481
499
com.google.guava/guava/target/* .jar \
482
500
com.google.protobuf/bazel-bin/java/* /amended_* _mvn-project.jar \
483
501
io.leangen.geantyref/target/* .jar \
502
+ kotlinx.collections.immutable/build/libs/* .jar \
484
503
org.checkerframework/checker-qual/build/libs/* .jar \
485
504
org.reactivestreams/api/build/libs/* .jar \
486
505
$(LIBS )
@@ -504,6 +523,7 @@ git-add:
504
523
repository/com/google/errorprone \
505
524
repository/com/google/protobuf \
506
525
repository/io/leangen/geantyref \
526
+ repository/kotlinx \
507
527
repository/org/checkerframework \
508
528
repository/org/reactivestreams \
509
529
repository/dev/javamodules
@@ -521,6 +541,8 @@ clean: ## Clean all built targets.
521
541
org.checkerframework/* /build \
522
542
org.reactivestreams/* /build \
523
543
io.leangen.geantyref/target \
544
+ kotlinx.collections.immutable/build \
545
+ kotlinx.collections.immutable/* /build \
524
546
samples/gradle-platform/app/build \
525
547
samples/modular-guava/app/build \
526
548
samples/modular-guava-repo/app/build \
0 commit comments