Skip to content

Commit

Permalink
fix ci, fix new gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
makeevrserg committed May 29, 2024
1 parent fbc368e commit 5b26b10
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 1.17
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- name: Run tests
uses: gradle/gradle-build-action@v3
with:
arguments: test
arguments: allTests
6 changes: 3 additions & 3 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ concurrency:

jobs:
gradle_validation:
uses: ./.github/workflows/gradle-wrapper-validation.yml
uses: ./.github/workflows/call-gradle-wrapper-validation.yml
detekt_validation:
needs: gradle_validation
uses: ./.github/workflows/detekt-validation.yml
uses: ./.github/workflows/call-detekt-validation.yml
tests_validation:
needs: gradle_validation
uses: ./.github/workflows/tests-validation.yml
uses: ./.github/workflows/call-tests-validation.yml
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:

jobs:
gradle_validation:
uses: ./.github/workflows/gradle-wrapper-validation.yml
uses: ./.github/workflows/call-gradle-wrapper-validation.yml
detekt_validation:
needs: gradle_validation
uses: ./.github/workflows/detekt-validation.yml
uses: ./.github/workflows/call-detekt-validation.yml
tests_validation:
needs: gradle_validation
uses: ./.github/workflows/tests-validation.yml
uses: ./.github/workflows/call-tests-validation.yml
publish:
name: Publish library at mavenCentral
runs-on: macOS-latest
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
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/*
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Kotlin
kotlin-version = "2.0.0" # # https://github.com/JetBrains/kotlin
kotlin-coroutines-core = "1.8.1" # https://github.com/Kotlin/kotlinx.coroutines
makeevrserg-gradleplugin = "1.1.1" # https://github.com/makeevrserg/gradle-plugin
makeevrserg-gradleplugin = "1.1.2" # https://github.com/makeevrserg/gradle-plugin
gradle-android = "8.4.1" # https://developer.android.com/build#top-level
decompose = "3.0.0" # https://github.com/arkivanov/Decompose
kotlinx-datetime = "0.6.0" # https://github.com/Kotlin/kotlinx-datetime
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
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.7-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions mikro-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ru.astrainteractive.gradleplugin.util.ProjectProperties.projectInfo
import ru.astrainteractive.gradleplugin.property.extension.ModelPropertyValueExt.requireProjectInfo

plugins {
kotlin("multiplatform")
Expand Down Expand Up @@ -139,5 +139,5 @@ kotlin {
}

android {
namespace = "${projectInfo.group}.mikro.core"
namespace = "${requireProjectInfo.group}.mikro.core"
}
5 changes: 3 additions & 2 deletions mikro-extensions/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@file:Suppress("UnusedPrivateMember")

import ru.astrainteractive.gradleplugin.util.ProjectProperties.projectInfo
import ru.astrainteractive.gradleplugin.property.extension.ModelPropertyValueExt.requireProjectInfo


plugins {
kotlin("multiplatform")
Expand Down Expand Up @@ -55,5 +56,5 @@ kotlin {
}

android {
namespace = "${projectInfo.group}.mikro.extensions"
namespace = "${requireProjectInfo.group}.mikro.extensions"
}
4 changes: 2 additions & 2 deletions mikro-locale/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ru.astrainteractive.gradleplugin.util.ProjectProperties.projectInfo
import ru.astrainteractive.gradleplugin.property.extension.ModelPropertyValueExt.requireProjectInfo

plugins {
kotlin("multiplatform")
Expand Down Expand Up @@ -128,5 +128,5 @@ kotlin {
}

android {
namespace = "${projectInfo.group}.lokale"
namespace = "${requireProjectInfo.group}.lokale"
}
4 changes: 2 additions & 2 deletions mikro-platform/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ru.astrainteractive.gradleplugin.util.ProjectProperties.projectInfo
import ru.astrainteractive.gradleplugin.property.extension.ModelPropertyValueExt.requireProjectInfo

plugins {
kotlin("multiplatform")
Expand Down Expand Up @@ -142,5 +142,5 @@ kotlin {
}

android {
namespace = "${projectInfo.group}.mikro.platform"
namespace = "${requireProjectInfo.group}.mikro.platform"
}
4 changes: 2 additions & 2 deletions mikro-validation/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ru.astrainteractive.gradleplugin.util.ProjectProperties.projectInfo
import ru.astrainteractive.gradleplugin.property.extension.ModelPropertyValueExt.requireProjectInfo

plugins {
kotlin("multiplatform")
Expand Down Expand Up @@ -139,5 +139,5 @@ kotlin {
}

android {
namespace = "${projectInfo.group}.validation"
namespace = "${requireProjectInfo.group}.validation"
}

0 comments on commit 5b26b10

Please sign in to comment.