From d36b39b34c431f2b2a782ce277fae46ffa8bf795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=E2=80=9CCLOVIS=E2=80=9D=20Canet?= Date: Mon, 10 Aug 2026 23:54:07 +0200 Subject: [PATCH] breaking(driver-sync-java): Move into a subpackage --- driver-sync-java/src/main/kotlin/JavaField.kt | 4 ++-- driver-sync-java/src/main/kotlin/KtMongo.kt | 4 +++- driver-sync-java/src/main/kotlin/Query.kt | 4 ++-- .../opensavvy/ktmongo/sync/{ => java}/SimpleJavaTest.java | 6 +++--- .../java/opensavvy/ktmongo/sync/{ => java}/Utilisateur.java | 4 ++-- 5 files changed, 12 insertions(+), 10 deletions(-) rename driver-sync-java/src/test/java/opensavvy/ktmongo/sync/{ => java}/SimpleJavaTest.java (94%) rename driver-sync-java/src/test/java/opensavvy/ktmongo/sync/{ => java}/Utilisateur.java (89%) diff --git a/driver-sync-java/src/main/kotlin/JavaField.kt b/driver-sync-java/src/main/kotlin/JavaField.kt index 27f351fa..5d93a77d 100644 --- a/driver-sync-java/src/main/kotlin/JavaField.kt +++ b/driver-sync-java/src/main/kotlin/JavaField.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2025, OpenSavvy and contributors. + * Copyright (c) 2025-2026, OpenSavvy and contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -package opensavvy.ktmongo.sync +package opensavvy.ktmongo.sync.java import com.github.meanbeanlib.mirror.Executables import com.github.meanbeanlib.mirror.SerializableLambdas diff --git a/driver-sync-java/src/main/kotlin/KtMongo.kt b/driver-sync-java/src/main/kotlin/KtMongo.kt index 60ba9a38..3b7d0564 100644 --- a/driver-sync-java/src/main/kotlin/KtMongo.kt +++ b/driver-sync-java/src/main/kotlin/KtMongo.kt @@ -14,13 +14,15 @@ * limitations under the License. */ -package opensavvy.ktmongo.sync +package opensavvy.ktmongo.sync.java import com.mongodb.client.MongoCollection import opensavvy.ktmongo.bson.official.BsonFactory import opensavvy.ktmongo.bson.official.types.Jvm import opensavvy.ktmongo.bson.types.ObjectIdGenerator import opensavvy.ktmongo.dsl.path.PropertyNameStrategy +import opensavvy.ktmongo.sync.SyncMongoCollection +import opensavvy.ktmongo.sync.asKtMongo import kotlin.reflect.KClass import kotlin.reflect.KClassifier import kotlin.reflect.KType diff --git a/driver-sync-java/src/main/kotlin/Query.kt b/driver-sync-java/src/main/kotlin/Query.kt index f1054e42..1cda7348 100644 --- a/driver-sync-java/src/main/kotlin/Query.kt +++ b/driver-sync-java/src/main/kotlin/Query.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2025, OpenSavvy and contributors. + * Copyright (c) 2025-2026, OpenSavvy and contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ @file:JvmName("Query") -package opensavvy.ktmongo.sync +package opensavvy.ktmongo.sync.java import opensavvy.ktmongo.dsl.options.Options import opensavvy.ktmongo.dsl.options.SortOptionDsl diff --git a/driver-sync-java/src/test/java/opensavvy/ktmongo/sync/SimpleJavaTest.java b/driver-sync-java/src/test/java/opensavvy/ktmongo/sync/java/SimpleJavaTest.java similarity index 94% rename from driver-sync-java/src/test/java/opensavvy/ktmongo/sync/SimpleJavaTest.java rename to driver-sync-java/src/test/java/opensavvy/ktmongo/sync/java/SimpleJavaTest.java index e934b60c..bb4d298b 100644 --- a/driver-sync-java/src/test/java/opensavvy/ktmongo/sync/SimpleJavaTest.java +++ b/driver-sync-java/src/test/java/opensavvy/ktmongo/sync/java/SimpleJavaTest.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package opensavvy.ktmongo.sync; +package opensavvy.ktmongo.sync.java; import com.mongodb.MongoTimeoutException; import com.mongodb.client.MongoClient; @@ -23,8 +23,8 @@ import kotlin.Unit; import org.bson.types.ObjectId; import org.junit.jupiter.api.Test; -import static opensavvy.ktmongo.sync.Query.filter; -import static opensavvy.ktmongo.sync.Query.options; +import static opensavvy.ktmongo.sync.java.Query.filter; +import static opensavvy.ktmongo.sync.java.Query.options; public class SimpleJavaTest { diff --git a/driver-sync-java/src/test/java/opensavvy/ktmongo/sync/Utilisateur.java b/driver-sync-java/src/test/java/opensavvy/ktmongo/sync/java/Utilisateur.java similarity index 89% rename from driver-sync-java/src/test/java/opensavvy/ktmongo/sync/Utilisateur.java rename to driver-sync-java/src/test/java/opensavvy/ktmongo/sync/java/Utilisateur.java index c1fc06b9..075cabfc 100644 --- a/driver-sync-java/src/test/java/opensavvy/ktmongo/sync/Utilisateur.java +++ b/driver-sync-java/src/test/java/opensavvy/ktmongo/sync/java/Utilisateur.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2025, OpenSavvy and contributors. + * Copyright (c) 2025-2026, OpenSavvy and contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -package opensavvy.ktmongo.sync; +package opensavvy.ktmongo.sync.java; import org.bson.codecs.pojo.annotations.BsonId; import org.bson.types.ObjectId; -- 2.51.2