[BAEL-18774] - extracted versions into properties

This commit is contained in:
amit.pandey 2019-12-24 17:17:09 +05:30
parent fe17c22c81
commit b99b7b8b25
18 changed files with 85 additions and 40 deletions

View File

@ -97,8 +97,8 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<configuration> <configuration>
<source>8</source> <source>${source.version}</source>
<target>8</target> <target>${target.version}</target>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
@ -121,8 +121,8 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<configuration> <configuration>
<source>8</source> <source>${source.version}</source>
<target>8</target> <target>${target.version}</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
@ -156,8 +156,8 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<configuration> <configuration>
<source>1.8</source> <source>${source.version}</source>
<target>1.8</target> <target>${target.version}</target>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
@ -168,6 +168,8 @@
<properties> <properties>
<javers.version>5.6.3</javers.version> <javers.version>5.6.3</javers.version>
<git-commit-id-plugin.version>2.2.4</git-commit-id-plugin.version> <git-commit-id-plugin.version>2.2.4</git-commit-id-plugin.version>
<source.version>1.8</source.version>
<target.version>1.8</target.version>
</properties> </properties>
</project> </project>

View File

@ -20,7 +20,7 @@
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId> <artifactId>spring-boot-starter-data-jpa</artifactId>
<version>2.1.1.RELEASE</version> <version>${spring-boot.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
@ -38,6 +38,7 @@
<properties> <properties>
<java.version>1.8</java.version> <java.version>1.8</java.version>
<spring-boot.version>2.1.1.RELEASE</spring-boot.version>
<junit.version>4.11</junit.version> <junit.version>4.11</junit.version>
</properties> </properties>

View File

@ -52,7 +52,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<version>2.7</version> <version>${apache-maven.version}</version>
<configuration> <configuration>
<delimiters> <delimiters>
<delimiter>@</delimiter> <delimiter>@</delimiter>
@ -63,7 +63,7 @@
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version> <version>${exec-maven-plugin.version}</version>
<configuration> <configuration>
<mainClass>com.baeldung.propertyexpansion.SpringBootPropertyExpansionApp</mainClass> <mainClass>com.baeldung.propertyexpansion.SpringBootPropertyExpansionApp</mainClass>
</configuration> </configuration>
@ -74,6 +74,8 @@
<properties> <properties>
<spring-boot.version>1.5.10.RELEASE</spring-boot.version> <spring-boot.version>1.5.10.RELEASE</spring-boot.version>
<custom.property>Custom Property Value</custom.property> <custom.property>Custom Property Value</custom.property>
<apache-maven.version>2.7</apache-maven.version>
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
</properties> </properties>
</project> </project>

View File

@ -42,7 +42,7 @@
<dependency> <dependency>
<groupId>it.ozimov</groupId> <groupId>it.ozimov</groupId>
<artifactId>embedded-redis</artifactId> <artifactId>embedded-redis</artifactId>
<version>0.7.2</version> <version>${redis.version}</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- Spock & Spring --> <!-- Spock & Spring -->
@ -131,6 +131,7 @@
<git-commit-id-plugin.version>2.2.4</git-commit-id-plugin.version> <git-commit-id-plugin.version>2.2.4</git-commit-id-plugin.version>
<spock.version>1.2-groovy-2.4</spock.version> <spock.version>1.2-groovy-2.4</spock.version>
<gmavenplus-plugin.version>1.6</gmavenplus-plugin.version> <gmavenplus-plugin.version>1.6</gmavenplus-plugin.version>
<redis.version>0.7.2</redis.version>
</properties> </properties>
</project> </project>

View File

@ -50,7 +50,7 @@
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-aws</artifactId> <artifactId>spring-cloud-aws</artifactId>
<version>2.0.1.RELEASE</version> <version>${spring-cloud}</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
@ -60,6 +60,7 @@
<properties> <properties>
<start-class>com.baeldung.spring.cloud.aws.SpringCloudAwsApplication</start-class> <start-class>com.baeldung.spring.cloud.aws.SpringCloudAwsApplication</start-class>
<spring-cloud.version>Dalston.SR4</spring-cloud.version> <spring-cloud.version>Dalston.SR4</spring-cloud.version>
<spring-cloud>2.0.1.RELEASE</spring-cloud>
</properties> </properties>
</project> </project>

View File

@ -36,7 +36,7 @@
<plugin> <plugin>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-maven-plugin</artifactId> <artifactId>spring-cloud-contract-maven-plugin</artifactId>
<version>2.1.1.RELEASE</version> <version>${spring-cloud.version}</version>
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<baseClassForTests>com.baeldung.spring.cloud.springcloudcontractproducer.BaseTestClass <baseClassForTests>com.baeldung.spring.cloud.springcloudcontractproducer.BaseTestClass
@ -45,4 +45,8 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<properties>
<spring-cloud.version>2.1.1.RELEASE</spring-cloud.version>
</properties>
</project> </project>

View File

@ -65,7 +65,7 @@
<dependency> <dependency>
<groupId>org.springframework.boot.experimental</groupId> <groupId>org.springframework.boot.experimental</groupId>
<artifactId>spring-boot-thin-layout</artifactId> <artifactId>spring-boot-thin-layout</artifactId>
<version>1.0.10.RELEASE</version> <version>${spring-boot-thin.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
@ -88,6 +88,7 @@
<aws-lambda-events.version>2.0.2</aws-lambda-events.version> <aws-lambda-events.version>2.0.2</aws-lambda-events.version>
<aws-lambda-java-core.version>1.1.0</aws-lambda-java-core.version> <aws-lambda-java-core.version>1.1.0</aws-lambda-java-core.version>
<spring-boot.version>2.0.4.RELEASE</spring-boot.version> <spring-boot.version>2.0.4.RELEASE</spring-boot.version>
<spring-boot-thin.version>1.0.10.RELEASE</spring-boot-thin.version>
</properties> </properties>
</project> </project>

View File

@ -24,7 +24,7 @@
<dependency> <dependency>
<groupId>ch.qos.logback</groupId> <groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId> <artifactId>logback-classic</artifactId>
<version>1.2.3</version> <version>${logback.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
@ -71,6 +71,7 @@
<properties> <properties>
<spring-cloud-dependencies.version>Finchley.SR2</spring-cloud-dependencies.version> <spring-cloud-dependencies.version>Finchley.SR2</spring-cloud-dependencies.version>
<logback.version>1.2.3</logback.version>
</properties> </properties>
</project> </project>

View File

@ -174,7 +174,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId> <artifactId>maven-war-plugin</artifactId>
<version>3.2.2</version> <version>${maven.version}</version>
<configuration> <configuration>
<failOnMissingWebXml>false</failOnMissingWebXml> <failOnMissingWebXml>false</failOnMissingWebXml>
</configuration> </configuration>
@ -214,6 +214,7 @@
<assertj.version>3.6.1</assertj.version> <assertj.version>3.6.1</assertj.version>
<shedlock.version>2.1.0</shedlock.version> <shedlock.version>2.1.0</shedlock.version>
<javassist.version>3.22.0-GA</javassist.version> <javassist.version>3.22.0-GA</javassist.version>
<maven.version>3.2.2</maven.version>
</properties> </properties>
</project> </project>

View File

@ -72,8 +72,8 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<configuration> <configuration>
<source>1.8</source> <source>${maven.source}</source>
<target>1.8</target> <target>${maven.target}</target>
<compilerArgs> <compilerArgs>
<arg>-verbose</arg> <arg>-verbose</arg>
<arg>-parameters</arg> <arg>-parameters</arg>
@ -83,7 +83,7 @@
<plugin> <plugin>
<groupId>com.mysema.maven</groupId> <groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId> <artifactId>apt-maven-plugin</artifactId>
<version>1.1.3</version> <version>${mysema.version}</version>
<executions> <executions>
<execution> <execution>
<phase>generate-sources</phase> <phase>generate-sources</phase>
@ -99,5 +99,10 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<properties>
<maven.source>1.8</maven.source>
<maven.target>1.8</maven.target>
<mysema.version>1.1.3</mysema.version>
</properties>
</project> </project>

View File

@ -66,7 +66,7 @@
<plugin> <plugin>
<groupId>com.mysema.maven</groupId> <groupId>com.mysema.maven</groupId>
<artifactId>maven-apt-plugin</artifactId> <artifactId>maven-apt-plugin</artifactId>
<version>1.0</version> <version>${maven.version}</version>
<executions> <executions>
<execution> <execution>
<phase>generate-sources</phase> <phase>generate-sources</phase>
@ -90,6 +90,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<start-class>com.baeldung.books.SpringDataRestApplication</start-class> <start-class>com.baeldung.books.SpringDataRestApplication</start-class>
<maven.version>1.0</maven.version>
</properties> </properties>
</project> </project>

View File

@ -45,7 +45,7 @@
<version>${maven-ear-plugin.version}</version> <version>${maven-ear-plugin.version}</version>
<configuration> <configuration>
<defaultLibBundleDir>lib/</defaultLibBundleDir> <defaultLibBundleDir>lib/</defaultLibBundleDir>
<version>7</version> <version>${defaultLibBundleDir.version}</version>
<modules> <modules>
<webModule> <webModule>
<groupId>com.baeldung.wildfly</groupId> <groupId>com.baeldung.wildfly</groupId>
@ -66,6 +66,7 @@
<properties> <properties>
<maven-ear-plugin.version>2.10.1</maven-ear-plugin.version> <maven-ear-plugin.version>2.10.1</maven-ear-plugin.version>
<wildfly-maven-plugin.version>1.2.0.Final</wildfly-maven-plugin.version> <wildfly-maven-plugin.version>1.2.0.Final</wildfly-maven-plugin.version>
<defaultLibBundleDir.version>7</defaultLibBundleDir.version>
</properties> </properties>
</project> </project>

View File

@ -85,7 +85,7 @@
<dependency> <dependency>
<groupId>com.h2database</groupId> <groupId>com.h2database</groupId>
<artifactId>h2</artifactId> <artifactId>h2</artifactId>
<version>1.4.197</version> <version>${h2.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
@ -124,6 +124,7 @@
<javax-activation.version>1.1.1</javax-activation.version> <javax-activation.version>1.1.1</javax-activation.version>
<maven-eclipse-plugin.version>2.10</maven-eclipse-plugin.version> <maven-eclipse-plugin.version>2.10</maven-eclipse-plugin.version>
<exec-maven-plugin.version>1.5.0</exec-maven-plugin.version> <exec-maven-plugin.version>1.5.0</exec-maven-plugin.version>
<h2.version>1.4.197</h2.version>
</properties> </properties>
</project> </project>

View File

@ -38,7 +38,7 @@
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<version>1.5.10.RELEASE</version> <version>${spring-boot-test.version}</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
@ -64,6 +64,7 @@
<properties> <properties>
<springframework.version>4.3.4.RELEASE</springframework.version> <springframework.version>4.3.4.RELEASE</springframework.version>
<activemq.version>5.14.1</activemq.version> <activemq.version>5.14.1</activemq.version>
<spring-boot-test.version>1.5.10.RELEASE</spring-boot-test.version>
</properties> </properties>
</project> </project>

View File

@ -26,12 +26,12 @@
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId> <artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version> <version>${javax.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet.jsp</groupId> <groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId> <artifactId>javax.servlet.jsp-api</artifactId>
<version>2.3.3</version> <version>${javax-servlet-api.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
@ -53,19 +53,19 @@
<dependency> <dependency>
<groupId>org.aspectj</groupId> <groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId> <artifactId>aspectjrt</artifactId>
<version>1.9.1</version> <version>${aspectjrt.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.aspectj</groupId> <groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId> <artifactId>aspectjweaver</artifactId>
<version>1.9.1</version> <version>${aspectjweaver.version}</version>
</dependency> </dependency>
<!-- common --> <!-- common -->
<dependency> <dependency>
<groupId>net.sourceforge.htmlunit</groupId> <groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId> <artifactId>htmlunit</artifactId>
<version>2.32</version> <version>${htmlunit.version}</version>
<exclusions> <exclusions>
<exclusion> <exclusion>
<artifactId>commons-logging</artifactId> <artifactId>commons-logging</artifactId>
@ -99,7 +99,7 @@
<groupId>com.jayway.jsonpath</groupId> <groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId> <artifactId>json-path</artifactId>
<scope>test</scope> <scope>test</scope>
<version>2.4.0</version> <version>${json-path.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
@ -126,7 +126,7 @@
<dependency> <dependency>
<groupId>com.google.code.gson</groupId> <groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId> <artifactId>gson</artifactId>
<version>2.8.5</version> <version>${gson.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
@ -283,6 +283,13 @@
<poi.version>3.16-beta1</poi.version> <poi.version>3.16-beta1</poi.version>
<javax.el.version>3.0.1-b09</javax.el.version> <javax.el.version>3.0.1-b09</javax.el.version>
<javax.version>4.0.1</javax.version>
<javax-servlet-api.version>2.3.3</javax-servlet-api.version>
<aspectjrt.version>1.9.1</aspectjrt.version>
<aspectjweaver.version>1.9.1</aspectjweaver.version>
<htmlunit.version>2.32</htmlunit.version>
<json-path.version>2.4.0</json-path.version>
<gson.version>2.8.5</gson.version>
<start-class>com.baeldung.SpringMVCApplication</start-class> <start-class>com.baeldung.SpringMVCApplication</start-class>
</properties> </properties>

View File

@ -31,7 +31,7 @@
<dependency> <dependency>
<groupId>com.caucho</groupId> <groupId>com.caucho</groupId>
<artifactId>hessian</artifactId> <artifactId>hessian</artifactId>
<version>4.0.38</version> <version>${hessian.version}</version>
</dependency> </dependency>
<!-- test --> <!-- test -->
@ -58,5 +58,8 @@
</dependency> </dependency>
<!-- test --> <!-- test -->
</dependencies> </dependencies>
<properties>
<hessian.version>4.0.38</hessian.version>
</properties>
</project> </project>

View File

@ -19,25 +19,25 @@
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
<version>2.0.3.RELEASE</version> <version>${spring-boot.version}</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa --> <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId> <artifactId>spring-boot-starter-data-jpa</artifactId>
<version>2.0.3.RELEASE</version> <version>${spring-boot.version}</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-rest-hal-browser --> <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-rest-hal-browser -->
<dependency> <dependency>
<groupId>org.springframework.data</groupId> <groupId>org.springframework.data</groupId>
<artifactId>spring-data-rest-hal-browser</artifactId> <artifactId>spring-data-rest-hal-browser</artifactId>
<version>3.0.8.RELEASE</version> <version>${spring-data.version}</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/com.h2database/h2 --> <!-- https://mvnrepository.com/artifact/com.h2database/h2 -->
<dependency> <dependency>
<groupId>com.h2database</groupId> <groupId>com.h2database</groupId>
<artifactId>h2</artifactId> <artifactId>h2</artifactId>
<version>1.4.197</version> <version>${h2.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
@ -47,11 +47,19 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<configuration> <configuration>
<source>1.8</source> <source>${source.version}</source>
<target>1.8</target> <target>${target.version}</target>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<properties>
<spring-boot.version>2.0.3.RELEASE</spring-boot.version>
<spring-data.version>3.0.8.RELEASE</spring-data.version>
<h2.version>1.4.197</h2.version>
<source.version>1.8</source.version>
<target.version>1.8</target.version>
</properties>
</project> </project>

View File

@ -125,7 +125,7 @@
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>4.12</version> <version>${junit.version}</version>
</dependency> </dependency>
<dependency> <dependency>
@ -162,10 +162,10 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version> <version>${maven.version}</version>
<configuration> <configuration>
<source>1.8</source> <source>${source.version}</source>
<target>1.8</target> <target>${target.version}</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
@ -308,6 +308,10 @@
<!-- okhttp --> <!-- okhttp -->
<com.squareup.okhttp3.version>3.4.1</com.squareup.okhttp3.version> <com.squareup.okhttp3.version>3.4.1</com.squareup.okhttp3.version>
<pact.version>3.5.11</pact.version> <pact.version>3.5.11</pact.version>
<source.version>1.8</source.version>
<target.version>1.8</target.version>
<junit.version>4.12</junit.version>
<maven.version>3.7.0</maven.version>
</properties> </properties>
</project> </project>