Skip to content

Commit

Permalink
libs update
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosKozak committed Mar 3, 2024
1 parent c4cd90d commit 1beb6ea
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ allprojects {
apply(from = "jacoco_aggregation.gradle.kts")

tasks.register<Delete>("clean").configure {
delete(rootProject.buildDir)
delete(rootProject.layout.buildDirectory)
}
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
object KtsBuildVersions {

const val gradle = "8.2.0"
const val kotlin = "1.9.10"
const val kotlin = "1.9.22"
}

plugins {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Libs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ object Libs {

object Kotlin {

const val kotlin = "1.9.10"
const val kotlin = "1.9.22"

const val stdlibJdk8 = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin"
const val reflect = "org.jetbrains.kotlin:kotlin-reflect:$kotlin"
Expand Down
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/jacoco-app-dependencies.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ fun Project.registerCodeCoverageTask(
description = "Generate Jacoco coverage reports on the ${sourceName.replaceFirstChar(Char::titlecase)} build."

val javaDirectories = fileTree(
"${project.buildDir}/intermediates/classes/${sourcePath}"
"${project.layout.buildDirectory}/intermediates/classes/${sourcePath}"
) { exclude(excludedFiles) }

val kotlinDirectories = fileTree(
"${project.buildDir}/tmp/kotlin-classes/${sourcePath}"
"${project.layout.buildDirectory}/tmp/kotlin-classes/${sourcePath}"
) { exclude(excludedFiles) }

val coverageSrcDirectories = listOf(
Expand All @@ -137,7 +137,7 @@ fun Project.registerCodeCoverageTask(
additionalClassDirs.setFrom(files(coverageSrcDirectories))
sourceDirectories.setFrom(files(coverageSrcDirectories))
executionData.setFrom(
files("${project.buildDir}/jacoco/${testTaskName}.exec")
files("${project.layout.buildDirectory}/jacoco/${testTaskName}.exec")
)

reports {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ fun Project.registerCodeCoverageTask(
description = "Generate Jacoco coverage reports on the ${sourceName.replaceFirstChar(Char::titlecase)} build."

val javaDirectories = fileTree(
"${project.buildDir}/intermediates/classes/${sourcePath}"
"${project.layout.buildDirectory}/intermediates/classes/${sourcePath}"
) { exclude(excludedFiles) }

val kotlinDirectories = fileTree(
"${project.buildDir}/tmp/kotlin-classes/${sourcePath}"
"${project.layout.buildDirectory}/tmp/kotlin-classes/${sourcePath}"
) { exclude(excludedFiles) }

val coverageSrcDirectories = listOf(
Expand All @@ -137,7 +137,7 @@ fun Project.registerCodeCoverageTask(
additionalClassDirs.setFrom(files(coverageSrcDirectories))
sourceDirectories.setFrom(files(coverageSrcDirectories))
executionData.setFrom(
files("${project.buildDir}/jacoco/${testTaskName}.exec")
files("${project.layout.buildDirectory}/jacoco/${testTaskName}.exec")
)

reports {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Sep 18 18:21:09 CEST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
8 changes: 4 additions & 4 deletions jacoco_aggregation.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ project.afterEvaluate {
val classesDirectories = mutableListOf<String>().also {
subprojects.forEach { proj ->
variants.forEach { variant ->
it.add("${proj.buildDir}/intermediates/javac/$variant/classes")
it.add("${proj.buildDir}/tmp/kotlin-classes/$variant")
it.add("${proj.layout.buildDirectory}/intermediates/javac/$variant/classes")
it.add("${proj.layout.buildDirectory}/tmp/kotlin-classes/$variant")
}
}
}
Expand Down Expand Up @@ -71,12 +71,12 @@ project.afterEvaluate {
val executions = mutableListOf<String>().also {
subprojects.forEach { proj ->
variants.forEach { variant ->
val path = "${proj.buildDir}/outputs/unit_test_code_coverage/${variant}UnitTest/test${variant.replaceFirstChar(Char::titlecase)}UnitTest.exec"
val path = "${proj.layout.buildDirectory}/outputs/unit_test_code_coverage/${variant}UnitTest/test${variant.replaceFirstChar(Char::titlecase)}UnitTest.exec"
if ((File(path)).exists()) {
it.add(path)
println("Collecting execution data from: $path")
}
val androidPath = "${proj.buildDir}/outputs/code_coverage/${variant}AndroidTest/connected/"
val androidPath = "${proj.layout.buildDirectory}/outputs/code_coverage/${variant}AndroidTest/connected/"
val androidFiles = fileTree(androidPath)
androidFiles.forEach { file ->
it.add(file.path)
Expand Down

0 comments on commit 1beb6ea

Please sign in to comment.