Skip to content

Commit

Permalink
don't override maven-resources-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Jun 11, 2024
1 parent b33d4b4 commit d89f7c1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 31 deletions.
2 changes: 1 addition & 1 deletion generators/server/templates/gradle/profile_dev.gradle.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ processResources {
inputs.property('springProfiles', springProfiles)
filesMatching("**/application.yml") {
filter {
it.replace("#project.version#", version)
it.replace("@project.version@", version)
}
<%_ if (!serviceDiscoveryAny) { _%>
filter {
Expand Down
2 changes: 1 addition & 1 deletion generators/server/templates/gradle/profile_prod.gradle.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ processResources {
inputs.property('springProfiles', springProfiles)
filesMatching("**/application.yml") {
filter {
it.replace("#project.version#", version)
it.replace("@project.version@", version)
}
<%_ if (!serviceDiscoveryAny) { _%>
filter {
Expand Down
26 changes: 0 additions & 26 deletions generators/server/templates/pom.xml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -490,32 +490,6 @@
</rules>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<executions>
<execution>
<id>config-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
<resources>
<resource>
<directory><%= SERVER_MAIN_RES_DIR %></directory>
<filtering>true</filtering>
<includes>
<include>config/*.yml</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ spring:
prefer-ip-address: true
tags:
- profile=${spring.profiles.active}
- version=#project.version#
- version='@project.version@'
- git-version=${git.commit.id.describe:}
- git-commit=${git.commit.id.abbrev:}
- git-branch=${git.branch:}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ eureka:
metadata-map:
zone: primary # This is needed for the load balancer
profile: ${spring.profiles.active}
version: #project.version#
version: '@project.version@'
git-version: ${git.commit.id.describe:}
git-commit: ${git.commit.id.abbrev:}
git-branch: ${git.branch:}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spring:
discovery:
tags:
- profile=${spring.profiles.active}
- version=#project.version#
- version='@project.version@'
- git-version=${git.commit.id.describe:}
- git-commit=${git.commit.id.abbrev:}
- git-branch=${git.branch:}
Expand Down

0 comments on commit d89f7c1

Please sign in to comment.