Skip to content

Commit

Permalink
Update build-logic/jvm/src/main/kotlin/buildlogic/BuildInfoTask.kt
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir Sitnikov <[email protected]>
Signed-off-by: Appu <[email protected]>
  • Loading branch information
loosebazooka and vlsi authored Jun 18, 2024
1 parent 3fbb763 commit c891d90
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build-logic/jvm/src/main/kotlin/buildlogic/BuildInfoTask.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ abstract class BuildInfoTask : DefaultTask() {
@TaskAction
fun run() {
val output = """
|package ${packageName.get()};
|
|public class BuildInfo {
| public static final String VERSION = "${version.get()}";
|}
""".trimMargin()
package ${packageName.get()};
public class BuildInfo {
public static final String VERSION = "${version.get()}";
}
""".trimIndent()
val outputPath = genDir.file(packageName.get().replace(".", "/").plus("/BuildInfo.java")).get().asFile
outputPath.parentFile.mkdirs()
outputPath.writeText(output)
Expand Down

0 comments on commit c891d90

Please sign in to comment.