Skip to content

Commit

Permalink
Fix :api:checkApi failing on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lukellmann authored and KSP Auto Pick committed Jul 5, 2023
1 parent 4b8d270 commit 81b1ed8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildSrc/src/main/kotlin/com/google/devtools/ksp/ApiCheck.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package com.google.devtools.ksp
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
import org.gradle.api.tasks.JavaExec
import java.io.File

val API_BASE_FILE="api.base"

Expand Down Expand Up @@ -74,7 +75,7 @@ private fun JavaExec.configureCommonMetalavaArgs(
}

private fun Project.getCompileClasspath(): String =
configurations.findByName("compileClasspath")!!.files.map { it.absolutePath }.joinToString(":")
configurations.findByName("compileClasspath")!!.files.map { it.absolutePath }.joinToString(File.pathSeparator)

private fun Project.getMetalavaConfiguration(): Configuration {
return configurations.findByName("metalava") ?: configurations.create("metalava") {
Expand Down

0 comments on commit 81b1ed8

Please sign in to comment.