Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cli): Implement gha generate cli release #26294

Merged
merged 121 commits into from Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from 119 commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
466497b
#25951 Setting versions-maven-plugin for release version management.
Sep 20, 2023
a11fc67
#25951 Setting precheck job (checkout, java, git, set release version).
Sep 20, 2023
25b1e0c
#25951 Setting Java version and Java distribution.
Sep 20, 2023
a247184
#25951 Getting input variables on release job.
Sep 20, 2023
ff53c1b
#25951 Printing GitHub context.
Sep 20, 2023
cd58610
#25951 Printing GitHub context REF.
Sep 20, 2023
559f0fc
#25951 Testing release version setup.
Sep 21, 2023
afca953
#25951 fixing release version setup.
Sep 21, 2023
2c1f05d
#25951 fixing release version setup.+1.
Sep 21, 2023
55176fd
#25951 fixing release version setup.+2.
Sep 21, 2023
9eb4065
#25951 fixing release version setup.+3.
Sep 21, 2023
2fbe8f7
🏁 Releasing version 1.0.0
Sep 21, 2023
27c38bb
#25951 Testing next version setup.
Sep 21, 2023
1d99cf6
#25951 Fixing next version setup.
Sep 21, 2023
500c009
🏁 Releasing version 1.1.0
Sep 21, 2023
e036af1
#25951 Fixing next version setup. +1.
Sep 21, 2023
8fc73a9
Merge branch 'issue-25951-implement-gha-generate-cli-release' of gith…
Sep 21, 2023
9a0e04a
#25951 Fixing next version setup. +2.
Sep 21, 2023
5abbd0c
🏁 Releasing version 1.2.0
Sep 21, 2023
3366a42
#25951 Fixing next version setup. +3.
Sep 21, 2023
9600835
Merge branch 'issue-25951-implement-gha-generate-cli-release' of gith…
Sep 21, 2023
b255212
#25951 Fixing next version setup. +4.
Sep 21, 2023
e9daec6
🏁 Releasing version 1.3.0
Sep 21, 2023
4c1c736
#25951 Fixing next version setup. +5.
Sep 21, 2023
5b33dc2
#25951 Fixing next version setup. Adding git config.
Sep 21, 2023
5ecc456
🏁 Releasing version 1.4.0
Sep 21, 2023
efdb49a
#25951 Fixing next version setup. Check current branch out.+1.
Sep 21, 2023
d990f70
#25951 Fixing next version setup. Check current branch out.+2.
Sep 21, 2023
3c19581
🏁 Releasing version 1.4.1
Sep 21, 2023
a3e2cdb
#25951 Fixing next version setup. Check current branch out.+3.
Sep 21, 2023
534ce43
🏁 Releasing version 1.4.2
Sep 21, 2023
c5f8e7a
⬆️ Next version 1.0.0-SNAPSHOT
Sep 21, 2023
e8e2b6f
#25951 Testing build and releaser steps.
Sep 21, 2023
0f2c617
🏁 Releasing version 1.4.0
Sep 21, 2023
0eab78d
#25951 Build and releaser steps. Adding module in main pom file for t…
Sep 21, 2023
b365232
#25951 Fixing build and releaser steps. +1.
Sep 21, 2023
8575411
🏁 Releasing version 1.4.1
Sep 21, 2023
0e8a3a5
#25951 Fixing releaser steps. +1.
Sep 21, 2023
489799e
#25951 Fixing releaser steps. +2.
Sep 21, 2023
a278db7
🏁 Releasing version 1.4.2
Sep 21, 2023
05d0ec8
⬆️ Next version 1.0.0-SNAPSHOT
Sep 21, 2023
25ae8a0
Merge branch 'master' of github.com:dotCMS/core into issue-25951-impl…
Sep 21, 2023
ba6d73d
Merge branch 'issue-25951-implement-gha-generate-cli-release' of gith…
Sep 21, 2023
601fc4e
#25951 Testing deploy distribution on artifactory.
Sep 21, 2023
2420663
🏁 Releasing version 1.4.3
Sep 21, 2023
6069650
#25951 Fixing test deploy distribution on artifactory. +1.
Sep 21, 2023
f95d4e5
🏁 Releasing version 1.4.3
Sep 21, 2023
713575a
#25951 Fixing test deploy distribution on artifactory. +2.
Sep 21, 2023
e62ae65
🏁 Releasing version 1.4.3
Sep 21, 2023
720210c
#25951 Fixing test deploy distribution on artifactory. +3.
Sep 22, 2023
75ff143
🏁 Releasing version 1.1.0-SNAPSHOT
Sep 22, 2023
f857c57
⬆️ Next version 1.0.0-SNAPSHOT
Sep 22, 2023
6585991
#25951 Testing JReleaser artifactory integration.
Sep 26, 2023
71fbddd
🏁 Releasing version 1.2.3-SNAPSHOT
Sep 26, 2023
4be39e1
#25951 Testing JReleaser artifactory integration. +1.
Sep 26, 2023
8951650
🏁 Releasing version 1.4.0-SNAPSHOT
Sep 26, 2023
a946a21
⬆️ Next version 1.0.0-SNAPSHOT
actions-user Sep 26, 2023
c6818bb
#25951 Testing JReleaser artifactory integration. +2.
Sep 26, 2023
f16b719
#25951 Testing JReleaser artifactory integration. +3.
Sep 26, 2023
35a9e5f
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Sep 26, 2023
729119e
⬆️ Next version 1.0.0-SNAPSHOT
actions-user Sep 26, 2023
09d9757
#25951 Testing build step.
Sep 26, 2023
9c7bdbe
Merge branch 'issue-25951-implement-gha-generate-cli-release' of gith…
Sep 26, 2023
62b8c35
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Sep 26, 2023
187f9e6
⬆️ Next version 1.0.0-SNAPSHOT
actions-user Sep 26, 2023
d5c7b78
#25951 Testing JReleaser artifactory integration, snapshot repository…
Sep 26, 2023
35e1f07
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Sep 26, 2023
1226677
⬆️ Next version 1.0.0-SNAPSHOT
actions-user Sep 26, 2023
7eeb9af
Merge branch 'master' of github.com:dotCMS/core into issue-25951-impl…
Sep 27, 2023
3975cda
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Sep 27, 2023
85c5845
⬆️ Next version 1.0.0-SNAPSHOT
actions-user Sep 27, 2023
8dbabfb
Merge branch 'master' of github.com:dotCMS/core into issue-25951-impl…
Oct 2, 2023
9db60dc
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 2, 2023
5f97617
dotcms-cli release generation.
dcolina Oct 2, 2023
8c5ab31
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 2, 2023
4ce571f
#25951 dotcms-cli Release generation. +1.
Oct 2, 2023
fce8f02
Merge branch 'issue-25951-implement-gha-generate-cli-release' of gith…
Oct 2, 2023
1cd927b
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 2, 2023
1ce2d34
Update cli-release-process.yml
dcolina Oct 2, 2023
4cd8ecb
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 2, 2023
68ef39d
⬆️ Next version 1.0.0-SNAPSHOT
actions-user Oct 2, 2023
85f8a9d
#25951 dotcms-cli Release generation. +2.
Oct 2, 2023
ada10b8
Merge branch 'master' of github.com:dotCMS/core into issue-25951-impl…
Oct 2, 2023
ece1d71
Merge branch 'issue-25951-implement-gha-generate-cli-release' of gith…
Oct 2, 2023
a25ff05
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 2, 2023
3c4c615
⬆️ Next version 1.0.0-SNAPSHOT
actions-user Oct 2, 2023
201f4da
Merge branch 'master' of github.com:dotCMS/core into issue-25951-impl…
Oct 3, 2023
8629cf8
#25951 Some improvements in the release process.
Oct 4, 2023
240ce0c
Merge branch 'master' of github.com:dotCMS/core into issue-25951-impl…
Oct 4, 2023
5d49c47
#25951 dotcms-cli pom files optimization. Pom parent (core) has been …
Oct 5, 2023
f5356f8
Merge branch 'master' of github.com:dotCMS/core into issue-25951-impl…
Oct 5, 2023
c2be9ef
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 5, 2023
fbb1929
Testing GHA cli release workflow
dcolina Oct 5, 2023
b16441d
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 5, 2023
28be913
Fixing package distribution step.
dcolina Oct 5, 2023
951b1b3
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 5, 2023
ed13573
Fixing package distribution step. +1.
dcolina Oct 5, 2023
fa739af
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 5, 2023
52d06ea
Fixing package distribution step. +2.
dcolina Oct 5, 2023
d404e9c
Fixing cli release workflow. +3.
dcolina Oct 5, 2023
45741a7
Fixing package distribution step. +3.
dcolina Oct 5, 2023
25fc007
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 5, 2023
c8bf123
Fixing package distribution step. +4.
dcolina Oct 5, 2023
65e983d
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 5, 2023
00293fb
Fixing package distribution step. +5.
dcolina Oct 5, 2023
75c3208
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 5, 2023
40ccd97
Fixing package distribution step. +6.
dcolina Oct 5, 2023
9828a2c
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 5, 2023
e7e3418
Fixing package distribution step. +7.
dcolina Oct 5, 2023
e780a4b
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 5, 2023
727c492
Fixing package distribution step. +8.
dcolina Oct 5, 2023
f7c3e3f
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 5, 2023
9fae4fd
Fixing package distribution step. +9.
dcolina Oct 5, 2023
ad285d8
🏁 Releasing version 1.0.0-SNAPSHOT
actions-user Oct 5, 2023
a639953
⬆️ Next version 1.0.0-SNAPSHOT
actions-user Oct 5, 2023
189120f
Merge branch 'master' of github.com:dotCMS/core into issue-25951-impl…
Oct 5, 2023
075e85a
#25951 Fixing parent pom (core) configuration.
Oct 5, 2023
36301b7
Merge branch 'master' of github.com:dotCMS/core into issue-25951-impl…
Oct 6, 2023
d41700e
Merge branch 'master' of github.com:dotCMS/core into issue-25951-impl…
Oct 9, 2023
771e0ee
#25951 Maven cache configuration updated. POM properties improvement.
Oct 9, 2023
1950ae1
Merge branch 'master' of github.com:dotCMS/core into issue-25951-impl…
Oct 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
135 changes: 126 additions & 9 deletions .github/workflows/cli-release-process.yml
Expand Up @@ -5,26 +5,143 @@ on:
version:
description: 'Release version'
required: true
next:
description: 'Next version'
skipTests:
description: 'Skip tests'
default: true
required: false
packageType:
description: 'Package type'
default: 'uber-jar'
required: false

