Skip to content

Commit

Permalink
ci(release) normalize repositories, need to deploy to -local versions…
Browse files Browse the repository at this point in the history
… not virtual (#28521)

### Proposed Changes
* We should use consistent top level repository configuration
* In distributionManagement section we need to realize we have to push
to "local" repository. The usual repository e.g. dotcms-libs is a
virtual repository that links to this but also connects to other repos
like maven central.

Co-authored-by: Daniel Enrique Colina Rodríguez <[email protected]>
  • Loading branch information
spbolton and dcolina authored May 10, 2024
1 parent 4e41b78 commit 25dbaba
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .github/actions/deploy-artifact-artifactory/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ runs:
- name: 'Maven settings.xml setup'
uses: whelk-io/maven-settings-xml-action@v22
with:
servers: '[{ "id": "dotcms-libs", "username": "${{ inputs.artifactory-repo-username }}", "password": "${{ inputs.artifactory-repo-password }}" }, { "id": "dotcms-libs-snapshot", "username": "${{ inputs.artifactory-repo-username }}", "password": "${{ inputs.artifactory-repo-password }}" }]'
servers: '[{ "id": "dotcms-libs-local", "username": "${{ inputs.artifactory-repo-username }}", "password": "${{ inputs.artifactory-repo-password }}" }, { "id": "dotcms-libs-snapshot-local", "username": "${{ inputs.artifactory-repo-username }}", "password": "${{ inputs.artifactory-repo-password }}" }]'

# Artifact deployment in the Artifactory excluding 'dotcms-integration' and 'dotcms-postman'
- name: 'Deploy Artifacts'
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/maven-release-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,7 @@ jobs:
- name: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v20
with:
repositories: '[{ "id": "dotcms-libs", "name": "DotCMS libs Release", "url": "https://repo.dotcms.com/artifactory/libs-release" }]'
servers: '[{ "id": "dotcms-libs", "username": "${{ secrets.EE_REPO_USERNAME }}", "password": "${{ secrets.EE_REPO_PASSWORD }}" }]'
servers: '[{ "id": "dotcms-libs-local", "username": "${{ secrets.EE_REPO_USERNAME }}", "password": "${{ secrets.EE_REPO_PASSWORD }}" }]'

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down
24 changes: 1 addition & 23 deletions dotcms-integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -514,28 +514,6 @@
</profile>

</profiles>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>dotcms-libs</id>
<url>https://repo.dotcms.com/artifactory/libs-release</url>
</repository>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>dotcms-libs-snapshot</id>
<url>https://repo.dotcms.com/artifactory/libs-snapshot-local</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jitpack</id>
<url>https://jitpack.io</url>
</repository>
</repositories>


</project>
23 changes: 0 additions & 23 deletions dotcms-postman/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,28 +146,5 @@
<profiles>
</profiles>

<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>dotcms-libs</id>
<url>https://repo.dotcms.com/artifactory/libs-release</url>
</repository>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>dotcms-libs-snapshot</id>
<url>https://repo.dotcms.com/artifactory/libs-snapshot-local</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jitpack</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

</project>
12 changes: 0 additions & 12 deletions independent-projects/core-plugins/tika-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,6 @@

</dependencies>

<distributionManagement>
<repository>
<id>dotcms-libs</id>
<name>DotCMS libs Release</name>
<url>https://repo.dotcms.com/artifactory/libs-release</url>
</repository>
<snapshotRepository>
<id>dotcms-libs-snapshot</id>
<name>IDotCMS libs Snapshots</name>
<url>https://repo.dotcms.com/artifactory/libs-snapshot-local</url>
</snapshotRepository>
</distributionManagement>


</project>
30 changes: 0 additions & 30 deletions osgi-base/system-bundles/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,6 @@
<tika.plugin.bundle.version>2.7.0</tika.plugin.bundle.version>
</properties>

<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
<id>dotcms-libs</id>
<url>https://repo.dotcms.com/artifactory/libs-release/</url>
</repository>
<repository>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
<id>dotcms-libs-snapshot</id>
<url>https://repo.dotcms.com/artifactory/libs-snapshot-local/</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jitpack</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

<dependencies>
<dependency>
Expand Down
85 changes: 41 additions & 44 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1125,48 +1125,6 @@
<system>GitHub</system>
<url>https://github.com/dotCMS/core/issues/</url>
</issueManagement>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>dotcms-libs</id>
<url>https://repo.dotcms.com/artifactory/libs-release/</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jitpack</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>dotcms-libs</id>
<url>https://repo.dotcms.com/artifactory/libs-release</url>
</pluginRepository>
<pluginRepository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>dotcms-libs-snapshot</id>
<url>https://repo.dotcms.com/artifactory/libs-snapshot-local</url>
</pluginRepository>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jitpack</id>
<url>https://jitpack.io</url>
</pluginRepository>
</pluginRepositories>

<profiles>
<profile>
Expand Down Expand Up @@ -1664,14 +1622,53 @@
</build>
</profile>
</profiles>
<distributionManagement>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>dotcms-libs</id>
<url>https://repo.dotcms.com/artifactory/libs-release</url>
</repository>
<repository>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>dotcms-libs-snapshot-local</id>
<name>IDotCMS libs Snapshots</name>
<url>https://repo.dotcms.com/artifactory/libs-snapshot-local</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>dotcms-libs</id>
<url>https://repo.dotcms.com/artifactory/libs-release</url>
</pluginRepository>
<pluginRepository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>dotcms-libs-snapshot</id>
<url>https://repo.dotcms.com/artifactory/libs-snapshot</url>
</pluginRepository>
</pluginRepositories>
<distributionManagement>
<repository>
<id>dotcms-libs-local</id>
<name>DotCMS libs Release</name>
<url>https://repo.dotcms.com/artifactory/libs-release-local</url>
</repository>
<snapshotRepository>
<id>dotcms-libs-snapshot</id>
<id>dotcms-libs-snapshot-local</id>
<name>IDotCMS libs Snapshots</name>
<url>https://repo.dotcms.com/artifactory/libs-snapshot-local</url>
</snapshotRepository>
Expand Down
18 changes: 3 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,22 @@
<id>dotcms-libs</id>
<url>https://repo.dotcms.com/artifactory/libs-release</url>
</repository>
<repository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jitpack</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<distributionManagement>
<site>
<id>local-site-deployment</id>
<url>file://${project.build.directory}/staging</url>
</site>
<repository>
<id>dotcms-libs</id>
<id>dotcms-libs-local</id>
<name>DotCMS libs Release</name>
<url>https://repo.dotcms.com/artifactory/libs-release</url>
<url>https://repo.dotcms.com/artifactory/libs-release-local</url>
</repository>
<!--
<snapshotRepository>
<id>dotcms-libs-snapshot</id>
<id>dotcms-libs-snapshot-local</id>
<name>DotCMS libs Snapshots</name>
<url>https://repo.dotcms.com/artifactory/libs-snapshot-local</url>
</snapshotRepository>
-->
</distributionManagement>

<reporting>
Expand Down

0 comments on commit 25dbaba

Please sign in to comment.