From 5d4fc18f9ed00706a0d81912471de04a6c3ddf14 Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Fri, 16 Aug 2024 16:44:24 -0500 Subject: [PATCH] Add redirects for specific version apps (#524) * Add redirects for major-minor stream apps `5.0.x` * Add redirects for major-minor task apps `3.0.x` See https://github.com/spring-cloud/spring-cloud-dataflow/issues/5897 --- paketo/redirect.conf | 13 +++++++++++++ ...cloud-task-app-descriptor-3-0-x.task-apps-docker | 2 ++ ...-cloud-task-app-descriptor-3-0-x.task-apps-maven | 2 ++ 3 files changed, 17 insertions(+) create mode 100644 static/spring-cloud-task-app-descriptor-3-0-x.task-apps-docker create mode 100644 static/spring-cloud-task-app-descriptor-3-0-x.task-apps-maven diff --git a/paketo/redirect.conf b/paketo/redirect.conf index 5c16e0af..5189160e 100644 --- a/paketo/redirect.conf +++ b/paketo/redirect.conf @@ -1,3 +1,13 @@ +rewrite ^/rabbitmq-maven-5-0-x$ https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/stream-applications-descriptor/2024.0.0/stream-applications-descriptor-2024.0.0.stream-apps-rabbit-maven redirect; +rewrite ^/rabbitmq-docker-5-0-x$ https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/stream-applications-descriptor/2024.0.0/stream-applications-descriptor-2024.0.0.stream-apps-rabbit-docker redirect; +rewrite ^/kafka-maven-5-0-x$ https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/stream-applications-descriptor/2024.0.0/stream-applications-descriptor-2024.0.0.stream-apps-kafka-maven redirect; +rewrite ^/kafka-docker-5-0-x$ https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/stream-applications-descriptor/2024.0.0/stream-applications-descriptor-2024.0.0.stream-apps-kafka-docker redirect; + +rewrite ^/rabbitmq-maven-5-0-x-snapshot$ https://repo.spring.io/snapshot/org/springframework/cloud/stream/app/stream-applications-descriptor/2024.0.1-SNAPSHOT/stream-applications-descriptor-2024.0.1-SNAPSHOT.stream-apps-rabbit-maven redirect; +rewrite ^/rabbitmq-docker-5-0-x-snapshot$ https://repo.spring.io/snapshot/org/springframework/cloud/stream/app/stream-applications-descriptor/2024.0.1-SNAPSHOT/stream-applications-descriptor-2024.0.1-SNAPSHOT.stream-apps-rabbit-docker redirect; +rewrite ^/kafka-maven-5-0-x-snapshot$ https://repo.spring.io/snapshot/org/springframework/cloud/stream/app/stream-applications-descriptor/2024.0.1-SNAPSHOT/stream-applications-descriptor-2024.0.1-SNAPSHOT.stream-apps-kafka-maven redirect; +rewrite ^/kafka-docker-5-0-x-snapshot$ https://repo.spring.io/snapshot/org/springframework/cloud/stream/app/stream-applications-descriptor/2024.0.1-SNAPSHOT/stream-applications-descriptor-2024.0.1-SNAPSHOT.stream-apps-kafka-docker redirect; + rewrite ^/rabbitmq-maven-latest$ https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/stream-applications-descriptor/2021.1.2/stream-applications-descriptor-2021.1.2.stream-apps-rabbit-maven redirect; rewrite ^/rabbitmq-docker-latest$ https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/stream-applications-descriptor/2021.1.2/stream-applications-descriptor-2021.1.2.stream-apps-rabbit-docker redirect; rewrite ^/kafka-maven-latest$ https://repo.maven.apache.org/maven2/org/springframework/cloud/stream/app/stream-applications-descriptor/2021.1.2/stream-applications-descriptor-2021.1.2.stream-apps-kafka-maven redirect; @@ -35,6 +45,9 @@ rewrite ^/Einstein-BUILD-SNAPSHOT-stream-applications-rabbit-docker$ https://rep rewrite ^/Einstein-BUILD-SNAPSHOT-stream-applications-kafka-maven$ https://repo.spring.io/snapshot/org/springframework/cloud/stream/app/spring-cloud-stream-app-descriptor/Einstein.BUILD-SNAPSHOT/spring-cloud-stream-app-descriptor-Einstein.BUILD-SNAPSHOT.stream-apps-kafka-maven redirect; rewrite ^/Einstein-BUILD-SNAPSHOT-stream-applications-kafka-docker$ https://repo.spring.io/snapshot/org/springframework/cloud/stream/app/spring-cloud-stream-app-descriptor/Einstein.BUILD-SNAPSHOT/spring-cloud-stream-app-descriptor-Einstein.BUILD-SNAPSHOT.stream-apps-kafka-docker redirect; +rewrite ^/task-maven-3-0-x$ https://dataflow.spring.io/spring-cloud-task-app-descriptor-3-0-x.task-apps-maven redirect; +rewrite ^/task-docker-3-0-x$ https://dataflow.spring.io/spring-cloud-task-app-descriptor-3-0-x.task-apps-docker redirect; + rewrite ^/task-maven-latest$ https://dataflow.spring.io/spring-cloud-task-app-descriptor-latest.task-apps-maven redirect; rewrite ^/task-docker-latest$ https://dataflow.spring.io/spring-cloud-task-app-descriptor-latest.task-apps-docker redirect; diff --git a/static/spring-cloud-task-app-descriptor-3-0-x.task-apps-docker b/static/spring-cloud-task-app-descriptor-3-0-x.task-apps-docker new file mode 100644 index 00000000..6085195b --- /dev/null +++ b/static/spring-cloud-task-app-descriptor-3-0-x.task-apps-docker @@ -0,0 +1,2 @@ +task.timestamp=docker:springcloudtask/timestamp-task:3.0.0 +task.timestamp-batch=docker:springcloudtask/timestamp-batch-task:3.0.0 diff --git a/static/spring-cloud-task-app-descriptor-3-0-x.task-apps-maven b/static/spring-cloud-task-app-descriptor-3-0-x.task-apps-maven new file mode 100644 index 00000000..873a8182 --- /dev/null +++ b/static/spring-cloud-task-app-descriptor-3-0-x.task-apps-maven @@ -0,0 +1,2 @@ +task.timestamp=maven://io.spring:timestamp-task:3.0.0 +task.timestamp-batch=maven://io.spring:timestamp-batch-task:3.0.0