Skip to content

Commit

Permalink
OT-1147: Updated pom.xml and settings.xml to use elimu-codeartifact (#…
Browse files Browse the repository at this point in the history
…420)

Co-authored-by: djain <[email protected]>
  • Loading branch information
ddjain and djain authored Mar 11, 2024
1 parent 62614b3 commit 3b97190
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 57 deletions.
8 changes: 4 additions & 4 deletions a2d2-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
<dependency>
<groupId>io.elimu.a2d2</groupId>
<artifactId>generic-helpers</artifactId>
<version>0.0.17</version>
<version>0.0.18</version>
<scope>test</scope>
</dependency>
<!-- web development, including Tomcat and spring-webmvc -->
Expand Down Expand Up @@ -653,9 +653,9 @@
</dependencies>
<distributionManagement>
<repository>
<id>elimu-a2d2-api</id>
<name>elimu-a2d2-api</name>
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/a2d2-api/</url>
<id>elimu-elimu-codeartifact</id>
<name>elimu-elimu-codeartifact</name>
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/elimu-codeartifact/</url>
</repository>
</distributionManagement>
<build>
Expand Down
30 changes: 15 additions & 15 deletions a2d2-settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,6 @@
</repository>
</repositories>
</profile>
<profile>
<id>elimu-a2d2-api</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>elimu-a2d2-api</id>
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/a2d2-api/</url>
</repository>
</repositories>
</profile>
<profile>
<id>elimu-java-commons</id>
<activation>
Expand All @@ -55,20 +43,32 @@
</repository>
</repositories>
</profile>
<profile>
<id>elimu-elimu-codeartifact</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>elimu-elimu-codeartifact</id>
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/elimu-codeartifact/</url>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>elimu-a2d2-api</id>
<id>elimu-ecdm</id>
<username>aws</username>
<password>${env.CODEARTIFACT_AUTH_TOKEN}</password>
</server>
<server>
<id>elimu-ecdm</id>
<id>elimu-java-commons</id>
<username>aws</username>
<password>${env.CODEARTIFACT_AUTH_TOKEN}</password>
</server>
<server>
<id>elimu-java-commons</id>
<id>elimu-elimu-codeartifact</id>
<username>aws</username>
<password>${env.CODEARTIFACT_AUTH_TOKEN}</password>
</server>
Expand Down
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

sub_projects=($(find "$(pwd)" -maxdepth 1 -type d -not -path "$(pwd)" -exec test -e '{}/pom.xml' ';' -printf '%f\n'))

mvn deploy --settings a2d2-settings.xml -Durl=https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/a2d2-api/ -DpomFile=pom.xml -DrepositoryId=elimu-a2d2-api -DupdateReleaseInfo=true -DskipTests -U
mvn deploy --settings a2d2-settings.xml -Durl=https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/elimu-codeartifact/ -DpomFile=pom.xml -DrepositoryId=elimu-elimu-codeartifact -DupdateReleaseInfo=true -DskipTests -U

for sub_project in "${sub_projects[@]}"; do
cd "$sub_project" || exit 1
mvn deploy --settings ../a2d2-settings.xml -Durl=https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/a2d2-api/ -DpomFile=pom.xml -DrepositoryId=elimu-a2d2-api -DupdateReleaseInfo=true -DskipTests -U
mvn deploy --settings ../a2d2-settings.xml -Durl=https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/elimu-codeartifact/ -DpomFile=pom.xml -DrepositoryId=elimu-elimu-codeartifact -DupdateReleaseInfo=true -DskipTests -U
cd ..
done
12 changes: 6 additions & 6 deletions fhir-helpers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@
<version>${kotlin-stdlib.version}</version>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>elimu-a2d2-api</id>
<name>elimu-a2d2-api</name>
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/a2d2-api/</url>
</repository>
<distributionManagement>
<repository>
<id>elimu-elimu-codeartifact</id>
<name>elimu-elimu-codeartifact</name>
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/elimu-codeartifact/</url>
</repository>
</distributionManagement>
<build>
<plugins>
Expand Down
2 changes: 1 addition & 1 deletion generic-helpers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<version>0.0.9-SNAPSHOT</version>
</parent>
<artifactId>generic-helpers</artifactId>
<version>0.0.17</version>
<version>0.0.18</version>
<name>Base helpers for the Generic services</name>
<description>Contains WIHInvoker</description>

Expand Down
2 changes: 1 addition & 1 deletion oauth-helpers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</parent>

<artifactId>oauth-helpers</artifactId>
<version>0.0.17</version>
<version>0.0.18</version>
<description>OAuth Helper</description>

<properties>
Expand Down
30 changes: 5 additions & 25 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
<groupId>${project.groupId}</groupId>
<artifactId>generic-helpers</artifactId>
<!--version>${cds.helper.version}</version-->
<version>0.0.17</version>
<version>0.0.18</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down Expand Up @@ -526,32 +526,12 @@
</dependencyManagement>
<distributionManagement>
<repository>
<id>elimu-a2d2-api</id>
<name>elimu-a2d2-api</name>
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/a2d2-api/</url>
<id>elimu-elimu-codeartifact</id>
<name>elimu-elimu-codeartifact</name>
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/elimu-codeartifact/</url>
</repository>
</distributionManagement>
<repositories>
<repository>
<id>maven-central</id>
<name>Maven Central</name>
<url>https://repo.maven.apache.org/maven2/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
<repository>
<id>elimu-a2d2-api</id>
<name>elimu-a2d2-api</name>
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/a2d2-api/</url>
</repository>
</repositories>

<build>
<plugins>
<plugin>
Expand Down
6 changes: 3 additions & 3 deletions task-utilities/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@
</dependencies>
<distributionManagement>
<repository>
<id>elimu-a2d2-api</id>
<name>elimu-a2d2-api</name>
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/a2d2-api/</url>
<id>elimu-elimu-codeartifact</id>
<name>elimu-elimu-codeartifact</name>
<url>https://elimu-435911253355.d.codeartifact.us-west-2.amazonaws.com/maven/elimu-codeartifact/</url>
</repository>
</distributionManagement>
<build>
Expand Down

0 comments on commit 3b97190

Please sign in to comment.