Skip to content

Commit f1b399d

Browse files
committed
render current closure compiler version on the page
1 parent 6fc9e50 commit f1b399d

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,27 @@
128128

129129
<build>
130130
<plugins>
131+
<plugin>
132+
<groupId>org.apache.maven.plugins</groupId>
133+
<artifactId>maven-antrun-plugin</artifactId>
134+
<version>3.1.0</version>
135+
<executions>
136+
<execution>
137+
<phase>process-resources</phase>
138+
<goals>
139+
<goal>run</goal>
140+
</goals>
141+
<configuration>
142+
<target>
143+
<replace file="${project.build.directory}/classes/META-INF/resources/index.html">
144+
<replacetoken>@@closure-compiler.version@@</replacetoken>
145+
<replacevalue>${closure-compiler.version}</replacevalue>
146+
</replace>
147+
</target>
148+
</configuration>
149+
</execution>
150+
</executions>
151+
</plugin>
131152
<plugin>
132153
<groupId>${quarkus.platform.group-id}</groupId>
133154
<artifactId>quarkus-maven-plugin</artifactId>

src/main/resources/META-INF/resources/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<header class="bg-blue-600 text-white p-4">
1212
<div class="container mx-auto flex justify-between items-center">
1313
<div class="nav-links flex items-center">
14-
<span class="left text-xl font-semibold">JS Compressor</span>
14+
<span class="left text-xl font-semibold">Closure Compiler version @@closure-compiler.version@@</span>
1515
</div>
1616

1717
<div class="nav-links hidden md:flex items-center space-x-6">

0 commit comments

Comments
 (0)