Skip to content

Commit 8782cd0

Browse files
committed
Fix licenses when not building in project directory
1 parent 1858aff commit 8782cd0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build-logic/convention/src/main/kotlin/AndroidAppConventionPlugin.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import org.gradle.api.internal.provider.Providers
1717
import org.gradle.kotlin.dsl.configure
1818
import org.gradle.kotlin.dsl.withType
1919
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
20-
import java.io.File
2120

2221
/**
2322
* The prototype of an Android Application
@@ -143,7 +142,7 @@ class AndroidAppConventionPlugin : AndroidBaseConventionPlugin() {
143142

144143
target.configure<AboutLibrariesExtension> {
145144
collect {
146-
configPath.set(File("licenses").takeIf { it.exists() })
145+
configPath.set(target.file("licenses").takeIf { it.exists() })
147146
fetchRemoteLicense.set(false)
148147
fetchRemoteFunding.set(false)
149148
includePlatform.set(false)

0 commit comments

Comments
 (0)