defaults:
run:
shell: bash

env:
JAVA_VERSION: 11
JAVA_DISTRO: temurin
NEXT_VERSION: '1.0.0-SNAPSHOT'

jobs:
precheck:
name: Pre-check
runs-on: ubuntu-latest
outputs:
RELEASE_VERSION: ${{ steps.vars.outputs.RELEASE_VERSION }}
NEXT_VERSION: ${{ steps.vars.outputs.NEXT_VERSION }}
RELEASE_VERSION: ${{ steps.version.outputs.RELEASE_VERSION }}
NEXT_VERSION: ${{ steps.version.outputs.NEXT_VERSION }}
HEAD: ${{ steps.version.outputs.HEAD }}
steps:
- name: Print inputs
id: vars
- name: Log GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

- name: Checkout
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRO }}

- name: Cache Maven
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use a different cache structure for .m2 we would need to follow to be able to use cache created by main maven workflow. Change all the places this is used

 - name: Get Date
        id: get-date
        run: |
          echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT
        shell: bash
  - name: Restore Maven Repository
    id: cache-maven
    uses: actions/cache@v3
    with:
      path: ~/.m2/repository
      key: mavencore-${{ steps.get-date.outputs.date }}-${{ github.run_id }}

uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Setup git config
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"

- name: Set release version
id: version
working-directory: ${{ github.workspace }}/tools/dotcms-cli
run: |
RELEASE_VERSION=${{ github.event.inputs.version }}
NEXT_VERSION=${{ github.event.inputs.next }}
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_OUTPUT
echo "NEXT_VERSION=$NEXT_VERSION" >> $GITHUB_OUTPUT
NEXT_VERSION=${{ env.NEXT_VERSION }}
HEAD=${{ github.ref_name }}

