diff --git a/README.md b/README.md index bb9c722..4b03d38 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

- Klock is a Date & Time library for Multiplatform Kotlin 1.3. + Klock is a Date & Time library for Multiplatform Kotlin.

@@ -15,22 +15,11 @@

Build Status - Maven Version + Maven Central Discord

- - -

Support klock

- -

-If you like klock, or want your company logo here, please consider becoming a sponsor ★,
-in addition to ensure the continuity of the project, you will get exclusive content. -

- - - ### Full Documentation: ### Some samples: @@ -46,17 +35,14 @@ val daysInNextMonth = (now.yearMonth + 1.months).days ### Usage with gradle: -(Compiled and tested with Gradle 5.4.1, JVM 12.0.1 and Kotlin 1.3.31). -Starting with Klock 2.0.7, the library is available at mavenCentral. Versions from 2.0.6 down to 1.4.0 are available at jcenter. - ```groovy -def klockVersion = "2.0.7" +def klockVersion = "2.1.2" repositories { mavenCentral() - //Versions older than 2.0.7 are available on jcenter() } +// For multiplatform Kotlin kotlin { sourceSets { commonMain { @@ -66,43 +52,13 @@ kotlin { } } } -``` - -#### `settings.gradle` - -```groovy -enableFeaturePreview('GRADLE_METADATA') -``` - -### Use with Kotlin-JVM - -```groovy -def klockVersion = "2.0.7" - -repositories { - mavenCentral() - //Versions older than 2.0.7 are available on jcenter() -} +// For JVM dependencies { implementation "com.soywiz.korlibs.klock:klock-jvm:$klockVersion" } ``` -### Versions - -| Klock | Kotlin | Gradle Metadata | JVM version | -|-------------|--------|------------------|-------------| -| 2.0.0-alpha | 1.4.10 | 1.0 | 1.8 | -| 1.12.0 | 1.4.0 | 1.0 | 1.8 | -| 1.11.14 | 1.3.72 | 1.0 | 1.8 | -| 1.8.4 | 1.3.61 | 1.0 | 1.8 | -| 1.8.0 | 1.3.60 | 1.0 | 1.8 | -| 1.7.0 | 1.3.50 | 1.0 | 1.6 | -| 1.6.0 | 1.3.50 | 1.0 | 1.6 | -| 1.5.0 | 1.3.40 | 1.0 | 1.6 | -| 1.4.0 | 1.3.21 | 1.0 | 1.6 | - ### Testing & Kotest Kotest is a flexible and comprehensive testing tool for Kotlin with multiplatform support.