Skip to content

Commit

Permalink
rollback previous CI executors
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyomGabeev committed Sep 9, 2024
1 parent da232cc commit 9ddc77e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ executors:
resource_class: medium+
docker:
- image: cimg/openjdk:21.0.2
circle-jdk17-executor:
working_directory: ~/micrometer
environment:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
resource_class: medium+
docker:
- image: cimg/openjdk:17.0.11
circle-jdk11-executor:
working_directory: ~/micrometer
environment:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
resource_class: medium+
docker:
- image: cimg/openjdk:11.0.22
machine-executor:
working_directory: ~/micrometer
machine:
Expand Down Expand Up @@ -54,6 +68,16 @@ jobs:
- run: ./gradlew zgcTest
- run: ./gradlew zgcGenerationalTest

build-jdk11:
executor: circle-jdk11-executor
steps:
- gradlew-build

build-jdk17:
executor: circle-jdk17-executor
steps:
- gradlew-build

docker-tests:
executor: machine-executor
steps:
Expand All @@ -75,10 +99,14 @@ workflows:
build_prs_deploy_snapshots:
jobs:
- build
- build-jdk11
- build-jdk17
- docker-tests
- deploy:
requires:
- build
- build-jdk11
- build-jdk17
- docker-tests
filters:
branches:
Expand All @@ -93,6 +121,18 @@ workflows:
ignore: /.*/
tags:
only: /^v\d+\.\d+\.\d+(-(RC|M)\d+)?$/
- build-jdk11:
filters:
branches:
ignore: /.*/
tags:
only: /^v\d+\.\d+\.\d+(-(RC|M)\d+)?$/
- build-jdk17:
filters:
branches:
ignore: /.*/
tags:
only: /^v\d+\.\d+\.\d+(-(RC|M)\d+)?$/
- docker-tests:
filters:
branches:
Expand All @@ -102,6 +142,8 @@ workflows:
- deploy:
requires:
- build
- build-jdk11
- build-jdk17
- docker-tests
filters:
tags:
Expand Down
5 changes: 5 additions & 0 deletions micrometer-java21/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
description 'Micrometer core classes that require Java 21'

// skip this module when building with jdk <21
if (!javaLanguageVersion.canCompileOrRun(21)) {
project.tasks.configureEach { task -> task.enabled = false }
}

dependencies {
api project(":micrometer-core")

Expand Down

0 comments on commit 9ddc77e

Please sign in to comment.