./mvnw -B -ntp versions:set versions:commit -DnewVersion=$RELEASE_VERSION

git commit --allow-empty -a -m "🏁 Releasing version $RELEASE_VERSION"
git push origin "$HEAD"

echo "RELEASE_VERSION=$RELEASE_VERSION" >> "$GITHUB_OUTPUT"
echo "NEXT_VERSION=$NEXT_VERSION" >> "$GITHUB_OUTPUT"
echo "HEAD=$HEAD" >> "$GITHUB_OUTPUT"

release:
needs: [ precheck ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ needs.precheck.outputs.HEAD }}
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRO }}

- name: Cache Maven
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Prepare dotCMS license
env:
DOTCMS_LICENSE_KEY: ${{ secrets.DOTCMS_LICENSE }}
run: |
DOTCMS_LICENSE_PATH=${GITHUB_WORKSPACE}/tools/dotcms-cli/license
mkdir -p ${DOTCMS_LICENSE_PATH}
echo "${DOTCMS_LICENSE_KEY}" > ${DOTCMS_LICENSE_PATH}/license.dat
echo "DOTCMS_LICENSE_FILE=${DOTCMS_LICENSE_PATH}/license.dat" >> "$GITHUB_ENV"

- name: Build distribution
working-directory: ${{ github.workspace }}
run: |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really with the multi-module build we should not replicate the mvnw executables and .mvn folder in the sub modules and rely on the top level version using relative path where required, otherwise, we may end up with inconsistencies in version when run through full build.

