Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 30a40b7
Author: Peter Csajtai <[email protected]>
Date:   Fri Apr 5 17:41:42 2024 +0200

    Update README.md

commit fae37be
Author: Peter Csajtai <[email protected]>
Date:   Fri Apr 5 17:35:54 2024 +0200

    Update build.gradle.kts

commit 4f5147e
Author: Peter Csajtai <[email protected]>
Date:   Fri Apr 5 17:27:58 2024 +0200

    Update semver-test.yml

commit 5c9fd45
Author: Peter Csajtai <[email protected]>
Date:   Fri Apr 5 17:25:56 2024 +0200

    Bump Kotlin version to 1.9.23 / add wasm targets
  • Loading branch information
z4kn4fein committed Apr 5, 2024
1 parent ad9da0f commit bd2dba1
Show file tree
Hide file tree
Showing 29 changed files with 3,007 additions and 981 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/semver-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: zulu
- name: Cache Konan
uses: ./.github/actions/cache-konan
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: zulu
- name: Cache Gradle
uses: ./.github/actions/cache-gradle
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: zulu
- name: Cache Konan
uses: ./.github/actions/cache-konan
Expand All @@ -80,7 +80,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: zulu
- name: Cache Konan
uses: ./.github/actions/cache-konan
Expand All @@ -105,7 +105,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: zulu
- name: Cache Konan
uses: ./.github/actions/cache-konan
Expand Down Expand Up @@ -156,10 +156,7 @@ jobs:
deploy-snapshot:
needs: [ test, lint, analysis, assemble, coverage ]
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: macos-latest
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
Expand All @@ -171,7 +168,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: zulu
- name: Cache Konan
uses: ./.github/actions/cache-konan
Expand All @@ -184,10 +181,7 @@ jobs:
deploy-release:
needs: [ test, lint, analysis, assemble, coverage ]
if: startsWith(github.ref, 'refs/tags')
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: macos-latest
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
Expand All @@ -199,7 +193,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: zulu
- name: Cache Konan
uses: ./.github/actions/cache-konan
Expand All @@ -218,7 +212,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: zulu
- name: Cache Konan
uses: ./.github/actions/cache-konan
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/semver-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Semver Test

on:
push:
branches: [ '*' ]
paths-ignore:
- '**.md'
pull_request:
branches: [ main ]
paths-ignore:
Expand All @@ -21,7 +25,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: zulu
- name: Cache Konan
uses: ./.github/actions/cache-konan
Expand Down
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
3 changes: 2 additions & 1 deletion assets/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
display: inline-flex;
justify-content: center;
align-items: center;
margin-right: 20px;
margin: 0 20px;
color: white;
}

.repo-name {
Expand Down
Loading

0 comments on commit bd2dba1

Please sign in to comment.