[Kotlin] Update gradle to 7.4.1 and simplify config files. (#7231)

* [Kotlin] Update gradle to 7.4.1 and simplify config files.

* [Kotlin] Add wrapper-validation-action to Kotlin Linux

* [Kotlin] Remove benchmark actions to reduce CI time

* [Kotlin] Move CI js test to Linux action, to increase Mac action speed

* [Kotlin] Generate gradle wrapper in order to be validate

Gradle wrapper from 3.3 to 4.0 are not verifiable because those files
were dynamically generated by Gradle in a non-reproducible way.

So they are now regenerated and will be checked using gitlab action:
gradle/wrapper-validation-action@v1
This commit is contained in:
Paulo Pinheiro
2022-04-08 20:23:13 +02:00
committed by GitHub
parent ab4bf59e8c
commit d658239484
14 changed files with 237 additions and 231 deletions

View File

@@ -0,0 +1,20 @@
[versions]
plugin-kotlin = "1.6.10"
plugin-gver = "0.42.0"
kotlinx-benchmark-runtime = "0.4.2"
junit = "4.12"
gson = "2.8.5"
moshi-kotlin = "1.11.0"
[libraries]
moshi-kotlin = { module = "com.squareup.moshi:moshi-kotlin", version.ref = "moshi-kotlin" }
gson = { module = "com.google.code.gson:gson", version.ref = "gson" }
kotlinx-benchmark-runtime = { module = "org.jetbrains.kotlinx:kotlinx-benchmark-runtime", version.ref = "kotlinx-benchmark-runtime" }
plugin-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "plugin-kotlin" }
plugin-kotlin-serialization = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "plugin-kotlin" }
plugin-gver = { module = "com.github.ben-manes:gradle-versions-plugin", version.ref = "plugin-gver" }
junit = { module="junit:junit", version.ref="junit"}
[bundles]
plugins = ["plugin-kotlin", "plugin-kotlin-serialization", "plugin-gver"]

Binary file not shown.

View File

@@ -1,11 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
# Remove kotlin MPP warning
kotlin.mpp.stability.nowarn=true
# Needed to share source among different targets
kotlin.mpp.enableGranularSourceSetsMetadata=true
# Use parallel builds
org.gradle.parallel=true