-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from makeevrserg/k2
K2
- Loading branch information
Showing
17 changed files
with
223 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "gradle" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
rebase-strategy: "disabled" | ||
groups: | ||
versions: | ||
dependency-type: production | ||
applies-to: version-updates | ||
open-pull-requests-limit: 1 | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
versions: | ||
dependency-type: production | ||
applies-to: version-updates | ||
rebase-strategy: "disabled" | ||
open-pull-requests-limit: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: "tests" | ||
on: | ||
workflow_call: | ||
secrets: | ||
SIGNING_KEY_ID: | ||
required: true | ||
SIGNING_PASSWORD: | ||
required: true | ||
OSSRH_USERNAME: | ||
required: true | ||
OSSRH_PASSWORD: | ||
required: true | ||
SIGNING_KEY: | ||
required: true | ||
|
||
jobs: | ||
tests: | ||
name: "Run tests" | ||
runs-on: ubuntu-latest | ||
env: | ||
makeevrserg_SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||
makeevrserg_SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | ||
makeevrserg_OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
makeevrserg_OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
makeevrserg_SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 1.17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
- name: Give gradle permission | ||
run: chmod +x gradlew | ||
- name: Run publish | ||
uses: gradle/gradle-build-action@v3 | ||
with: | ||
arguments: publishToMavenLocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,30 +7,25 @@ on: | |
|
||
jobs: | ||
gradle_validation: | ||
uses: ./.github/workflows/gradle-wrapper-validation.yml | ||
detekt_validation: | ||
needs: gradle_validation | ||
uses: ./.github/workflows/detekt-validation.yml | ||
tests_validation: | ||
needs: gradle_validation | ||
uses: ./.github/workflows/tests-validation.yml | ||
uses: ./.github/workflows/call-gradle-wrapper-validation.yml | ||
publish: | ||
name: Publish library at mavenCentral | ||
runs-on: macOS-latest | ||
needs: [ gradle_validation, detekt_validation, tests_validation ] | ||
needs: [ gradle_validation ] | ||
env: | ||
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | ||
makeevrserg_SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||
makeevrserg_SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | ||
makeevrserg_OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
makeevrserg_OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
makeevrserg_SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
java-version: '17' | ||
- name: Give gradle permission | ||
run: chmod +x gradlew | ||
- name: Prebuild library | ||
|
@@ -42,15 +37,15 @@ jobs: | |
name: Create release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: christian-draeger/[email protected] | ||
id: properties | ||
with: | ||
path: './gradle.properties' | ||
properties: 'makeevrserg.project.name makeevrserg.project.version.string' | ||
- name: Create Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v1 | ||
uses: softprops/action-gh-release@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }} | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
.gradle | ||
.idea | ||
.kotlin | ||
build | ||
mikro-core/build | ||
mikro-platform/build | ||
mikro-locale/build | ||
local.properties | ||
local.properties | ||
kotlin-js-store/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
buildscript { | ||
dependencies { | ||
classpath(libs.makeevrserg.gradleplugin.convention) | ||
classpath(libs.makeevrserg.gradleplugin.android) | ||
} | ||
} | ||
plugins { | ||
alias(libs.plugins.kotlin.multiplatform) apply false | ||
alias(libs.plugins.gradle.android) apply false | ||
// klibs - core | ||
alias(libs.plugins.klibs.gradle.detekt) apply false | ||
alias(libs.plugins.klibs.gradle.detekt.compose) apply false | ||
alias(libs.plugins.klibs.gradle.dokka.root) apply false | ||
alias(libs.plugins.klibs.gradle.dokka.module) apply false | ||
alias(libs.plugins.klibs.gradle.java.core) apply false | ||
alias(libs.plugins.klibs.gradle.stub.javadoc) apply false | ||
alias(libs.plugins.klibs.gradle.publication) apply false | ||
alias(libs.plugins.klibs.gradle.rootinfo) apply false | ||
// klibs - android | ||
alias(libs.plugins.klibs.gradle.android.core) apply false | ||
alias(libs.plugins.klibs.gradle.android.compose) apply false | ||
alias(libs.plugins.klibs.gradle.android.apk.sign) apply false | ||
alias(libs.plugins.klibs.gradle.android.apk.name) apply false | ||
alias(libs.plugins.klibs.gradle.android.publication) apply false | ||
} | ||
|
||
apply(plugin = "ru.astrainteractive.gradleplugin.dokka.root") | ||
apply(plugin = "ru.astrainteractive.gradleplugin.detekt") | ||
apply(plugin = "ru.astrainteractive.gradleplugin.root.info") | ||
|
||
subprojects.forEach { | ||
it.apply(plugin = "ru.astrainteractive.gradleplugin.dokka.module") | ||
it.apply(plugin = "ru.astrainteractive.gradleplugin.publication") | ||
it.plugins.withId("org.jetbrains.kotlin.jvm") { | ||
it.apply(plugin = "ru.astrainteractive.gradleplugin.java.core") | ||
subprojects.forEach { subProject -> | ||
subProject.apply(plugin = "ru.astrainteractive.gradleplugin.dokka.module") | ||
subProject.apply(plugin = "ru.astrainteractive.gradleplugin.publication") | ||
subProject.plugins.withId("org.jetbrains.kotlin.jvm") { | ||
subProject.apply(plugin = "ru.astrainteractive.gradleplugin.java.core") | ||
} | ||
it.apply(plugin = "ru.astrainteractive.gradleplugin.stub.javadoc") | ||
it.plugins.withId("com.android.library") { | ||
it.apply(plugin = "ru.astrainteractive.gradleplugin.android.core") | ||
subProject.apply(plugin = "ru.astrainteractive.gradleplugin.stub.javadoc") | ||
subProject.plugins.withId("com.android.library") { | ||
subProject.apply(plugin = "ru.astrainteractive.gradleplugin.android.core") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ makeevrserg.java.ktarget=17 | |
# Project | ||
makeevrserg.project.name=MiKro | ||
makeevrserg.project.group=ru.astrainteractive.klibs | ||
makeevrserg.project.version.string=1.7.0 | ||
makeevrserg.project.version.string=1.8.0 | ||
makeevrserg.project.description=Kotlin Multiplatform library with useful code | ||
makeevrserg.project.developers=makeevrserg|Makeev Roman|[email protected] | ||
makeevrserg.project.url=https://github.com/makeevrserg/kstorage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.