Skip to content

Commit

Permalink
chore(gradle-inspector): Rename the init.gradle template
Browse files Browse the repository at this point in the history
Keep the `.gradle` extension to get syntax highlighting for the file in
the IDE.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Sep 6, 2024
1 parent f57e046 commit 7373195
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class GradleInspector(
val toolsDir = ortToolsDirectory.resolve(managerName).apply { safeMkdirs() }
val pluginJar = extractResource("/gradle-plugin.jar", toolsDir.resolve("gradle-plugin.jar"))

val initScriptText = javaClass.getResource("/init.gradle.template").readText()
val initScriptText = javaClass.getResource("/template.init.gradle").readText()
.replace("<REPLACE_PLUGIN_JAR>", pluginJar.invariantSeparatorsPath)

val initScript = toolsDir.resolve("init.gradle")
Expand Down

0 comments on commit 7373195

Please sign in to comment.