Skip to content

Commit

Permalink
! improve archetype: use project.version instead of hard-code version
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Jan 9, 2021
1 parent 5015dce commit 2ac8c6b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,22 @@
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-client</artifactId>
<version>${version}</version>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-app</artifactId>
<version>${version}</version>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-domain</artifactId>
<version>${version}</version>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-infrastructure</artifactId>
<version>${version}</version>
<version>${project.version}</version>
</dependency>
<!--Project modules End-->
<!--Spring Boot-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,27 +57,27 @@
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-adapter</artifactId>
<version>${version}</version>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-client</artifactId>
<version>${version}</version>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-app</artifactId>
<version>${version}</version>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-domain</artifactId>
<version>${version}</version>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-infrastructure</artifactId>
<version>${version}</version>
<version>${project.version}</version>
</dependency>
<!--Project modules End-->
<!--Spring Boot-->
Expand Down
8 changes: 6 additions & 2 deletions scripts/integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ cleanMavenInstallOfColaInMavenLocalRepository
readonly artifactId=demo-service

MVN archetype:generate \
-DgroupId=com.alibaba.cola.demo.archetype-service -DartifactId="$artifactId" -Dversion=1.0.0-SNAPSHOT \
-DgroupId=com.alibaba.cola.demo.archetype-service \
-DartifactId="$artifactId" \
-Dversion=1.0.0-SNAPSHOT \
-Dpackage=com.alibaba.cola.demo.service \
-DarchetypeGroupId=com.alibaba.cola \
-DarchetypeArtifactId=cola-framework-archetype-service \
Expand Down Expand Up @@ -86,7 +88,9 @@ cleanMavenInstallOfColaInMavenLocalRepository
readonly artifactId=demo-web

MVN archetype:generate \
-DgroupId=com.alibaba.cola.demo.archetype-web -DartifactId="$artifactId" -Dversion=1.0.0-SNAPSHOT \
-DgroupId=com.alibaba.cola.demo.archetype-web \
-DartifactId="$artifactId" \
-Dversion=1.0.0-SNAPSHOT \
-Dpackage=com.alibaba.cola.demo.web \
-DarchetypeGroupId=com.alibaba.cola \
-DarchetypeArtifactId=cola-framework-archetype-web \
Expand Down

0 comments on commit 2ac8c6b

Please sign in to comment.