Skip to content

Commit 5c7951b

Browse files
shanshinfzhinkin
andauthored
Upgraded Gradle to 9.1.0
PR #758 Co-authored-by: Filipp Zhinkin <[email protected]>
1 parent 1d26c34 commit 5c7951b

File tree

101 files changed

+198
-200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+198
-200
lines changed

README.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,23 @@ Kover Toolset:
1515
- [Kover features artifact](#kover-features-artifact)
1616

1717
## Kover Gradle Plugin
18-
For full information about latest stable release of Kover Gradle Plugin, please refer to the [documentation](https://kotlin.github.io/kotlinx-kover/gradle-plugin).
18+
For full information about the latest stable release of Kover Gradle Plugin, please refer to the [documentation](https://kotlin.github.io/kotlinx-kover/gradle-plugin).
1919

2020
### Features
2121

22-
* Collection of code coverage through `JVM` tests (JS and native targets are not supported yet).
22+
* Collection of code coverage for JVM and Android host tests (JS and native targets are not supported yet).
2323
* Generating `HTML` and `XML` reports.
24-
* Support for `Kotlin JVM`, `Kotlin Multiplatform` projects.
25-
* Support for `Kotlin Android` projects with build variants (instrumentation tests executing on the Android device are not supported yet).
26-
* Support mixed `Kotlin` and `Java` sources
24+
* Works with `kotlin("jvm")`, `kotlin("android")`, `kotlin("multiplatform")` and `com.android.kotlin.multiplatform.library` plugins.
25+
* Support build variants in `kotlin("android")` projects.
26+
* Support mixed `Kotlin` and `Java` sources.
2727
* Verification rules with bounds in the Gradle plugin to keep track of coverage.
2828
* Using JaCoCo library in Gradle plugin as an alternative for coverage measuring and report generation.
2929

3030
The recommended way of applying Kover is with the
3131
[plugins DSL](https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block).
3232

33-
Minimum supported version of `Gradle` is `6.8`.
33+
Minimum supported version of `Gradle` is `6.8.3`.
34+
Minimum version of JVM for running tests is `1.7`.
3435

3536
Add the following to your top-level build file:
3637

@@ -121,6 +122,8 @@ It is in its infancy, it is recommended to use it only for test or pet projects.
121122
Refer to the [documentation](https://kotlin.github.io/kotlinx-kover/gradle-plugin/aggregated.html) for details.
122123

123124
## Kover Maven Plugin
125+
Minimum Maven version for Maven plugin is `3.0`
126+
124127
The Kover Maven Plugin can be applied by specifying build plugin
125128
```xml
126129
<plugin>
@@ -132,10 +135,12 @@ The Kover Maven Plugin can be applied by specifying build plugin
132135

133136
The list of Kover goals is specified in [this document section](https://kotlin.github.io/kotlinx-kover/maven-plugin#goals).
134137

135-
For full information about latest stable release of Kover Maven Plugin, please refer to the [documentation](https://kotlin.github.io/kotlinx-kover/maven-plugin).
138+
For full information about the latest stable release of Kover Maven Plugin, please refer to the [documentation](https://kotlin.github.io/kotlinx-kover/maven-plugin).
136139

137140

138141
## Kover CLI
142+
Minimum version of JVM is `1.8`.
143+
139144
Standalone JVM application used for offline instrumentation and generation of human-readable reports.
140145

141146
[Documentation of the Kover CLI](https://kotlin.github.io/kotlinx-kover/cli).
@@ -146,11 +151,16 @@ Offline instrumentation is the modification of class-files stored on disk to mea
146151
The ways of offline instrumentation and running of the instrumented applications are described in the [documentation](https://kotlin.github.io/kotlinx-kover/offline-instrumentation).
147152

148153
## Kover JVM agent
154+
Minimum version of JVM is `1.7`.
155+
149156
JVM agent is a jar file that modifies the bytecode of loaded into the JVM classes in order to measure coverage.
150157
[Documentations](https://kotlin.github.io/kotlinx-kover/jvm-agent).
151158

152159
## Kover features artifact
153-
A JVM dependency that allows to programmatically instrument class-files on a disk.
160+
Minimum version of JVM is `1.8`.
161+
Minimum version of Kotlin is `1.8.0`.
162+
163+
A JVM dependency that allows programmatically instrument class-files on a disk.
154164

155165
[Documentation of Kover features artifact](https://kotlin.github.io/kotlinx-kover/offline-instrumentation/#instrumentation-by-kover-features)
156166

gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[versions]
22

33
intellij-coverage = "1.0.765"
4-
junit = "5.9.0"
4+
junit = "5.13.4"
55
kotlinx-bcv = "0.13.2"
6-
kotlinx-dokka = "1.8.10"
6+
kotlinx-dokka = "2.0.0"
77
args4j = "2.33"
88
gradle-plugin-publish = "1.2.1"
9-
maven-plugin-development = "0.4.3"
9+
maven-plugin-development = "1.0.3"
1010
maven-embedder = "3.9.8"
1111
maven-api = "3.0"
1212
maven-resolver = "1.9.21"
@@ -47,5 +47,5 @@ jacoco-reporter = {module = "org.jacoco:org.jacoco.report", version.ref = "jacoc
4747
gradle-pluginPublish = { id = "com.gradle.plugin-publish", version.ref = "gradle-plugin-publish" }
4848
kotlinx-binaryCompatibilityValidator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version.ref = "kotlinx-bcv" }
4949
kotlinx-dokka = { id = "org.jetbrains.dokka", version.ref = "kotlinx-dokka" }
50-
mavenPluginDevelopment = { id = "de.benediktritter.maven-plugin-development", version.ref = "maven-plugin-development" }
50+
mavenPluginDevelopment = { id = "org.gradlex.maven-plugin-development", version.ref = "maven-plugin-development" }
5151

gradle/wrapper/gradle-wrapper.jar

1.83 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -114,7 +114,6 @@ case "$( uname )" in #(
114114
NONSTOP* ) nonstop=true ;;
115115
esac
116116

117-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
118117

119118

120119
# Determine the Java command to use to start the JVM.
@@ -172,7 +171,6 @@ fi
172171
# For Cygwin or MSYS, switch paths to Windows format before running java
173172
if "$cygwin" || "$msys" ; then
174173
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
175-
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
176174

177175
JAVACMD=$( cygpath --unix "$JAVACMD" )
178176

@@ -205,15 +203,14 @@ fi
205203
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
206204

207205
# Collect all arguments for the java command:
208-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209207
# and any embedded shellness will be escaped.
210208
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211209
# treated as '${Hostname}' itself on the command line.
212210

213211
set -- \
214212
"-Dorg.gradle.appname=$APP_BASE_NAME" \
215-
-classpath "$CLASSPATH" \
216-
org.gradle.wrapper.GradleWrapperMain \
213+
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
217214
"$@"
218215

219216
# Stop when "xargs" is not available.

gradlew.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ goto fail
7070
:execute
7171
@rem Setup the command line
7272

73-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
7473

7574

7675
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7877

7978
:end
8079
@rem End local scope for the variables with windows NT shell

kover-features-jvm/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ afterEvaluate {
4444
compilerOptions {
4545
allWarningsAsErrors = true
4646
jvmTarget = JvmTarget.JVM_1_8
47-
languageVersion = KotlinVersion.KOTLIN_1_5
48-
apiVersion = KotlinVersion.KOTLIN_1_5
47+
languageVersion = KotlinVersion.KOTLIN_1_8
48+
apiVersion = KotlinVersion.KOTLIN_1_8
4949
freeCompilerArgs.addAll("-Xsuppress-version-warnings")
5050
}
5151
}

kover-gradle-plugin/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ dependencies {
5151
functionalTestImplementation(kotlin("test"))
5252
functionalTestImplementation(libs.junit.jupiter)
5353
functionalTestImplementation(libs.junit.params)
54+
"functionalTestRuntimeOnly"("org.junit.platform:junit-platform-launcher")
5455

5556
snapshotRelease(projects.koverFeaturesJvm)
5657
snapshotRelease(projects.koverJvmAgent)
@@ -60,7 +61,6 @@ dependencies {
6061
functionalTestImplementation("org.jetbrains.kotlin:kotlin-gradle-plugin:$embeddedKotlinVersion")
6162
functionalTestImplementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:$embeddedKotlinVersion")
6263
functionalTestImplementation("org.jetbrains.kotlin:kotlin-compiler-runner:$embeddedKotlinVersion")
63-
6464
}
6565

6666
kotlin {
@@ -163,8 +163,8 @@ afterEvaluate {
163163
compilerOptions {
164164
allWarningsAsErrors = true
165165
jvmTarget = JvmTarget.JVM_1_8
166-
languageVersion = KotlinVersion.KOTLIN_1_5
167-
apiVersion = KotlinVersion.KOTLIN_1_5
166+
languageVersion = KotlinVersion.KOTLIN_1_8
167+
apiVersion = KotlinVersion.KOTLIN_1_8
168168
freeCompilerArgs.add("-Xsuppress-version-warnings")
169169
}
170170
}
@@ -183,8 +183,8 @@ tasks.dokkaHtml {
183183
skipDeprecated = true
184184
}
185185
sourceLink {
186-
localDirectory = rootDir
187-
remoteUrl = URL("https://github.com/kotlin/kotlinx-kover/tree/main")
186+
localDirectory.set(file(rootDir))
187+
remoteUrl.set(URL("https://github.com/kotlin/kotlinx-kover/tree/main"))
188188
remoteLineSuffix = "#L"
189189
}
190190
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
2-
id("com.android.application") version "7.4.0" apply false
3-
id("com.android.library") version "7.4.0" apply false
2+
id("com.android.application") version "8.12.0" apply false
3+
id("com.android.library") version "8.12.0" apply false
44
id ("com.android.dynamic-feature") version "7.4.0" apply false
5-
id("org.jetbrains.kotlin.android") version "1.8.20" apply false
5+
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
66
id("org.jetbrains.kotlinx.kover") version "0.9.2" apply false
77
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
2-
id("com.android.application") version "7.4.0" apply false
3-
id("com.android.library") version "7.4.0" apply false
4-
id("org.jetbrains.kotlin.android") version "1.8.20" apply false
2+
id("com.android.application") version "8.12.0" apply false
3+
id("com.android.library") version "8.12.0" apply false
4+
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
55
id("org.jetbrains.kotlinx.kover") version "0.9.2" apply false
66
}

0 commit comments

Comments
 (0)