Skip to content

Commit 2bd4008

Browse files
committed
fix: artifacts
1 parent d999519 commit 2bd4008

File tree

7 files changed

+42
-17
lines changed

7 files changed

+42
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,4 @@ yarn.lock
7878
index.html
7979
README.html
8080
public/
81+
pom.xml.versionsBackup

artifacts.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
transactional-outbox-pattern-jpa-starter,1.0.0-SNAPSHOT
2-
drools-engine-starter,1.0.0-SNAPSHOT
3-
aws-dynamodb-enhanced-client-repository-starter,1.0.0-SNAPSHOT
1+
transactional-outbox-pattern-jpa-starter,1.0.0
2+
drools-engine-starter,1.0.0
3+
aws-dynamodb-enhanced-client-repository-starter,1.0.0

aws-dynamodb-enhanced-client-repository-starter/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<parent>
99
<groupId>io.github.bhuwanupadhyay</groupId>
1010
<artifactId>spring-boot-artifacts-parent</artifactId>
11-
<version>0.0.1</version>
11+
<version>0.0.2</version>
1212
</parent>
1313

1414
<artifactId>aws-dynamodb-enhanced-client-repository-starter</artifactId>
15-
<version>1.0.0-SNAPSHOT</version>
15+
<version>1.0.0</version>
1616
<name>AWS DynamoDB Enhanced Client Repository Starter</name>
1717
<description>Library for AWS DynamoDB Enhanced Client for DynamoRepository with zero configuration</description>
1818

builder.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env sh
2-
set -e
32

4-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
3+
SCRIPT_DIR="$(dirname "$0")"
54

65
assert_value() {
76
if [ -z "$1" ]; then
@@ -30,21 +29,23 @@ deploy_parent(){
3029
build(){
3130
build_parent
3231
## Execute Command on Artifacts
33-
while IFS=, read -r artifactId version; do
32+
while IFS=, read -r artifactId tag; do
3433
echo "--------------------------------------------------------------------------"
35-
echo "$artifactId:$version"
34+
echo "=> $artifactId:$tag"
3635
echo "--------------------------------------------------------------------------"
37-
$MVN_CMD clean package -f "$artifactId"/pom.xml
36+
$MVN_CMD clean versions:set -DnewVersion="$tag" -f "$artifactId/pom.xml"
37+
$MVN_CMD package -f "$artifactId/pom.xml"
3838
done <"$SCRIPT_DIR/artifacts.csv"
3939
}
4040

4141
deploy_artifacts(){
4242
## Execute Command on Artifacts
4343
while IFS=, read -r artifactId version; do
4444
echo "--------------------------------------------------------------------------"
45-
echo "$artifactId:$version"
45+
echo "=> $artifactId:$version"
4646
echo "--------------------------------------------------------------------------"
47-
$MVN_CMD clean deploy -P release -DskipTests=true -f "$artifactId"/pom.xml
47+
$MVN_CMD clean versions:set -DnewVersion="$tag" -f "$artifactId/pom.xml"
48+
$MVN_CMD deploy -P release -DskipTests=true -f "$artifactId/pom.xml"
4849
done <"$SCRIPT_DIR/artifacts.csv"
4950
}
5051

drools-engine-starter/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<parent>
99
<groupId>io.github.bhuwanupadhyay</groupId>
1010
<artifactId>spring-boot-artifacts-parent</artifactId>
11-
<version>0.0.1</version>
11+
<version>0.0.2</version>
1212
</parent>
1313

1414
<artifactId>drools-engine-starter</artifactId>
15-
<version>1.0.0-SNAPSHOT</version>
15+
<version>1.0.0</version>
1616
<name>Drools Engine Starter</name>
1717
<description>Library for Drools Engine for KieSession with zero configuration</description>
1818

spring-boot-artifacts-parent/pom.xml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>io.github.bhuwanupadhyay</groupId>
77
<artifactId>spring-boot-artifacts-parent</artifactId>
8-
<version>0.0.1</version>
8+
<version>0.0.2</version>
99
<name>Spring Boot Artifacts Parent</name>
1010
<description>This is collection for spring boot starters project for popular various tools</description>
1111

@@ -130,6 +130,29 @@
130130
<artifactId>maven-surefire-plugin</artifactId>
131131
<version>3.0.0-M5</version>
132132
</plugin>
133+
<plugin>
134+
<groupId>org.codehaus.mojo</groupId>
135+
<artifactId>versions-maven-plugin</artifactId>
136+
<version>2.8.1</version>
137+
</plugin>
138+
<plugin>
139+
<groupId>org.apache.maven.plugins</groupId>
140+
<artifactId>maven-enforcer-plugin</artifactId>
141+
<version>3.0.0-M3</version>
142+
<executions>
143+
<execution>
144+
<id>enforce</id>
145+
<configuration>
146+
<rules>
147+
<dependencyConvergence/>
148+
</rules>
149+
</configuration>
150+
<goals>
151+
<goal>enforce</goal>
152+
</goals>
153+
</execution>
154+
</executions>
155+
</plugin>
133156
</plugins>
134157
</build>
135158

transactional-outbox-pattern-jpa-starter/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<parent>
99
<groupId>io.github.bhuwanupadhyay</groupId>
1010
<artifactId>spring-boot-artifacts-parent</artifactId>
11-
<version>0.0.1</version>
11+
<version>0.0.2</version>
1212
</parent>
1313

1414
<artifactId>transactional-outbox-pattern-jpa-starter</artifactId>
15-
<version>1.0.0-SNAPSHOT</version>
15+
<version>1.0.0</version>
1616
<name>Transactional Outbox Pattern JPA Starter</name>
1717
<description>Library for Transaction Outbox Pattern using Spring Boot JPA with zero configuration</description>
1818

0 commit comments

Comments
 (0)