Skip to content

Commit

Permalink
Bump version to flyway-9.10.2
Browse files Browse the repository at this point in the history
Please see the GH release for the release notes

Fix migration resolvers not handling instances - fixes #3581

Update AWS dependency to resolve CVE-2022-41915
  • Loading branch information
rg-buildmonkey committed Dec 22, 2022
1 parent b0162b7 commit 8367518
Show file tree
Hide file tree
Showing 28 changed files with 134 additions and 250 deletions.
2 changes: 1 addition & 1 deletion documentation/Flyway CLI and API/Usage/API (Java).md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ be migrated to a state the rest of the code can work with.
</tr>
</table>

### Teams Edition
### Teams/Enterprise Edition
<table class="table">
<tr>
<th>Maven</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ subtitle: "API: Javadoc"
---
<div id="apiJavadoc">
<h1>API: Javadoc</h1>
<p>Our Javadocs are available at <a href="https://flywaydb.org/documentation/usage/api/javadoc/org/flywaydb/core/Flyway">https://flywaydb.org/documentation/usage/api/javadoc/org/flywaydb/core/Flyway</a></p>
<p>Our Javadocs are available <a href="https://javadoc.io/doc/org.flywaydb/flyway-core/latest/org/flywaydb/core/Flyway.html">here</a>.</p>
</div>
2 changes: 1 addition & 1 deletion documentation/Flyway CLI and API/Usage/Command-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ redirect_from: Commandsline/
The Flyway command-line tool is a standalone Flyway distribution. It runs on Windows, macOS and Linux and it is primarily meant for users who wish to migrate their database from the command-line without having to integrate Flyway into their applications nor having to install a build tool.

## Download and installation
### Teams Edition
### Teams/Enterprise Edition
#### Windows
<a style="text-decoration: none; background: rgb(204,0,0); padding: 6px 40px; border-radius: 10px; color: white; font-weight: bold;" href="https://flywaydb.org/download/thankyou?dl={{site.enterpriseUrl}}/flyway-commandline/{{site.flywayVersion}}/flyway-commandline-{{site.flywayVersion}}-windows-x64.zip">flyway-commandline-{{site.flywayVersion}}-windows-x64.zip</a>
<a class="note" href="{{site.enterpriseUrl}}/flyway-commandline/{{site.flywayVersion}}/flyway-commandline-{{site.flywayVersion}}-windows-x64.zip.md5">md5</a>
Expand Down
2 changes: 1 addition & 1 deletion documentation/Flyway CLI and API/Usage/Gradle Task.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ running on **Java 8**, **Java 9**, **Java 10**, **Java 11** or **Java 12**.
</tr>
</table>

### Teams Edition
### Teams/Enterprise Edition
<code>build.gradle</code>
<table class="table">
<tr>
Expand Down
2 changes: 1 addition & 1 deletion documentation/Flyway CLI and API/Usage/Maven Goal.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The Flyway Maven plugin supports **Maven 3.x** running on **Java 8**, **Java 9**
</tr>
</table>

### Teams Edition
### Teams/Enterprise Edition

<code>pom.xml</code>
<table class="table">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@
<div class="col-md-9">

<div class="release">
<h2 id="9.10.2">Flyway 9.10.2 (2022-12-22)</h2>

<h3>Bug fixes</h3>
<ul>
<li>
<a href="https://github.com/flyway/flyway/issues/3581">Issue 3581</a>
Resolves migration resolvers not fully supporting instances for API users
</li>
</ul>

<h3>Changes</h3>
<ul>
<li>version operations (`version` or `-v` or `--version`) will now list the versions of all plugins (and if they are correctly licensed)</li>
<li>Update AWS dependency to resolve CVE-2022-41915</li>
</ul>

<p>
Thanks to nafg for reporting these issues.
</p>
</div>

<div class="release">
<h2 id="9.10.1">Flyway 9.10.1 (2022-12-16)</h2>

<h3>Bug fixes</h3>
Expand Down
2 changes: 1 addition & 1 deletion documentation/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

flywayVersion: 9.10.1
flywayVersion: 9.10.2
enterpriseUrl: https://download.red-gate.com/maven/release/org/flywaydb/enterprise
kramdown:
smart_quotes: ["apos", "apos", "quot", "quot"]
Expand Down
4 changes: 2 additions & 2 deletions flyway-commandline/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>9.10.1</version>
<version>9.10.2</version>
</parent>
<artifactId>flyway-commandline</artifactId>
<packaging>jar</packaging>
Expand All @@ -31,7 +31,7 @@


