Skip to content

Commit 850e7ed

Browse files
authored
Bump dependencies to latest stable versions (#52)
1 parent 33f82ba commit 850e7ed

File tree

16 files changed

+57
-460
lines changed

16 files changed

+57
-460
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,23 @@ jobs:
4646
uses: actions/[email protected]
4747
with:
4848
distribution: 'zulu'
49-
java-version: 11
49+
java-version: 17
5050

5151
- name: Run macOS Tests
5252
if: matrix.os == 'macos-latest'
5353
run: >
5454
./gradlew check --stacktrace
55-
-PKMP_TARGETS="JVM,JS,IOS_ARM32,IOS_ARM64,IOS_X64,IOS_SIMULATOR_ARM64,MACOS_ARM64,MACOS_X64,TVOS_ARM64,TVOS_X64,TVOS_SIMULATOR_ARM64,WATCHOS_ARM32,WATCHOS_ARM64,WATCHOS_DEVICE_ARM64,WATCHOS_X64,WATCHOS_X86,WATCHOS_SIMULATOR_ARM64,WASM,WASM_32"
55+
-PKMP_TARGETS="JVM,JS,IOS_ARM64,IOS_X64,IOS_SIMULATOR_ARM64,MACOS_ARM64,MACOS_X64,TVOS_ARM64,TVOS_X64,TVOS_SIMULATOR_ARM64,WATCHOS_ARM32,WATCHOS_ARM64,WATCHOS_DEVICE_ARM64,WATCHOS_X64,WATCHOS_SIMULATOR_ARM64,WASM_JS,WASM_WASI"
5656
- name: Run Linux Tests
5757
if: matrix.os == 'ubuntu-latest'
5858
run: >
5959
./gradlew check --stacktrace
60-
-PKMP_TARGETS="JVM,JS,ANDROID_ARM32,ANDROID_ARM64,ANDROID_X64,ANDROID_X86,LINUX_ARM32HFP,LINUX_ARM64,LINUX_MIPS32,LINUX_MIPSEL32,LINUX_X64,WASM,WASM_32"
60+
-PKMP_TARGETS="JVM,JS,ANDROID,ANDROID_ARM32,ANDROID_ARM64,ANDROID_X64,ANDROID_X86,LINUX_ARM64,LINUX_X64,WASM_JS,WASM_WASI"
6161
- name: Run Windows Tests
6262
if: matrix.os == 'windows-latest'
6363
run: >
6464
./gradlew check --stacktrace
65-
-PKMP_TARGETS="JVM,JS,MINGW_X64,MINGW_X86,WASM,WASM_32"
65+
-PKMP_TARGETS="JVM,JS,MINGW_X64,WASM_JS,WASM_WASI"
6666
6767
emulator:
6868
runs-on: macos-latest

.kotlin-js-store/yarn.lock

Lines changed: 13 additions & 423 deletions
Large diffs are not rendered by default.

build-logic/src/main/kotlin/-KmpConfigurationExtension.kt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ fun KmpConfigurationExtension.configureShared(
3232
}
3333

3434
js()
35-
// wasm()
36-
wasmNativeAll()
35+
// wasmJs {}
36+
// wasmWasi {}
3737

3838
androidNativeAll()
3939

@@ -46,9 +46,7 @@ fun KmpConfigurationExtension.configureShared(
4646
mingwAll()
4747

4848
common {
49-
if (publish) {
50-
pluginIds("publication")
51-
}
49+
if (publish) { pluginIds("publication") }
5250

5351
sourceSetTest {
5452
dependencies {
@@ -57,9 +55,7 @@ fun KmpConfigurationExtension.configureShared(
5755
}
5856
}
5957

60-
kotlin {
61-
explicitApi()
62-
}
58+
kotlin { explicitApi() }
6359

6460
action.execute(this)
6561
}

build-logic/src/main/kotlin/configuration.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
1717
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
1818
import org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED
1919
import org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
20+
import org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_ERROR
21+
import org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_OUT
2022
import org.gradle.api.tasks.testing.logging.TestLogEvent.STARTED
2123

2224
plugins {
2325
id("io.matthewnelson.kmp.configuration")
2426
}
2527

26-
tasks.withType<Test> {
28+
tasks.withType<AbstractTestTask> {
2729
testLogging {
2830
exceptionFormat = TestExceptionFormat.FULL
29-
events(STARTED, PASSED, SKIPPED, FAILED)
31+
events(STARTED, PASSED, SKIPPED, FAILED, STANDARD_ERROR, STANDARD_OUT)
3032
showStandardStreams = true
33+
showStackTraces = true
3134
}
3235
}

build-logic/src/main/kotlin/publication.gradle.kts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import org.gradle.plugins.signing.SigningExtension
2-
31
/*
42
* Copyright (c) 2023 Matthew Nelson
53
*
@@ -15,6 +13,8 @@ import org.gradle.plugins.signing.SigningExtension
1513
* See the License for the specific language governing permissions and
1614
* limitations under the License.
1715
**/
16+
import org.gradle.plugins.signing.SigningExtension
17+
1818
plugins {
1919
id("com.vanniktech.maven.publish")
2020
}
@@ -24,3 +24,8 @@ if (!version.toString().endsWith("-SNAPSHOT")) {
2424
useGpgCmd()
2525
}
2626
}
27+
28+
tasks.withType<AbstractArchiveTask>().configureEach {
29+
isPreserveFileTimestamps = false
30+
isReproducibleFileOrder = true
31+
}

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
1717
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin
1818
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
1919

20-
@Suppress("DSL_SCOPE_VIOLATION")
2120
plugins {
2221
alias(libs.plugins.multiplatform) apply(false)
2322
alias(libs.plugins.android.library) apply(false)
@@ -72,6 +71,7 @@ tasks.withType<DependencyUpdatesTask> {
7271
// Example 3: using the full syntax
7372
resolutionStrategy {
7473
componentSelection {
74+
@Suppress("RedundantSamConstructor")
7575
all(Action {
7676
if (isNonStable(candidate.version) && !isNonStable(currentVersion)) {
7777
reject("Release candidate")

gradle.properties

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@ org.gradle.caching=true
44

55
android.useAndroidX=true
66
android.enableJetifier=true
7-
android.disableAutomaticComponentCreation=true
87

98
kotlin.code.style=official
10-
kotlin.js.compiler=both
11-
kotlin.mpp.androidSourceSetLayoutVersion=2
12-
kotlin.mpp.enableCompatibilityMetadataVariant=true
9+
kotlin.mpp.applyDefaultHierarchyTemplate=false
1310
kotlin.mpp.stability.nowarn=true
14-
kotlin.native.binary.memoryModel=experimental
1511
kotlin.native.ignoreDisabledTargets=true
1612

1713
SONATYPE_HOST=S01

gradle/libs.versions.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[versions]
2-
android = "7.4.2"
2+
android = "8.1.4"
33
androidxTestRunner = "1.5.2"
44
binaryCompat = "0.13.2"
5-
configuration = "0.1.1"
6-
endians = "0.1.0"
7-
gradleVersions = "0.46.0"
8-
kotlin = "1.8.21"
9-
publish = "0.25.2"
5+
configuration = "0.1.5"
6+
endians = "0.2.0"
7+
gradleVersions = "0.50.0"
8+
kotlin = "1.9.21"
9+
publish = "0.25.3"
1010

1111
[libraries]
1212
kotlincrypto-endians-endians = { module = "org.kotlincrypto.endians:endians", version.ref = "endians" }

gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ zipStorePath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55

66
# https://gradle.org/release-checksums/
7-
distributionSha256Sum=5625a0ae20fe000d9225d000b36909c7a0e0e8dda61c19b12da769add847c975
8-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-all.zip
7+
distributionSha256Sum=f2b9ed0faf8472cbe469255ae6c86eddb77076c75191741b4a462f33128dd419
8+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip

library/digest/src/commonMain/kotlin/org/kotlincrypto/core/digest/Digest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
**/
16+
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
17+
1618
package org.kotlincrypto.core.digest
1719

1820
import org.kotlincrypto.core.*

0 commit comments

Comments
 (0)