Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Apr 5, 2024
1 parent fae37be commit 30a40b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Module.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ repositories {

Then, you can add the package to your dependencies.
```kotlin
val semver_version: String by project
val semverVersion: String by project

dependencies {
implementation("io.github.z4kn4fein:semver:$semver_version")
implementation("io.github.z4kn4fein:semver:$semverVersion")
}
```
<br/>

In case of a multiplatform project, you can simply reference the package in your `commonMain` source set.
```kotlin
val semver_version: String by project
val semverVersion: String by project

kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("io.github.z4kn4fein:semver:$semver_version")
implementation("io.github.z4kn4fein:semver:$semverVersion")
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Build](https://img.shields.io/github/actions/workflow/status/z4kn4fein/kotlin-semver/semver-ci.yml?logo=GitHub&branch=main)](https://github.com/z4kn4fein/kotlin-semver/actions/workflows/semver-ci.yml)
[![Quality Gate Status](https://img.shields.io/sonar/quality_gate/z4kn4fein_kotlin-semver?logo=SonarCloud&server=https%3A%2F%2Fsonarcloud.io)](https://sonarcloud.io/project/overview?id=z4kn4fein_kotlin-semver)
[![SonarCloud Coverage](https://img.shields.io/sonar/coverage/z4kn4fein_kotlin-semver?logo=SonarCloud&server=https%3A%2F%2Fsonarcloud.io)](https://sonarcloud.io/project/overview?id=z4kn4fein_kotlin-semver)
[![Kotlin](https://img.shields.io/badge/kotlin-1.7-blueviolet.svg?logo=kotlin)](http://kotlinlang.org)
[![Kotlin](https://img.shields.io/badge/kotlin-1.9-blueviolet.svg?logo=kotlin)](http://kotlinlang.org)

Semantic Versioning library for [Kotlin Multiplatform](https://kotlinlang.org/docs/mpp-intro.html).
It implements the full [semantic version 2.0.0](https://semver.org/spec/v2.0.0.html) specification and
Expand All @@ -22,21 +22,21 @@ repositories {
```
Then, you can add the package to your dependencies.
```kotlin
val semver_version: String by project
val semverVersion: String by project

dependencies {
implementation("io.github.z4kn4fein:semver:$semver_version")
implementation("io.github.z4kn4fein:semver:$semverVersion")
}
```
In case of a multiplatform project, you can simply reference the package in your `commonMain` source set.
```kotlin
val semver_version: String by project
val semverVersion: String by project

kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("io.github.z4kn4fein:semver:$semver_version")
implementation("io.github.z4kn4fein:semver:$semverVersion")
}
}
}
Expand Down

0 comments on commit 30a40b7

Please sign in to comment.