<flyway-gcp-bigquery.version>${project.version}</flyway-gcp-bigquery.version>
<flyway-gcp-spanner.version>9.10.1-beta</flyway-gcp-spanner.version>
<flyway-gcp-spanner.version>9.10.2-beta</flyway-gcp-spanner.version>
<flyway-sqlserver.version>${project.version}</flyway-sqlserver.version>
<flyway-mysql.version>${project.version}</flyway-mysql.version>
<flyway-firebird.version>${project.version}</flyway-firebird.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static class Context {
private static final String CFU_ENDPOINT = "/flyway/cfu/api/v0/cfu";

public static boolean isEnabled() {
return usageChecker("flyway-cfu", VersionPrinter.getVersion());
return !Boolean.parseBoolean(System.getenv("REDGATE_DISABLE_TELEMETRY")) && usageChecker("flyway-cfu", VersionPrinter.getVersion());
}

public static void checkForVersionUpdates(Context context) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (C) Red Gate Software Ltd 2010-2022
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.flywaydb.commandline.command.version;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public class PluginVersionResult {
public String name;
public String version;
public boolean isLicensed;
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@
import org.flywaydb.core.api.configuration.Configuration;
import org.flywaydb.core.api.output.OperationResult;
import org.flywaydb.core.extensibility.CommandExtension;
import org.flywaydb.core.extensibility.Plugin;
import org.flywaydb.core.internal.license.VersionPrinter;
import org.flywaydb.core.internal.util.Pair;
import org.flywaydb.core.internal.util.StringUtils;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

@CustomLog
public class VersionCommandExtension implements CommandExtension {
Expand Down Expand Up @@ -57,7 +60,30 @@ public OperationResult handle(String command, Configuration config, List<String>
LOG.debug("Java " + System.getProperty("java.version") + " (" + System.getProperty("java.vendor") + ")");
LOG.debug(System.getProperty("os.name") + " " + System.getProperty("os.version") + " " + System.getProperty("os.arch") + "\n");

return new VersionResult(VersionPrinter.getVersion(), command, VersionPrinter.EDITION);
List<Plugin> allPlugins = config.getPluginRegister().getPlugins(Plugin.class);

List<PluginVersionResult> pluginVersions = allPlugins.stream()
.map(p -> new PluginVersionResult(p.getClass().getSimpleName(), p.getPluginVersion(), p.isLicensed(config)))
.filter(p -> StringUtils.hasText(p.version))
.collect(Collectors.toList());

int nameLength = pluginVersions.stream().map(p -> p.name.length()).max(Integer::compare).get() + 2;
int versionLength = pluginVersions.stream().map(p -> p.version.length()).max(Integer::compare).get() + 2;

LOG.info(StringUtils.rightPad("Plugin Name", nameLength, ' ') + " | " +
StringUtils.rightPad("Version", versionLength, ' ') + " | " +
("Licensed"));

LOG.info(StringUtils.rightPad(StringUtils.leftPad("", nameLength, '-'), nameLength, ' ') + " | " +
StringUtils.rightPad(StringUtils.leftPad("", versionLength, '-'), versionLength, ' ') + " | " +
("--------"));
for (PluginVersionResult p : pluginVersions) {
LOG.info(StringUtils.rightPad(p.name, nameLength, ' ') + " | " +
StringUtils.rightPad(p.version, versionLength, ' ') + " | " +
(p.isLicensed ? "Licensed" : "Unlicensed"));
}

return new VersionResult(VersionPrinter.getVersion(), command, VersionPrinter.EDITION, pluginVersions);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@
import org.flywaydb.core.api.output.OperationResult;
import org.flywaydb.core.internal.license.Edition;

import java.util.List;

@AllArgsConstructor
public class VersionResult implements OperationResult {
public String version;
public String command;
public Edition edition;
public List<PluginVersionResult> pluginVersions;
}
2 changes: 1 addition & 1 deletion flyway-community-db-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>9.10.1</version>
<version>9.10.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
6 changes: 1 addition & 5 deletions flyway-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>9.10.1</version>
<version>9.10.2</version>
</parent>
<artifactId>flyway-core</artifactId>
<packaging>jar</packaging>
Expand Down Expand Up @@ -88,10 +88,6 @@
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-secretmanager</artifactId>
</dependency>
</dependencies>

<build>
Expand Down

0 comments on commit 8367518

Please sign in to comment.