diff --git a/selekt-android/build.gradle.kts b/selekt-android/build.gradle.kts index d1fc4670ff..1fc899e039 100644 --- a/selekt-android/build.gradle.kts +++ b/selekt-android/build.gradle.kts @@ -66,7 +66,7 @@ dependencies { compileOnly(androidX("room", "runtime", Versions.ANDROIDX_ROOM.version)) implementation(projects.selektAndroidSqlcipher) implementation(projects.selektJava) - implementation(projects.selektSqlite3) + implementation(projects.selektSqlite3Classes) kaptTest(androidX("room", "compiler", Versions.ANDROIDX_ROOM.version)) testImplementation(androidX("lifecycle", "livedata-ktx", Versions.ANDROIDX_LIVE_DATA.version)) testImplementation(androidX("room", "runtime", Versions.ANDROIDX_ROOM.version)) diff --git a/selekt-java/build.gradle.kts b/selekt-java/build.gradle.kts index 2bc1773228..cd06931462 100644 --- a/selekt-java/build.gradle.kts +++ b/selekt-java/build.gradle.kts @@ -57,7 +57,7 @@ val integrationTestRuntimeOnly: Configuration by configurations.getting { dependencies { implementation(projects.selektApi) - implementation(projects.selektSqlite3) + implementation(projects.selektSqlite3Classes) jmhImplementation(kotlinX("coroutines-core", version = Versions.KOTLINX_COROUTINES.version)) } diff --git a/selekt-sqlite3-classes/build.gradle.kts b/selekt-sqlite3-classes/build.gradle.kts new file mode 100644 index 0000000000..0ec748eafc --- /dev/null +++ b/selekt-sqlite3-classes/build.gradle.kts @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Bloomberg Finance L.P. + * + * 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. + */ + +repositories { + mavenCentral() +} + +plugins { + kotlin("jvm") + `maven-publish` + signing +} + +disableKotlinCompilerAssertions() + +java { + withJavadocJar() + withSourcesJar() +} + +publishing { + publications.register("main") { + from(components.getByName("java")) + pom { + commonInitialisation(project) + description.set("Selekt Java SQLite interface library.") + } + } +} diff --git a/selekt-sqlite3/src/main/resources/META-INF/proguard/consumer-rules.pro b/selekt-sqlite3-classes/resources/META-INF/proguard/consumer-rules.pro similarity index 100% rename from selekt-sqlite3/src/main/resources/META-INF/proguard/consumer-rules.pro rename to selekt-sqlite3-classes/resources/META-INF/proguard/consumer-rules.pro diff --git a/selekt-sqlite3/src/main/kotlin/com/bloomberg/selekt/ExternalSQLite3.kt b/selekt-sqlite3-classes/src/main/kotlin/com/bloomberg/selekt/ExternalSQLite3.kt similarity index 100% rename from selekt-sqlite3/src/main/kotlin/com/bloomberg/selekt/ExternalSQLite3.kt rename to selekt-sqlite3-classes/src/main/kotlin/com/bloomberg/selekt/ExternalSQLite3.kt diff --git a/selekt-sqlite3/src/main/kotlin/com/bloomberg/selekt/SQLCodes.kt b/selekt-sqlite3-classes/src/main/kotlin/com/bloomberg/selekt/SQLCodes.kt similarity index 100% rename from selekt-sqlite3/src/main/kotlin/com/bloomberg/selekt/SQLCodes.kt rename to selekt-sqlite3-classes/src/main/kotlin/com/bloomberg/selekt/SQLCodes.kt diff --git a/selekt-sqlite3/build.gradle.kts b/selekt-sqlite3/build.gradle.kts index 695a2c371c..db486ba2d0 100644 --- a/selekt-sqlite3/build.gradle.kts +++ b/selekt-sqlite3/build.gradle.kts @@ -18,14 +18,8 @@ import java.nio.file.Files import java.nio.file.Paths import java.util.Locale -repositories { - mavenCentral() -} - plugins { - kotlin("jvm") - `maven-publish` - signing + base } val cFlags = arrayOf( @@ -64,23 +58,6 @@ val cFlags = arrayOf( "-DSQLITE_USE_URI=1" ) -disableKotlinCompilerAssertions() - -java { - withJavadocJar() - withSourcesJar() -} - -publishing { - publications.register("main") { - from(components.getByName("java")) - pom { - commonInitialisation(project) - description.set("Selekt Java SQLite interface library.") - } - } -} - tasks.register("configureSqlCipher") { workingDir = File("$projectDir/src/main/external/sqlcipher") commandLine("./configure") diff --git a/settings.gradle.kts b/settings.gradle.kts index 63fdd258ba..efd9aab967 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -26,6 +26,7 @@ include(":selekt-android-sqlcipher") include(":selekt-api") include(":selekt-java") include(":selekt-sqlite3") +include(":selekt-sqlite3-classes") pluginManagement { repositories {