Skip to content

Commit

Permalink
Merge pull request #855 from aSemy/fix/854-update-build-config
Browse files Browse the repository at this point in the history
#854 update projects to use new Kotlin Multiplatform Gradle plugin
  • Loading branch information
Raibaz committed Aug 12, 2022
2 parents 6ce0616 + 6eab7ab commit 870bd59
Show file tree
Hide file tree
Showing 401 changed files with 1,292 additions and 1,547 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/gradle.yml
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false # in case one JDK fails, we still want to see results from others
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Gradle Dependencies Cache
uses: actions/cache@v3
Expand All @@ -37,15 +37,20 @@ jobs:
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Run tests with Gradle
uses: eskatos/gradle-command-action@v1
with:
arguments: test --stacktrace -Pkotlin.version=${{ matrix.kotlin-version }} -Pkotlin.ir.enabled=${{ matrix.kotlin-ir-enabled }}
arguments: |
test
--stacktrace
-Pkotlin.version=${{ matrix.kotlin-version }}
-Pkotlin.ir.enabled=${{ matrix.kotlin-ir-enabled }}
-PjavaToolchainTestVersion=${{ matrix.java-version }}
android-instrumented-tests:
runs-on: macos-latest
Expand All @@ -55,11 +60,12 @@ jobs:
fail-fast: false # in case one API-level fails, we still want to see results from others
timeout-minutes: 30
steps:
- uses: actions/setup-java@v2
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- uses: actions/checkout@v2
distribution: adopt
java-version: 11

- name: Setup Gradle Dependencies Cache
uses: actions/cache@v3
Expand Down
20 changes: 11 additions & 9 deletions .gitignore
@@ -1,16 +1,18 @@
.idea
.idea/
.cxx
out

out/
build/

.gradle/

*.iml
.gradle
build
hs_err_*
replay_*
agent/android/.externalNativeBuild/
matrix/results
local.properties
/mockk-js/node_modules
/cloud-badge/credentials.json
/cloud-badge/node_modules/
/cloud-badge/package-lock.json
.java-version
mockk-js/node_modules/
cloud-badge/credentials.json
cloud-badge/node_modules/
cloud-badge/package-lock.json
1 change: 0 additions & 1 deletion MAINTAINING.md
Expand Up @@ -28,4 +28,3 @@
- [ ] push to github
- [ ] create github release based on tag and describe changes there
- [ ] announce on reddit/kotlinlang/potentially at "announcement place" on mockk.io

92 changes: 0 additions & 92 deletions agent/android/build.gradle

This file was deleted.

31 changes: 0 additions & 31 deletions agent/android/dispatcher/build.gradle.kts

This file was deleted.

10 changes: 0 additions & 10 deletions agent/api/build.gradle.kts

This file was deleted.

14 changes: 0 additions & 14 deletions agent/common/build.gradle.kts

This file was deleted.

55 changes: 0 additions & 55 deletions agent/jvm/build.gradle

This file was deleted.

54 changes: 0 additions & 54 deletions build.gradle

This file was deleted.

30 changes: 30 additions & 0 deletions build.gradle.kts
@@ -0,0 +1,30 @@
import buildsrc.config.excludeGeneratedGradleDslAccessors

plugins {
base
org.jetbrains.kotlinx.`binary-compatibility-validator`
org.jetbrains.kotlinx.kover
idea

// note: plugin versions are set in ./buildSrc/build.gradle.kts
}

group = "io.mockk"

tasks.wrapper {
gradleVersion = "7.5.1"
distributionType = Wrapper.DistributionType.ALL
}

idea {
module {
isDownloadSources = true
isDownloadJavadoc = true

excludeGeneratedGradleDslAccessors(layout)
excludeDirs = excludeDirs + layout.files(
".idea",
"gradle/wrapper",
)
}
}

0 comments on commit 870bd59

Please sign in to comment.