Skip to content

Commit

Permalink
use version catalog, bump dependency versions, and really bump to 0.6…
Browse files Browse the repository at this point in the history
….0-p2.
  • Loading branch information
atsushieno committed Aug 2, 2023
1 parent 283b574 commit 3e98459
Show file tree
Hide file tree
Showing 9 changed files with 139 additions and 108 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
plugins {
id "org.jetbrains.kotlin.multiplatform" version "1.7.20" apply false
id "org.jetbrains.kotlin.jvm" version "1.7.20" apply false
id "org.jetbrains.kotlin.multiplatform" version "1.8.20" apply false
id "org.jetbrains.kotlin.jvm" version "1.8.20" apply false
id "com.android.library" version "7.4.2" apply false
id "org.jetbrains.dokka" version "1.7.20" apply false
id "org.jetbrains.dokka" version "1.8.20" apply false
}

allprojects {
group = 'dev.atsushieno'
version = '0.6.0-preview1'
version = '0.6.0-preview2'

repositories {
google()
Expand Down
31 changes: 31 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[versions]
alsakt = "0.1.4.3"
core-ktx = "1.10.1"
jna = "5.12.1"
jnaerator-runtime = "0.12"
junit = "4.13.2"
kotlin-test-junit = "1.9.0"
kotlinx-coroutines-core = "1.7.0"
kotlinx-datetime = "0.4.0"
ktor-io = "2.3.0"
metalava-gradle = "0.2.3"
rtmidi-jna = "0.1.3"

[libraries]
alsakt = { module = "dev.atsushieno:alsakt", version.ref = "alsakt" }
core-ktx = { module = "androidx.core:core-ktx", version.ref = "core-ktx" }
jna = { module = "net.java.dev.jna:jna", version.ref = "jna" }
jnaerator-runtime = { module = "com.nativelibs4java:jnaerator-runtime", version.ref = "jnaerator-runtime" }
junit = { module = "junit:junit", version.ref = "junit" }
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin-test-junit" }
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines-core" }
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinx-coroutines-core" }
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinx-datetime" }
ktor-io = { module = "io.ktor:ktor-io", version.ref = "ktor-io" }
metalava-gradle = { module = "me.tylerbwong.gradle:metalava-gradle", version.ref = "metalava-gradle" }
rtmidi-jna = { module = "dev.atsushieno:rtmidi-jna", version.ref = "rtmidi-jna" }

[plugins]

[bundles]

16 changes: 8 additions & 8 deletions ktmidi-jvm-desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ plugins {

dependencies {
implementation project(":ktmidi")
implementation 'dev.atsushieno:alsakt:0.1.4.3'
implementation "dev.atsushieno:rtmidi-jna:0.1.3"
implementation 'net.java.dev.jna:jna:5.12.1'
implementation 'com.nativelibs4java:jnaerator-runtime:0.12'
implementation libs.alsakt
implementation libs.rtmidi.jna
implementation libs.jna
implementation libs.jnaerator.runtime

implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
implementation 'org.jetbrains.kotlinx:kotlinx-datetime:0.4.0'
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit:1.7.10'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4'
implementation libs.kotlinx.coroutines.core
implementation libs.kotlinx.datetime
testImplementation libs.kotlin.test.junit
testImplementation libs.kotlinx.coroutines.test
}

java {
Expand Down
8 changes: 4 additions & 4 deletions ktmidi-native-ext/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("io.ktor:ktor-io:2.1.0")
implementation(libs.kotlinx.coroutines.core)
implementation(libs.ktor.io)
implementation(project(":ktmidi"))
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4")
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.coroutines.test)
}
}
val nativeMain by getting
Expand Down
150 changes: 75 additions & 75 deletions ktmidi/api/ktmidi-api.txt

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions ktmidi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
maven("https://plugins.gradle.org/m2/")
}
dependencies {
classpath("me.tylerbwong.gradle:metalava-gradle:0.2.3")
classpath(libs.metalava.gradle)
}
}

Expand All @@ -15,7 +15,7 @@ plugins {
id("org.jetbrains.dokka")
id("maven-publish")
id("signing")
id("me.tylerbwong.gradle.metalava") version "0.2.3"
id("me.tylerbwong.gradle.metalava") version "0.3.3"
}

kotlin {
Expand All @@ -36,7 +36,7 @@ kotlin {
testTask {
useKarma {
useChromeHeadless()
webpackConfig.cssSupport.enabled = true
webpackConfig.cssSupport {}
}
}
}
Expand All @@ -58,29 +58,29 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0")
implementation("io.ktor:ktor-io:2.1.0")
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.datetime)
implementation(libs.ktor.io)
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4")
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.coroutines.test)
}
}
val jvmMain by getting
val androidMain by getting {
dependencies {
implementation("androidx.core:core-ktx:1.9.0")
implementation(libs.core.ktx)
}
}
val androidTest by getting {
dependencies {
implementation(kotlin("test-junit"))
implementation("junit:junit:4.13.2")
implementation(libs.junit)
}
}
val jvmTest by getting {
Expand Down
10 changes: 5 additions & 5 deletions player-sample-lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0")
implementation("io.ktor:ktor-io:2.1.0")
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.datetime)
implementation(libs.ktor.io)
implementation(project(":ktmidi"))
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4")
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.coroutines.test)
}
}
val jvmMain by getting {
Expand Down
2 changes: 1 addition & 1 deletion player-sample-native/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ kotlin {
sourceSets {
val nativeMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation(libs.kotlinx.coroutines.core)
implementation(project(":ktmidi"))
implementation(project(":player-sample-lib"))
}
Expand Down
2 changes: 1 addition & 1 deletion player-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4"
implementation libs.kotlinx.coroutines.core
implementation project(":ktmidi")
implementation project(":ktmidi-jvm-desktop")
implementation project(":player-sample-lib")
Expand Down

0 comments on commit 3e98459

Please sign in to comment.