Skip to content

Commit 303e81b

Browse files
committed
fix: proper tfidf_licenses.bin path after migration to project.layout
1 parent d3b0e6e commit 303e81b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/license-gather-plugin/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ tasks {
9292
classpath(sourceSets.main.map { it.runtimeClasspath })
9393
classpath(allLicenseTextsDir)
9494
mainClass.set("com.github.vlsi.gradle.license.SpdxPredictorKt")
95-
args("$output/com/github/vlsi/gradle/license/api/models/tfidf_licenses.bin")
95+
argumentProviders += CommandLineArgumentProvider {
96+
listOf(
97+
output.get().file("com/github/vlsi/gradle/license/api/models/tfidf_licenses.bin").asFile.absolutePath
98+
)
99+
}
96100
}
97101

98102
val copyTfidf by registering(Copy::class) {

0 commit comments

Comments
 (0)