Skip to content

Commit 49ce5c0

Browse files
committed
Add a new task to our Gradle configuration: printCompileClasspath
Run with `./third_party/gradlew printCompileClasspath --no-configuration-cache ` This task lists out all jars used when compiling an IntelliJ plugin.
1 parent 27f9ebb commit 49ce5c0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,15 @@ tasks {
232232
}
233233
}
234234
}
235+
236+
// A task to print the classpath used for compiling an IntelliJ plugin
237+
// Run with `./third_party/gradlew printCompileClasspath --no-configuration-cache `
238+
tasks.register("printCompileClasspath") {
239+
doLast {
240+
println("--- Begin Compile Classpath ---")
241+
configurations.getByName("compileClasspath").forEach { file ->
242+
println(file.absolutePath)
243+
}
244+
println("--- End Compile Classpath ---")
245+
}
246+
}

0 commit comments

Comments
 (0)