-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated local scripts for creating release artifacts and updated GitH…
…ub workflows (CONNECTORS-1754)
- Loading branch information
Showing
7 changed files
with
48 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Set up OpenJDK 11 Temurin x64 | ||
uses: actions/setup-java@v4.2.2 | ||
uses: actions/setup-java@v4.3.0 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Set up OpenJDK 11 Temurin x64 | ||
uses: actions/setup-java@v4.2.2 | ||
uses: actions/setup-java@v4.3.0 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Set up Java | ||
uses: actions/setup-java@v4.2.2 | ||
uses: actions/setup-java@v4.3.0 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
#Get Maven POM version | ||
export mcfVersion=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | ||
|
||
#Built Branch Version | ||
export currentMavenVersion="$mcfVersion" | ||
export suffixToRemove="SNAPSHOT" | ||
export branchVersion=${currentMavenVersion%$suffixToRemove} | ||
|
||
#Update all the Maven modules with the new version | ||
mvn versions:set -DnewVersion=$mcfVersion -DremoveSnapshot -DgenerateBackupPoms=false | ||
|
||
#Update Ant script with the new RC version | ||
sed -i -e 's/"$mcfVersion"-dev/"$mcfVersion"/g' build.xml; | ||
|
||
#Update CHANGES.txt | ||
sed -i -e 's/"$mcfVersion"-dev/Release "$mcfVersion"/g' CHANGES.txt; | ||
|
||
#Ant Build | ||
ant make-core-deps make-deps image | ||
|
||
#Artifact version | ||
export artifactVersion=$branchVersion"dev" | ||
|
||
#Rename KEYS and CHANGES.txt artifacts | ||
cp KEYS apache-manifoldcf-$artifactVersion.KEYS | ||
cp CHANGES.txt apache-manifoldcf-$artifactVersion.CHANGES.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters