Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
.idea/inspectionProfiles
.idea/appInsightsSettings.xml

# Kotlin
.kotlin

# Created by https://www.toptal.com/developers/gitignore/api/macos,windows,android,intellij,androidstudio,xcode
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,windows,android,intellij,androidstudio,xcode

Expand Down
2 changes: 1 addition & 1 deletion build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ gradlePlugin {
}
}
kotlin {
jvmToolchain(11)
jvmToolchain(17)
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fun Project.configureMultiplatformLibrary() {
extensions.configure<KotlinMultiplatformExtension> {
pluginManager.withPlugin("com.android.library") {
// Android AAR
android {
androidTarget {
publishAllLibraryVariants()
}
}
Expand Down
67 changes: 27 additions & 40 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,23 @@ plugins {
}

subprojects {
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
}
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging.showStandardStreams = true
}
listOf(
"org.jetbrains.kotlin.android",
"org.jetbrains.kotlin.multiplatform",
).forEach {
pluginManager.withPlugin(it) {
extensions.configure<KotlinProjectExtension> {
jvmToolchain(17)
}
}
}
afterEvaluate {
// libs アクセスのための afterEvaluate
pluginManager.withPlugin(libs.plugins.kotlin.multiplatform.get().pluginId) {
extensions.configure<KotlinProjectExtension> {
jvmToolchain(11)
}
extensions.configure<KotlinMultiplatformExtension> {
sourceSets {
val commonTest by getting {
Expand All @@ -57,21 +59,6 @@ subprojects {
}
}
}
listOf(
"com.android.application",
"com.android.library"
).forEach {
pluginManager.withPlugin(it) {
extensions.configure<BaseExtension> {
compileOptions {
// Android JVM toolchain workarounds
// https://issuetracker.google.com/issues/260059413
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
}
}
if (!path.startsWith(":sample") && !path.endsWith(":test")) {
apply(plugin = "maven-publish")
apply(plugin = "signing")
Expand All @@ -81,8 +68,8 @@ subprojects {
version = libs.versions.kottage.get()
}
val emptyJavadocJar = tasks.create<Jar>("emptyJavadocJar") {
archiveClassifier.set("javadoc")
destinationDirectory.set(File(buildDir, "libs_emptyJavadoc"))
archiveClassifier = "javadoc"
destinationDirectory = File(buildDir, "libs_emptyJavadoc")
}
extensions.configure<PublishingExtension> {
afterEvaluate {
Expand All @@ -99,26 +86,26 @@ subprojects {
artifact(javadocJar)
artifactId = "${path.split(":").drop(1).joinToString("-")}$artifactSuffix"
pom {
name.set(artifactId)
description.set("Kotlin KVS Storage for Kotlin Multiplatform.")
url.set("https://github.com/irgaly/kottage")
name = artifactId
description = "Kotlin KVS Storage for Kotlin Multiplatform."
url = "https://github.com/irgaly/kottage"
developers {
developer {
id.set("irgaly")
name.set("irgaly")
email.set("irgaly@gmail.com")
id = "irgaly"
name = "irgaly"
email = "irgaly@gmail.com"
}
}
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
name = "The Apache License, Version 2.0"
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
scm {
connection.set("git@github.com:irgaly/kottage.git")
developerConnection.set("git@github.com:irgaly/kottage.git")
url.set("https://github.com/irgaly/kottage")
connection = "git@github.com:irgaly/kottage.git"
developerConnection = "git@github.com:irgaly/kottage.git"
url = "https://github.com/irgaly/kottage"
}
}
}
Expand Down Expand Up @@ -147,7 +134,7 @@ plugins.withType<NodeJsRootPlugin> {
val nodeExtension = this@configure
val nodeEnv = nodeExtension.requireConfigured()
val node = nodeEnv.nodeExecutable.replace(File.separator, "/")
val nodeDir = nodeEnv.nodeDir.path.replace(File.separator, "/")
val nodeDir = nodeEnv.dir.path.replace(File.separator, "/")
val nodeBinDir = nodeEnv.nodeBinDir.path.replace(File.separator, "/")
val npmCli = if (OperatingSystem.current().isWindows) {
"$nodeDir/node_modules/npm/bin/npm-cli.js"
Expand Down Expand Up @@ -184,9 +171,9 @@ nexusPublishing {
repositories {
sonatype {
// io.github.irgaly staging profile
stagingProfileId.set("6c098027ed608f")
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
stagingProfileId = "6c098027ed608f"
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
}
}
Expand Down
7 changes: 3 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
[versions]
kottage = "1.6.0"
kotlin = "1.9.23"
kotlin = "2.0.0"
kotlinx-coroutines = "1.8.0"
compose-compiler = "1.5.11"
kotest = "5.8.1"
kotest = "5.9.0"
gradle-android = "8.3.1"
gradle-android-compile-sdk = "34"
gradle-android-target-sdk = "34"
Expand All @@ -23,7 +22,6 @@ androidx-core = { module = "androidx.core:core-ktx", version = "1.12.0" }
androidx-appcompat = { module = "androidx.appcompat:appcompat", version = "1.6.1" }
androidx-lifecycle = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version = "2.7.0" }
compose-bom = { group = "androidx.compose", name = "compose-bom", version = "2024.04.00" }
compose-compiler = { module = "androidx.compose.compiler:compiler", version.ref = "compose-compiler" }
compose-material = { module = "androidx.compose.material:material" }
compose-material3 = { module = "androidx.compose.material3:material3" }
compose-uiTooling = { module = "androidx.compose.ui:ui-tooling" }
Expand Down Expand Up @@ -60,6 +58,7 @@ compose = ["compose-material", "compose-material3", "compose-uiTooling", "compos
[plugins]
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
android-application = { id = "com.android.application", version.ref = "gradle-android" }
android-library = { id = "com.android.library", version.ref = "gradle-android" }
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading