We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fbb763 commit c891d90Copy full SHA for c891d90
build-logic/jvm/src/main/kotlin/buildlogic/BuildInfoTask.kt
@@ -24,12 +24,12 @@ abstract class BuildInfoTask : DefaultTask() {
24
@TaskAction
25
fun run() {
26
val output = """
27
- |package ${packageName.get()};
28
- |
29
- |public class BuildInfo {
30
- | public static final String VERSION = "${version.get()}";
31
- |}
32
- """.trimMargin()
+ package ${packageName.get()};
+
+ public class BuildInfo {
+ public static final String VERSION = "${version.get()}";
+ }
+ """.trimIndent()
33
val outputPath = genDir.file(packageName.get().replace(".", "/").plus("/BuildInfo.java")).get().asFile
34
outputPath.parentFile.mkdirs()
35
outputPath.writeText(output)
0 commit comments