Skip to content

Commit

Permalink
Add redirects for specific version apps (#524)
Browse files Browse the repository at this point in the history
* Add redirects for major-minor stream apps `5.0.x`
* Add redirects for major-minor task apps `3.0.x`

See spring-cloud/spring-cloud-dataflow#5897
  • Loading branch information
onobc authored Aug 16, 2024
1 parent adfa7ae commit 5d4fc18
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions paketo/redirect.conf
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
task.timestamp=docker:springcloudtask/timestamp-task:3.0.0
task.timestamp-batch=docker:springcloudtask/timestamp-batch-task:3.0.0
2 changes: 2 additions & 0 deletions static/spring-cloud-task-app-descriptor-3-0-x.task-apps-maven
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5d4fc18

Please sign in to comment.