Skip to content

Commit cb33629

Browse files
committed
update tests-publication with version 0.2.0
1 parent 630faec commit cb33629

File tree

7 files changed

+26
-34
lines changed

7 files changed

+26
-34
lines changed

tests-publication/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
plugins {
6-
kotlin("multiplatform") version "1.8.10"
6+
kotlin("multiplatform") version "1.9.10"
77
}
88

99
kotlin {
@@ -29,23 +29,23 @@ kotlin {
2929
commonTest {
3030
dependencies {
3131
implementation(kotlin("test"))
32-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4")
32+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
3333
}
3434
}
3535
val jsMain by getting {
3636
dependencies {
37-
implementation(cryptographyLibs.webcrypto)
37+
implementation(cryptographyLibs.provider.webcrypto)
3838
}
3939
}
4040
val jvmMain by getting {
4141
dependencies {
42-
implementation(cryptographyLibs.jdk)
42+
implementation(cryptographyLibs.provider.jdk)
4343
}
4444
}
4545
val nativeMain by creating {
4646
dependsOn(commonMain.get())
4747
dependencies {
48-
implementation(cryptographyLibs.openssl3.prebuilt)
48+
implementation(cryptographyLibs.provider.openssl3.prebuilt)
4949
}
5050
}
5151
val nativeTest by creating {

tests-publication/gradle.properties

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22
# Copyright (c) 2023 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33
#
44

5-
#Kotlin
6-
kotlin.js.compiler=ir
7-
kotlin.incremental.useClasspathSnapshot=true
8-
kotlin.mpp.enableCInteropCommonization=true
9-
kotlin.native.ignoreIncorrectDependencies=true
105
#Gradle
116
org.gradle.parallel=true
127
org.gradle.caching=true
138
org.gradle.configureondemand=true
149
org.gradle.jvmargs=-Xmx2g
15-
org.gradle.vfs.watch=true
Binary file not shown.
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
#
2+
# Copyright (c) 2023 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
3+
#
4+
15
distributionBase=GRADLE_USER_HOME
26
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
7+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
48
networkTimeout=10000
9+
validateDistributionUrl=true
510
zipStoreBase=GRADLE_USER_HOME
611
zipStorePath=wrapper/dists

tests-publication/gradlew

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
5-
#
6-
# Licensed under the Apache License, Version 2.0 (the "License");
7-
# you may not use this file except in compliance with the License.
8-
# You may obtain a copy of the License at
9-
#
10-
# https://www.apache.org/licenses/LICENSE-2.0
11-
#
12-
# Unless required by applicable law or agreed to in writing, software
13-
# distributed under the License is distributed on an "AS IS" BASIS,
14-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
# See the License for the specific language governing permissions and
16-
# limitations under the License.
4+
# Copyright (c) 2023 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
175
#
186

197
##############################################################################
@@ -83,10 +71,8 @@ done
8371
# This is normally unused
8472
# shellcheck disable=SC2034
8573
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
87-
88-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
74+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
75+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
9076

9177
# Use the maximum available, or set MAX_FD != -1 to use that value.
9278
MAX_FD=maximum
@@ -133,26 +119,29 @@ location of your Java installation."
133119
fi
134120
else
135121
JAVACMD=java
136-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
122+
if ! command -v java >/dev/null 2>&1
123+
then
124+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137125
138126
Please set the JAVA_HOME variable in your environment to match the
139127
location of your Java installation."
128+
fi
140129
fi
141130

142131
# Increase the maximum file descriptors if we can.
143132
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144133
case $MAX_FD in #(
145134
max*)
146135
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
136+
# shellcheck disable=SC3045
148137
MAX_FD=$( ulimit -H -n ) ||
149138
warn "Could not query maximum file descriptor limit"
150139
esac
151140
case $MAX_FD in #(
152141
'' | soft) :;; #(
153142
*)
154143
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
144+
# shellcheck disable=SC3045
156145
ulimit -n "$MAX_FD" ||
157146
warn "Could not set maximum file descriptor limit to $MAX_FD"
158147
esac
@@ -197,6 +186,10 @@ if "$cygwin" || "$msys" ; then
197186
done
198187
fi
199188

189+
190+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
191+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
192+
200193
# Collect all arguments for the java command;
201194
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
202195
# shell script including quotes and variable substitutions, so put them in

tests-publication/settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencyResolutionManagement {
1616

1717
versionCatalogs {
1818
create("cryptographyLibs") {
19-
from("dev.whyoleg.cryptography:cryptography-version-catalog:0.1.0")
19+
from("dev.whyoleg.cryptography:cryptography-version-catalog:0.2.0")
2020
}
2121
}
2222
}

tests-publication/src/commonTest/kotlin/JustTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* Copyright (c) 2023 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5+
import dev.whyoleg.cryptography.*
56
import dev.whyoleg.cryptography.algorithms.digest.*
6-
import dev.whyoleg.cryptography.provider.*
77
import kotlinx.coroutines.*
88
import kotlinx.coroutines.test.*
99
import kotlin.test.*

0 commit comments

Comments
 (0)