Skip to content

Commit 76d0c4e

Browse files
authored
Merge pull request #349 from rosetta-models/story/1139/update_java_21
update Java version
2 parents 9d8b543 + 541f587 commit 76d0c4e

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

codefresh.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ steps:
1616
releaseNameNotDefined: "${{TAG_REPO}} == true"
1717
commands:
1818
- cf_export RELEASE_NAME=${{TAG_NAME}}
19+
- cf_export GH_TOKEN=${{REGNOSYS_OPS_TOKEN}}
20+
- cf_export GITHUB_RELEASE_API="https://api.github.com/repos/${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}/releases"
21+
- >-
22+
cf_export GITHUB_API_CURL="curl -L -X POST -H \"Accept: application/vnd.github+json\" -H \"Authorization: Bearer ${{REGNOSYS_OPS_TOKEN}}\""
23+
1924
2025
BranchReleaseName:
2126
title: Setup RELEASE_NAME variable with branch name
@@ -30,7 +35,7 @@ steps:
3035
Build:
3136
title: Maven build
3237
fail_fast: false
33-
image: maven:3.8.5-openjdk-11
38+
image: maven:3.9.8-eclipse-temurin-21
3439
working_directory: ./
3540
commands:
3641
- echo "${{ARTIFACT_REGISTRY_SA_KEY}}"|base64 -d>"${{CF_VOLUME_PATH}}"/sa
@@ -85,6 +90,23 @@ steps:
8590
- git tag ${{TAG_NAME}}
8691
- git push https://${{ROSETTA_MODELS_USER}}:${{ROSETTA_MODELS_PWD}}@github.com/rosetta-models/demo.git ${{TAG_NAME}}
8792

93+
CreateRelease:
94+
title: Create Release
95+
image: curlimages/curl
96+
when:
97+
condition:
98+
all:
99+
isRelease: "${{TAG_REPO}}"
100+
buildPassed: steps.TagRepo.result == 'success'
101+
commands:
102+
- echo CreateRelease
103+
- >-
104+
${{GITHUB_API_CURL}} ${{GITHUB_RELEASE_API}}
105+
-d '{
106+
"tag_name": "${{RELEASE_NAME}}",
107+
"generate_release_notes": true
108+
}'
109+
88110
StartNextBuild:
89111
title: Build rosetta-ingest if on master
90112
image: codefresh/cli

pom.xml

+1-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<properties>
1717
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18-
<java.version>11</java.version>
18+
<maven.compiler.release>11</maven.compiler.release>
1919

2020
<rosetta.dsl.version>9.32.2</rosetta.dsl.version>
2121
<rosetta.bundle.version>11.38.1</rosetta.bundle.version>
@@ -98,10 +98,6 @@
9898
<groupId>org.apache.maven.plugins</groupId>
9999
<artifactId>maven-compiler-plugin</artifactId>
100100
<version>${maven-compiler-plugin.version}</version>
101-
<configuration>
102-
<source>${java.version}</source>
103-
<target>${java.version}</target>
104-
</configuration>
105101
</plugin>
106102
<plugin>
107103
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)