./mvnw clean install -Dtest.failure.ignore=true -DskipTests=${{ github.event.inputs.skipTests }} -am -pl :dotcms-cli

- name: Package distribution
working-directory: ${{ github.workspace }}
run: |
./mvnw package -Dquarkus.package.type=${{ github.event.inputs.packageType }} -DskipTests=true -pl :dotcms-cli

- name: Releaser
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JRELEASER_PROJECT_VERSION: ${{ needs.precheck.outputs.VERSION }}
JRELEASER_ARTIFACTORY_USERNAME: ${{ secrets.EE_REPO_USERNAME }}
JRELEASER_ARTIFACTORY_PASSWORD: ${{ secrets.EE_REPO_PASSWORD }}
JRELEASER_SLACK_WEBHOOK: ${{ secrets.RELEASE_SLACK_WEBHOOK }}
JRELEASER_SLACK_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
working-directory: ${{ github.workspace }}
run: |
tools/dotcms-cli/mvnw -B -Prelease jreleaser:full-release -Djreleaser.git.root.search=true -pl :dotcms-cli-parent -Dmaven.plugin.validation=VERBOSE

- name: Setup git config
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"

- name: Set next version
working-directory: ${{ github.workspace }}/tools/dotcms-cli
run: |
RELEASE_VERSION=${{ needs.precheck.outputs.RELEASE_VERSION }}
NEXT_VERSION=${{ needs.precheck.outputs.NEXT_VERSION }}
HEAD=${{ needs.precheck.outputs.HEAD }}

./mvnw -B -ntp versions:set versions:commit -DnewVersion=$NEXT_VERSION

git commit --allow-empty -a -m "⬆️ Next version $NEXT_VERSION"
git push origin "$HEAD"
@@ -1,11 +1,9 @@
import { NgModule } from '@angular/core';



import { DotSafeHtmlPipe } from './dot-safe-html/dot-safe-html.pipe';

@NgModule({
declarations: [ DotSafeHtmlPipe],
exports: [ DotSafeHtmlPipe]
declarations: [DotSafeHtmlPipe],
exports: [DotSafeHtmlPipe]
})
export class DotPipesModule {}
1 change: 0 additions & 1 deletion core-web/apps/dotcms-ui/src/app/view/pipes/index.ts
@@ -1,3 +1,2 @@
export * from './dot-diff/dot-diff.pipe';
export * from './dot-filter/dot-filter.pipe';

5 changes: 5 additions & 0 deletions parent/pom.xml
Expand Up @@ -653,6 +653,11 @@
<artifactId>jandex-maven-plugin</artifactId>
<version>1.2.3</version>
</plugin>
<plugin>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.platform.version}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down
31 changes: 16 additions & 15 deletions tools/dotcms-cli/api-data-model/pom.xml
Expand Up @@ -13,22 +13,18 @@
<packaging>jar</packaging>

<properties>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<failsafe.useModulePath>false</failsafe.useModulePath>
<maven.compiler.release>11</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>2.9.1.Final</quarkus.platform.version>
<testcontainers.version>1.17.6</testcontainers.version>
<failsafe-plugin.version>3.0.0-M5</failsafe-plugin.version>
<test.failure.ignore>false</test.failure.ignore>
<maven.plugin.jar.version>3.3.0</maven.plugin.jar.version>
<immutables.version>2.8.2</immutables.version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although we are not sharing the application bom because of of the use of quarkus, we still do not want duplication and different versions of some dependencies. e.g. in the main project we are using immutables 2.9.0. The way to handle this is to define the property in the parent/pom.xml which is shared and used in bom/application/pom.xml and in here. Only use a different version if we need to use a higher version here but are unable to due to other dependencies in core or other conficts with the version due to quarkus.

<google.findbugs.version>3.0.2</google.findbugs.version>
<jackson.module.model.version>1.2.2</jackson.module.model.version>
<jackson.datatype.guava.version>2.13.3</jackson.datatype.guava.version>
<docker.output.image.name>dotcms/dotcms-test</docker.output.image.name>
<docker.version.tag>${project.version}</docker.version.tag>
<testcontainers.docker.image>${docker.output.image.name}/${docker.version.tag}</testcontainers.docker.image>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
Expand All @@ -40,6 +36,7 @@
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
Expand All @@ -53,7 +50,7 @@
<dependency>
<groupId>org.immutables</groupId>
<artifactId>value</artifactId>
<version>2.8.2</version>
<version>${immutables.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -67,7 +64,7 @@
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
<version>${google.findbugs.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -78,12 +75,18 @@
<dependency>
<groupId>com.github.jonpeterson</groupId>
<artifactId>jackson-module-model-versioning</artifactId>
<version>1.2.2</version>
<version>${jackson.module.model.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-guava</artifactId>
<version>2.13.3</version>
<version>${jackson.datatype.guava.version}</version>
<exclusions>
<exclusion>
<groupId>org.checkerframework</groupId>
<artifactId>checker-qual</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down Expand Up @@ -154,7 +157,6 @@
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<configuration>
<compilerArgs>
<arg>-parameters</arg>
Expand All @@ -165,7 +167,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${failsafe-plugin.version}</version>
<configuration>
<testFailureIgnore>${test.failure.ignore}</testFailureIgnore>
</configuration>
Expand Down
19 changes: 4 additions & 15 deletions tools/dotcms-cli/cli/pom.xml
Expand Up @@ -13,23 +13,15 @@
<packaging>jar</packaging>

<properties>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<failsafe.useModulePath>false</failsafe.useModulePath>
<maven.compiler.release>11</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>2.9.1.Final</quarkus.platform.version>
<exec.maven.plugin.version>3.0.0</exec.maven.plugin.version>
<picocli.codegen.version>4.6.3</picocli.codegen.version>
<testcontainers.version>1.17.6</testcontainers.version>
<failsafe-plugin.version>3.0.0-M5</failsafe-plugin.version>
<test.failure.ignore>false</test.failure.ignore>
<docker.output.image.name>dotcms/dotcms-test</docker.output.image.name>
<docker.version.tag>${project.version}</docker.version.tag>
<testcontainers.docker.image>${docker.output.image.name}/${docker.version.tag}</testcontainers.docker.image>
<java.keytar.version>1.0.0</java.keytar.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
Expand All @@ -41,6 +33,7 @@
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>com.dotcms</groupId>
Expand Down Expand Up @@ -99,7 +92,7 @@
<dependency>
<groupId>com.starxg</groupId>
<artifactId>java-keytar</artifactId>
<version>1.0.0</version>
<version>${java.keytar.version}</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -133,7 +126,6 @@
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<configuration>
<compilerArgs>
<arg>-parameters</arg>
Expand All @@ -144,7 +136,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${failsafe-plugin.version}</version>
<configuration>
<testFailureIgnore>${test.failure.ignore}</testFailureIgnore>
<includes>
Expand All @@ -170,7 +161,6 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec.maven.plugin.version}</version>
<executions>
<execution>
<id>generateManPages</id>
Expand Down Expand Up @@ -220,7 +210,6 @@
<plugins>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<executions>
<execution>
<goals>
Expand Down
29 changes: 19 additions & 10 deletions tools/dotcms-cli/jreleaser.yml
Expand Up @@ -20,8 +20,8 @@ project:

release:
github:
tagName: 'dotcli{{projectVersion}}'
releaseName: 'DOTCLI - {{projectVersion}}'
tagName: 'dotcms-cli{{projectVersion}}'
releaseName: 'dotcms-cli - {{projectVersion}}'
overwrite: false
changelog:
formatted: ALWAYS
Expand All @@ -42,12 +42,21 @@ distributions:
active: ALWAYS
stereotype: CLI
artifacts:
- path: tools/dotcms-cli/cli/target/cli-{{projectVersion}}-runner.jar
transform: tools/dotcms-cli/cli/target/dotcli-{{projectVersion}}.jar

packagers:
brew:
active: ALWAYS
continueOnError: false
multiPlatform: true
- path: tools/dotcms-cli/cli/target/dotcms-cli-{{projectVersion}}-runner.jar
transform: tools/dotcms-cli/cli/target/dotcms-cli-{{projectVersion}}.jar

upload:
artifactory:
dotcms-cli:
active: ALWAYS
authorization: BASIC
host: 'https://repo.dotcms.com/artifactory'
repositories:
- path: 'libs-snapshot-local/com/dotcms/{{projectName}}/{{projectVersion}}/{{artifactFile}}'
active: SNAPSHOT
fileTypes:
- JAR
- path: 'libs-release-local/com/dotcms/{{projectName}}/{{projectVersion}}/{{artifactFile}}'
active: RELEASE
fileTypes:
- JAR