Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/kotlin 2.0 #36

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ jobs:
- name: Publish
run: ./gradlew publishAllPublicationsToMavenCentralRepository -Psigning.keyId=${{ secrets.SIGNING_KEY_ID }} -Psigning.password=${{ secrets.SIGNING_PASSWORD }} -Psigning.secretKeyRingFile=$(echo ~/.gradle/secring.gpg)
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_USERNAME: ${{ secrets.MAVEN_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_TOKEN_PASSWORD }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Project exclude paths
.gradle/
.idea/
build/
build/
.kotlin/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# KCron
Cron realization for Kotlin Multiplatform

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Scogun_kcron-common&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=Scogun_kcron-common) ![GitHub](https://img.shields.io/github/license/Scogun/kcron-common?color=blue) ![Publish workflow](https://github.com/Scogun/kcron-common/actions/workflows/publish.yml/badge.svg) [![Maven Central with version prefix filter](https://img.shields.io/maven-central/v/com.ucasoft.kcron/kcron-common/0.14.4?color=blue)](https://search.maven.org/artifact/com.ucasoft.kcron/kcron-common/0.14.4/jar)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Scogun_kcron-common&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=Scogun_kcron-common) ![GitHub](https://img.shields.io/github/license/Scogun/kcron-common?color=blue) ![Publish workflow](https://github.com/Scogun/kcron-common/actions/workflows/publish.yml/badge.svg) [![Maven Central with version prefix filter](https://img.shields.io/maven-central/v/com.ucasoft.kcron/kcron-common/0.20.2?color=blue)](https://search.maven.org/artifact/com.ucasoft.kcron/kcron-common/0.20.2/jar)

### Features
* Kotlin Multiplatform library
Expand Down Expand Up @@ -50,7 +50,7 @@ kotlin {
sourceSets {
commonMain {
dependencies {
implementation 'com.ucasoft.kcron:kcron-common:0.14.4'
implementation 'com.ucasoft.kcron:kcron-common:0.20.2'
}
}
}
Expand Down Expand Up @@ -115,6 +115,6 @@ builder.years(2021..2025)
println(builder.expression) // 0/10 5-25 5,12 ? * SUN#5 2021-2025
```
### Current status
This library is on beta version `0.14.4`.
This library is on beta version `0.20.2`.
It is continuing to develop.
Check the news!
9 changes: 8 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
plugins {
alias(libs.plugins.multiplatform) apply false
id("publish") apply false
alias(libs.plugins.kover) apply false
alias(libs.plugins.benchmark) apply false
}

allprojects {

group = "com.ucasoft.kcron"

version = "0.14.4"
version = "0.20.2"

repositories {
mavenCentral()
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
kotlin = "1.9.24"
kotlinx-datetime = "0.6.0"
kotlin = "2.0.20"
kotlinx-datetime = "0.6.1"
kotest = "5.9.1"
kover = "0.7.6"
kover = "0.8.3"
benchmark = "0.4.11"

[libraries]
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
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.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
5 changes: 4 additions & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

##############################################################################
#
Expand Down Expand Up @@ -84,7 +86,8 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
2 changes: 2 additions & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
Expand Down
9 changes: 2 additions & 7 deletions kcron-abstractions/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
plugins {
alias(libs.plugins.multiplatform)
id("publish")
alias(libs.plugins.kover) apply false
alias(libs.plugins.benchmark) apply false
}

kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
jvmToolchain(8)
jvm()
linuxX64()
linuxArm64()
mingwX64()
Expand Down
8 changes: 2 additions & 6 deletions kcron-common-benchmark/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
plugins {
alias(libs.plugins.multiplatform)
alias(libs.plugins.benchmark)
alias(libs.plugins.kover) apply false
}

kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
jvmToolchain(8)
jvm()
linuxX64()
mingwX64()
macosX64()
Expand Down
8 changes: 2 additions & 6 deletions kcron-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@ plugins {
alias(libs.plugins.multiplatform)
id("publish")
alias(libs.plugins.kover)
alias(libs.plugins.benchmark) apply false
}

kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
jvmToolchain(8)
jvm()
linuxX64()
linuxArm64()
mingwX64()
Expand Down
8 changes: 2 additions & 6 deletions kcron-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@ plugins {
alias(libs.plugins.multiplatform)
id("publish")
alias(libs.plugins.kover)
alias(libs.plugins.benchmark) apply false
}

kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
jvmToolchain(8)
jvm()
linuxX64()
linuxArm64()
mingwX64()
Expand Down
9 changes: 2 additions & 7 deletions kcron-kotlinx-datetime/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
plugins {
alias(libs.plugins.multiplatform)
id("publish")
alias(libs.plugins.kover) apply false
alias(libs.plugins.benchmark) apply false
}

kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
jvmToolchain(8)
jvm()
linuxX64()
linuxArm64()
mingwX64()
Expand Down
Loading