Skip to content

Commit

Permalink
Prepare 0.2.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
05nelsonm committed Jun 7, 2023
1 parent c6fbf03 commit a5aff76
Show file tree
Hide file tree
Showing 10 changed files with 1,003 additions and 28 deletions.
964 changes: 964 additions & 0 deletions .kotlin-js-store/yarn.lock

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## Version 0.2.5 (2023-06-07)
- Updates `core` to `0.2.5`
- Updates `hash` to `0.2.5`
- Updates `macs` to `0.2.5`

## Version 0.2.4 (2023-04-16)
- Update `core` to `0.2.4`
- Update `hash` to `0.2.4`
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencyResolutionManagement {
versionCatalogs {
create("kotlincrypto") {
// https://github.com/KotlinCrypto/version-catalog/blob/master/gradle/kotlincrypto.versions.toml
from("org.kotlincrypto:version-catalog:0.2.4")
from("org.kotlincrypto:version-catalog:0.2.5")
}
}
}
Expand All @@ -40,7 +40,7 @@ dependencies {
```

<!-- TAG_VERSION -->
[badge-latest-release]: https://img.shields.io/badge/latest--release-0.2.4-blue.svg?style=flat
[badge-latest-release]: https://img.shields.io/badge/latest--release-0.2.5-blue.svg?style=flat
[badge-license]: https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat

[url-latest-release]: https://github.com/KotlinCrypto/version-catalog/releases/latest
Expand Down
2 changes: 0 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ git checkout -b release_"$VERSION_NAME"

- Update `version` in project's `README.md` documentation

- Update the Kotlin Version compatibility matrix in project's `README.md` documentation

- Update `CHANGELOG.md`

- Commit Changes
Expand Down
13 changes: 10 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@
* limitations under the License.
**/
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension

@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.multiplatform) apply(false)
alias(libs.plugins.gradleVersions)
}

Expand All @@ -31,8 +34,12 @@ allprojects {
}
}

plugins.withType<YarnPlugin> {
the<YarnRootExtension>().lockFileDirectory = rootDir.resolve(".kotlin-js-store")
}

fun isNonStable(version: String): Boolean {
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.toUpperCase().contains(it) }
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.uppercase().contains(it) }
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
val isStable = stableKeyword || regex.matches(version)
return isStable.not()
Expand All @@ -52,11 +59,11 @@ tasks.withType<DependencyUpdatesTask> {
// Example 3: using the full syntax
resolutionStrategy {
componentSelection {
all {
all(Action {
if (isNonStable(candidate.version) && !isNonStable(currentVersion)) {
reject("Release candidate")
}
}
})
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ POM_DEVELOPER_ID=KotlinCrypto
POM_DEVELOPER_NAME=Kotlin Crypto
POM_DEVELOPER_URL=https://github.com/KotlinCrypto/

VERSION_NAME=0.2.5-SNAPSHOT
VERSION_NAME=0.2.5
# 0.1.0-alpha01 = 00 01 00 11
# 0.1.0-beta01 = 00 01 00 21
# 0.1.0-rc01 = 00 01 00 31
Expand Down
6 changes: 3 additions & 3 deletions gradle/kotlincrypto.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
core = "0.2.4"
core = "0.2.5"
endians = "0.1.0"
hash = "0.2.4"
macs = "0.2.4"
hash = "0.2.5"
macs = "0.2.5"
secureRandom = "0.1.0"
sponges = "0.1.0"

Expand Down
7 changes: 4 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
configuration = "0.1.0-beta02"
configuration = "0.1.0"
gradleVersions = "0.46.0"
kotlin = "1.8.10"
publish = "0.24.0"
kotlin = "1.8.21"
publish = "0.25.2"

[libraries]
gradle-kmp-configuration = { module = "io.matthewnelson:gradle-kmp-configuration-plugin", version.ref = "configuration" }
Expand All @@ -11,3 +11,4 @@ gradle-maven-publish = { module = "com.vanniktech:gradle-maven-publish-plugin",

[plugins]
gradleVersions = { id = "com.github.ben-manes.versions", version.ref = "gradleVersions" }
multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

# https://gradle.org/release-checksums/
distributionSha256Sum=948d1e4ccc2f6ae36cbfa087d827aaca51403acae5411e664a6000bb47946f22
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip
distributionSha256Sum=5625a0ae20fe000d9225d000b36909c7a0e0e8dda61c19b12da769add847c975
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-all.zip
24 changes: 12 additions & 12 deletions stub/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ plugins {
}

kmpConfiguration {
configure {
this.configure {
jvm {
target { withJava() }

Expand All @@ -27,19 +27,19 @@ kmpConfiguration {
compileTargetCompatibility = JavaVersion.VERSION_1_8
}

// js()
js()
// wasm()
// wasmNativeAll()
//
// androidNativeAll()
//
// iosAll()
// macosAll()
// tvosAll()
// watchosAll()
//
// linuxAll()
// mingwAll()

androidNativeAll()

iosAll()
macosAll()
tvosAll()
watchosAll()

linuxAll()
mingwAll()

common {
sourceSetMain {
Expand Down

0 comments on commit a5aff76

Please sign in to comment.