Skip to content

Commit

Permalink
Explicitly add designer.properties
Browse files Browse the repository at this point in the history
and use resource filtering.
Follow-up on 1548f5f
  • Loading branch information
adangel committed Jan 7, 2025
1 parent e61f64e commit e87a453
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 29 deletions.
37 changes: 8 additions & 29 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,16 @@
</includes>
<excludes>
<exclude>**/*.less</exclude>
<exclude>net/sourceforge/pmd/util/fxdesigner/designer.properties</exclude>
</excludes>
</resource>
<resource>
<directory>${project.basedir}/src/main/resources/</directory>
<includes>
<include>net/sourceforge/pmd/util/fxdesigner/designer.properties</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>


Expand Down Expand Up @@ -381,35 +389,6 @@
</executions>
</plugin>

<plugin>
<groupId>com.internetitem</groupId>
<artifactId>write-properties-file-maven-plugin</artifactId>
<version>2.0.0</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>write-properties-file</goal>
</goals>
<configuration>
<filename>
net/sourceforge/pmd/util/fxdesigner/designer.properties
</filename>
<properties>
<property>
<name>pmd.designer.version</name>
<value>${pmd.designer.version}</value>
</property>
<property>
<name>pmd.core.version</name>
<value>${pmd.core.version}</value>
</property>
</properties>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Loaded in net.sourceforge.pmd.util.fxdesigner.DesignerVersion
# The variables are replaced by resource filtering, see https://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

pmd.designer.version=${pmd.designer.version}
pmd.core.version=${pmd.core.version}

0 comments on commit e87a453

Please sign in to comment.