Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 35ff0d7

Browse files
author
Corneil du Plessis
authored
Pin MariaDB driver to 3.0.9 (#5196)
1 parent ad7ae98 commit 35ff0d7

File tree

5 files changed

+34
-12
lines changed

5 files changed

+34
-12
lines changed

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,14 @@
416416
<id>spring-milestones</id>
417417
<name>Spring Milestones</name>
418418
<url>https://repo.spring.io/milestone</url>
419+
<snapshots>
420+
<enabled>false</enabled>
421+
</snapshots>
422+
</repository>
423+
<repository>
424+
<id>spring-libs-milestone</id>
425+
<name>Spring Milestones</name>
426+
<url>https://repo.spring.io/libs-milestone</url>
419427
<snapshots>
420428
<enabled>true</enabled>
421429
</snapshots>

spring-cloud-dataflow-server-core/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@
151151
<dependency>
152152
<groupId>org.mariadb.jdbc</groupId>
153153
<artifactId>mariadb-java-client</artifactId>
154+
<version>3.0.9</version>
155+
<!-- <version>[3.0.11,)</version>-->
154156
</dependency>
155157
<dependency>
156158
<groupId>org.postgresql</groupId>

spring-cloud-dataflow-server-core/src/test/java/org/springframework/cloud/dataflow/server/config/FlywayVendorReplacingApplicationContextInitializerTests.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,15 @@
1616

1717
package org.springframework.cloud.dataflow.server.config;
1818

19+
import java.time.Duration;
20+
import java.time.temporal.ChronoUnit;
21+
22+
import org.junit.jupiter.api.BeforeEach;
1923
import org.junit.jupiter.api.Test;
24+
import org.slf4j.Logger;
25+
import org.slf4j.LoggerFactory;
2026
import org.testcontainers.containers.MariaDBContainer;
27+
import org.testcontainers.containers.output.Slf4jLogConsumer;
2128
import org.testcontainers.junit.jupiter.Container;
2229
import org.testcontainers.junit.jupiter.Testcontainers;
2330

@@ -36,13 +43,17 @@
3643
*/
3744
@Testcontainers(disabledWithoutDocker = true)
3845
public class FlywayVendorReplacingApplicationContextInitializerTests {
39-
46+
private final static Logger logger = LoggerFactory.getLogger(FlywayVendorReplacingApplicationContextInitializerTests.class);
4047
@Container
4148
private static final MariaDBContainer<?> MARIADB_CONTAINER = new MariaDBContainer<>("mariadb:10.4")
49+
.withStartupTimeout(Duration.of(1, ChronoUnit.MINUTES))
4250
.withDatabaseName("dataflow")
4351
.withUsername("spring")
4452
.withPassword("spring");
45-
53+
@BeforeEach
54+
public void setup() {
55+
MARIADB_CONTAINER.followOutput(new Slf4jLogConsumer(logger));
56+
}
4657
@Test
4758
void vendorIsReplacedInFlywayLocationsWhenMysqlInUrl() {
4859
String jdbcUrl = String.format("jdbc:mysql://%s:%d/dataflow?permitMysqlScheme", MARIADB_CONTAINER.getHost(), MARIADB_CONTAINER.getMappedPort(3306));

spring-cloud-dataflow-server/pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
45
<parent>
56
<groupId>org.springframework.cloud</groupId>
@@ -151,12 +152,14 @@
151152
<artifactId>spring-boot-maven-plugin</artifactId>
152153
</plugin>
153154
<plugin>
155+
<groupId>org.apache.maven.plugins</groupId>
154156
<artifactId>maven-javadoc-plugin</artifactId>
155157
<configuration>
156158
<detectOfflineLinks>false</detectOfflineLinks>
157159
</configuration>
158160
</plugin>
159161
<plugin>
162+
<groupId>org.apache.maven.plugins</groupId>
160163
<artifactId>maven-source-plugin</artifactId>
161164
<executions>
162165
<execution>

src/local/k8s/register-apps.sh

100644100755
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,20 @@ if [ "$BROKER" = "rabbitmq" ]; then
3939
else
4040
BROKER_NAME=$BROKER
4141
fi
42-
43-
STREAM_APPS_VERSION=2022.0.0-SNAPSHOT
44-
# STREAM_APPS_VERSION=2021.1.3-SNAPSHOT
45-
# STREAM_APPS_VERSION=2021.1.2
46-
RELEASE_SNAPSHOT=snapshot
47-
# RELEASE_SNAPSHOT=release
48-
42+
if [ "$STREAM_APPS_VERSION" = "" ]; then
43+
export STREAM_APPS_VERSION=2022.0.0-SNAPSHOT
44+
# export STREAM_APPS_VERSION=2021.1.2 # release
45+
fi
46+
echo "STREAM_APPS_VERSION=$STREAM_APPS_VERSION"
4947
if [ "$PLATFORM_TYPE" != "kubernetes" ]; then
5048
TYPE=maven
5149
else
5250
TYPE=docker
5351
fi
5452

55-
if [[ "$STREAM_APPS_VERSION" == *"SNAPSHOT"* ]]; then
53+
if [[ "$STREAM_APPS_VERSION" = *"SNAPSHOT"* ]]; then
5654
STREAM_APPS_DL_VERSION=$STREAM_APPS_VERSION
57-
META_DATA="https://repo.spring.io/$RELEASE_SNAPSHOT/org/springframework/cloud/stream/app/stream-applications-descriptor/${STREAM_APPS_VERSION}/maven-metadata.xml"
55+
META_DATA="https://repo.spring.io/snapshot/org/springframework/cloud/stream/app/stream-applications-descriptor/${STREAM_APPS_VERSION}/maven-metadata.xml"
5856
echo "Downloading $META_DATA"
5957
curl -o maven-metadata.xml -s $META_DATA
6058
DL_TS=$(xmllint --xpath "/metadata/versioning/snapshot/timestamp/text()" maven-metadata.xml | sed 's/\.//')

0 commit comments

Comments
 (0)