From 098bc20882cfbada9be9f087ed8c26fcc138bca2 Mon Sep 17 00:00:00 2001 From: Eduardo Martins Date: Thu, 2 May 2024 19:14:42 +0100 Subject: [PATCH] [CMTOOL-363] WildFly 32 server migration modules --- dist/standalone/pom.xml | 44 +++++++++ migrations/wildfly32.0/wildfly22.0/pom.xml | 45 +++++++++ ...0ToWildFly32_0ServerMigrationProvider.java | 95 +++++++++++++++++++ ...on.wfly.WildFly32_0ServerMigrationProvider | 17 ++++ migrations/wildfly32.0/wildfly23.0/pom.xml | 45 +++++++++ ...0ToWildFly32_0ServerMigrationProvider.java | 94 ++++++++++++++++++ ...on.wfly.WildFly32_0ServerMigrationProvider | 17 ++++ migrations/wildfly32.0/wildfly24.0/pom.xml | 45 +++++++++ ...0ToWildFly32_0ServerMigrationProvider.java | 92 ++++++++++++++++++ ...on.wfly.WildFly32_0ServerMigrationProvider | 17 ++++ migrations/wildfly32.0/wildfly25.0/pom.xml | 45 +++++++++ ...0ToWildFly32_0ServerMigrationProvider.java | 66 +++++++++++++ ...on.wfly.WildFly32_0ServerMigrationProvider | 17 ++++ migrations/wildfly32.0/wildfly26.0/pom.xml | 45 +++++++++ ...0ToWildFly32_0ServerMigrationProvider.java | 66 +++++++++++++ ...on.wfly.WildFly32_0ServerMigrationProvider | 17 ++++ migrations/wildfly32.0/wildfly27.0/pom.xml | 45 +++++++++ ...0ToWildFly32_0ServerMigrationProvider.java | 65 +++++++++++++ ...on.wfly.WildFly32_0ServerMigrationProvider | 17 ++++ migrations/wildfly32.0/wildfly28.0/pom.xml | 45 +++++++++ ...0ToWildFly32_0ServerMigrationProvider.java | 65 +++++++++++++ ...on.wfly.WildFly32_0ServerMigrationProvider | 17 ++++ migrations/wildfly32.0/wildfly29.0/pom.xml | 45 +++++++++ ...0ToWildFly32_0ServerMigrationProvider.java | 65 +++++++++++++ ...on.wfly.WildFly32_0ServerMigrationProvider | 17 ++++ migrations/wildfly32.0/wildfly30.0/pom.xml | 45 +++++++++ ...0ToWildFly32_0ServerMigrationProvider.java | 65 +++++++++++++ ...on.wfly.WildFly32_0ServerMigrationProvider | 17 ++++ migrations/wildfly32.0/wildfly31.0/pom.xml | 45 +++++++++ ...0ToWildFly32_0ServerMigrationProvider.java | 65 +++++++++++++ ...on.wfly.WildFly32_0ServerMigrationProvider | 17 ++++ migrations/wildfly32.0/wildfly32.0/pom.xml | 41 ++++++++ ...0ToWildFly32_0ServerMigrationProvider.java | 63 ++++++++++++ ...on.wfly.WildFly32_0ServerMigrationProvider | 17 ++++ pom.xml | 67 +++++++++++++ 35 files changed, 1590 insertions(+) create mode 100644 migrations/wildfly32.0/wildfly22.0/pom.xml create mode 100644 migrations/wildfly32.0/wildfly22.0/src/main/java/org/jboss/migration/wfly/WildFly22_0ToWildFly32_0ServerMigrationProvider.java create mode 100644 migrations/wildfly32.0/wildfly22.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider create mode 100644 migrations/wildfly32.0/wildfly23.0/pom.xml create mode 100644 migrations/wildfly32.0/wildfly23.0/src/main/java/org/jboss/migration/wfly/WildFly23_0ToWildFly32_0ServerMigrationProvider.java create mode 100644 migrations/wildfly32.0/wildfly23.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider create mode 100644 migrations/wildfly32.0/wildfly24.0/pom.xml create mode 100644 migrations/wildfly32.0/wildfly24.0/src/main/java/org/jboss/migration/wfly/WildFly24_0ToWildFly32_0ServerMigrationProvider.java create mode 100644 migrations/wildfly32.0/wildfly24.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider create mode 100644 migrations/wildfly32.0/wildfly25.0/pom.xml create mode 100644 migrations/wildfly32.0/wildfly25.0/src/main/java/org/jboss/migration/wfly/WildFly25_0ToWildFly32_0ServerMigrationProvider.java create mode 100644 migrations/wildfly32.0/wildfly25.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider create mode 100644 migrations/wildfly32.0/wildfly26.0/pom.xml create mode 100644 migrations/wildfly32.0/wildfly26.0/src/main/java/org/jboss/migration/wfly/WildFly26_0ToWildFly32_0ServerMigrationProvider.java create mode 100644 migrations/wildfly32.0/wildfly26.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider create mode 100644 migrations/wildfly32.0/wildfly27.0/pom.xml create mode 100644 migrations/wildfly32.0/wildfly27.0/src/main/java/org/jboss/migration/wfly/WildFly27_0ToWildFly32_0ServerMigrationProvider.java create mode 100644 migrations/wildfly32.0/wildfly27.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider create mode 100644 migrations/wildfly32.0/wildfly28.0/pom.xml create mode 100644 migrations/wildfly32.0/wildfly28.0/src/main/java/org/jboss/migration/wfly/WildFly28_0ToWildFly32_0ServerMigrationProvider.java create mode 100644 migrations/wildfly32.0/wildfly28.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider create mode 100644 migrations/wildfly32.0/wildfly29.0/pom.xml create mode 100644 migrations/wildfly32.0/wildfly29.0/src/main/java/org/jboss/migration/wfly/WildFly29_0ToWildFly32_0ServerMigrationProvider.java create mode 100644 migrations/wildfly32.0/wildfly29.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider create mode 100644 migrations/wildfly32.0/wildfly30.0/pom.xml create mode 100644 migrations/wildfly32.0/wildfly30.0/src/main/java/org/jboss/migration/wfly/WildFly30_0ToWildFly32_0ServerMigrationProvider.java create mode 100644 migrations/wildfly32.0/wildfly30.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider create mode 100644 migrations/wildfly32.0/wildfly31.0/pom.xml create mode 100644 migrations/wildfly32.0/wildfly31.0/src/main/java/org/jboss/migration/wfly/WildFly31_0ToWildFly32_0ServerMigrationProvider.java create mode 100644 migrations/wildfly32.0/wildfly31.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider create mode 100644 migrations/wildfly32.0/wildfly32.0/pom.xml create mode 100644 migrations/wildfly32.0/wildfly32.0/src/main/java/org/jboss/migration/wfly/WildFly32_0ToWildFly32_0ServerMigrationProvider.java create mode 100644 migrations/wildfly32.0/wildfly32.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider diff --git a/dist/standalone/pom.xml b/dist/standalone/pom.xml index d1bd95ac..9dd53cff 100644 --- a/dist/standalone/pom.xml +++ b/dist/standalone/pom.xml @@ -431,6 +431,50 @@ ${project.groupId} jboss-server-migration-wildfly32.0-server + + ${project.groupId} + jboss-server-migration-wildfly22.0-to-wildfly32.0 + + + ${project.groupId} + jboss-server-migration-wildfly23.0-to-wildfly32.0 + + + ${project.groupId} + jboss-server-migration-wildfly24.0-to-wildfly32.0 + + + ${project.groupId} + jboss-server-migration-wildfly25.0-to-wildfly32.0 + + + ${project.groupId} + jboss-server-migration-wildfly26.0-to-wildfly32.0 + + + ${project.groupId} + jboss-server-migration-wildfly27.0-to-wildfly32.0 + + + ${project.groupId} + jboss-server-migration-wildfly28.0-to-wildfly32.0 + + + ${project.groupId} + jboss-server-migration-wildfly29.0-to-wildfly32.0 + + + ${project.groupId} + jboss-server-migration-wildfly30.0-to-wildfly32.0 + + + ${project.groupId} + jboss-server-migration-wildfly31.0-to-wildfly32.0 + + + ${project.groupId} + jboss-server-migration-wildfly32.0-to-wildfly32.0 + diff --git a/migrations/wildfly32.0/wildfly22.0/pom.xml b/migrations/wildfly32.0/wildfly22.0/pom.xml new file mode 100644 index 00000000..ea6de5ee --- /dev/null +++ b/migrations/wildfly32.0/wildfly22.0/pom.xml @@ -0,0 +1,45 @@ + + + + + 4.0.0 + + + org.jboss.migration + jboss-server-migration-parent + 32.0.0.Final-SNAPSHOT + ../../../pom.xml + + + jboss-server-migration-wildfly22.0-to-wildfly32.0 + + JBoss Server Migration: WildFly 22.0 to WildFly 32.0 + + + + ${project.groupId} + jboss-server-migration-wildfly22.0-server + + + ${project.groupId} + jboss-server-migration-wildfly32.0-server + + + + diff --git a/migrations/wildfly32.0/wildfly22.0/src/main/java/org/jboss/migration/wfly/WildFly22_0ToWildFly32_0ServerMigrationProvider.java b/migrations/wildfly32.0/wildfly22.0/src/main/java/org/jboss/migration/wfly/WildFly22_0ToWildFly32_0ServerMigrationProvider.java new file mode 100644 index 00000000..a3df0943 --- /dev/null +++ b/migrations/wildfly32.0/wildfly22.0/src/main/java/org/jboss/migration/wfly/WildFly22_0ToWildFly32_0ServerMigrationProvider.java @@ -0,0 +1,95 @@ +/* + * Copyright 2021 Red Hat, Inc. + * + * 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.jboss.migration.wfly; + +import org.jboss.migration.wfly.task.hostexclude.WildFly32_0AddHostExcludes; +import org.jboss.migration.wfly.task.paths.WildFly26_0MigrateReferencedPaths; +import org.jboss.migration.wfly.task.security.LegacySecurityConfigurationMigration; +import org.jboss.migration.wfly.task.subsystem.keycloak.MigrateKeycloakSubsystem; +import org.jboss.migration.wfly.task.subsystem.picketlink.MigratePicketLinkSubsystem; +import org.jboss.migration.wfly.task.update.WildFly22_0UpdateInfinispanSubsystem; +import org.jboss.migration.wfly.task.xml.WildFly26_0MigrateVault; +import org.jboss.migration.wfly.task.xml.WildFly27_0MigrateJBossDomainProperties; +import org.jboss.migration.wfly10.WildFlyServer10; +import org.jboss.migration.wfly10.WildFlyServerMigration10; +import org.jboss.migration.wfly10.config.task.module.MigrateReferencedModules; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedSubsystems; +import org.jboss.migration.wfly10.config.task.update.ServerUpdate; + +/** + * Server migration to WFLY 32.0, from WFLY 22.0. + * @author emmartins + */ +public class WildFly22_0ToWildFly32_0ServerMigrationProvider implements WildFly32_0ServerMigrationProvider { + + @Override + public WildFlyServerMigration10 getServerMigration() { + final LegacySecurityConfigurationMigration legacySecurityConfigurationMigration = new LegacySecurityConfigurationMigration<>(); + final ServerUpdate.Builders serverUpdateBuilders = new ServerUpdate.Builders<>(); + return serverUpdateBuilders.serverUpdateBuilder() + .standaloneServer(serverUpdateBuilders.standaloneConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(legacySecurityConfigurationMigration.getReadLegacySecurityConfiguration()) + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new WildFly22_0UpdateInfinispanSubsystem<>()) + .subtask(new WildFly26_0MigrateVault<>()) + .subtask(legacySecurityConfigurationMigration.getRemoveLegacySecurityRealms()) + .subtask(legacySecurityConfigurationMigration.getEnsureBasicElytronSubsystem()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityRealmsToElytron()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityDomainsToElytron()) + .subtask(new MigratePicketLinkSubsystem<>()) + .subtask(new MigrateKeycloakSubsystem<>()) + ) + .domain(serverUpdateBuilders.domainBuilder() + .domainConfigurations(serverUpdateBuilders.domainConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(legacySecurityConfigurationMigration.getReadLegacySecurityConfiguration()) + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new WildFly22_0UpdateInfinispanSubsystem<>()) + .subtask(new WildFly32_0AddHostExcludes<>()) + .subtask(legacySecurityConfigurationMigration.getEnsureBasicElytronSubsystem()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityRealmsToElytron()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityDomainsToElytron()) + .subtask(new MigratePicketLinkSubsystem<>()) + .subtask(new MigrateKeycloakSubsystem<>()) + ) + .hostConfigurations(serverUpdateBuilders.hostConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(legacySecurityConfigurationMigration.getReadLegacySecurityConfiguration()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(legacySecurityConfigurationMigration.getRemoveLegacySecurityRealms()) + .subtask(serverUpdateBuilders.hostBuilder() + .subtask(legacySecurityConfigurationMigration.getEnsureBasicElytronSubsystem()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityRealmsToElytron()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityDomainsToElytron()) + ) + ) + ).build(); + } + + @Override + public Class getSourceType() { + return WildFly22_0Server.class; + } +} diff --git a/migrations/wildfly32.0/wildfly22.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider b/migrations/wildfly32.0/wildfly22.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider new file mode 100644 index 00000000..5888b7c3 --- /dev/null +++ b/migrations/wildfly32.0/wildfly22.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider @@ -0,0 +1,17 @@ +# +# Copyright 2021 Red Hat, Inc. +# +# 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. +# + +org.jboss.migration.wfly.WildFly22_0ToWildFly32_0ServerMigrationProvider diff --git a/migrations/wildfly32.0/wildfly23.0/pom.xml b/migrations/wildfly32.0/wildfly23.0/pom.xml new file mode 100644 index 00000000..04255cb3 --- /dev/null +++ b/migrations/wildfly32.0/wildfly23.0/pom.xml @@ -0,0 +1,45 @@ + + + + + 4.0.0 + + + org.jboss.migration + jboss-server-migration-parent + 32.0.0.Final-SNAPSHOT + ../../../pom.xml + + + jboss-server-migration-wildfly23.0-to-wildfly32.0 + + JBoss Server Migration: WildFly 23.0 to WildFly 32.0 + + + + ${project.groupId} + jboss-server-migration-wildfly23.0-server + + + ${project.groupId} + jboss-server-migration-wildfly32.0-server + + + + diff --git a/migrations/wildfly32.0/wildfly23.0/src/main/java/org/jboss/migration/wfly/WildFly23_0ToWildFly32_0ServerMigrationProvider.java b/migrations/wildfly32.0/wildfly23.0/src/main/java/org/jboss/migration/wfly/WildFly23_0ToWildFly32_0ServerMigrationProvider.java new file mode 100644 index 00000000..66679616 --- /dev/null +++ b/migrations/wildfly32.0/wildfly23.0/src/main/java/org/jboss/migration/wfly/WildFly23_0ToWildFly32_0ServerMigrationProvider.java @@ -0,0 +1,94 @@ +/* + * Copyright 2021 Red Hat, Inc. + * + * 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.jboss.migration.wfly; + +import org.jboss.migration.wfly.task.hostexclude.WildFly32_0AddHostExcludes; +import org.jboss.migration.wfly.task.paths.WildFly26_0MigrateReferencedPaths; +import org.jboss.migration.wfly.task.security.LegacySecurityConfigurationMigration; +import org.jboss.migration.wfly.task.subsystem.keycloak.MigrateKeycloakSubsystem; +import org.jboss.migration.wfly.task.subsystem.picketlink.MigratePicketLinkSubsystem; +import org.jboss.migration.wfly.task.update.WildFly22_0UpdateInfinispanSubsystem; +import org.jboss.migration.wfly.task.xml.WildFly26_0MigrateVault; +import org.jboss.migration.wfly.task.xml.WildFly27_0MigrateJBossDomainProperties; +import org.jboss.migration.wfly10.WildFlyServer10; +import org.jboss.migration.wfly10.WildFlyServerMigration10; +import org.jboss.migration.wfly10.config.task.module.MigrateReferencedModules; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedSubsystems; +import org.jboss.migration.wfly10.config.task.update.ServerUpdate; + +/** + * Server migration to WFLY 32.0, from WFLY 23.0. + * @author emmartins + */ +public class WildFly23_0ToWildFly32_0ServerMigrationProvider implements WildFly32_0ServerMigrationProvider { + + @Override + public WildFlyServerMigration10 getServerMigration() { + final LegacySecurityConfigurationMigration legacySecurityConfigurationMigration = new LegacySecurityConfigurationMigration<>(); + final ServerUpdate.Builders serverUpdateBuilders = new ServerUpdate.Builders<>(); + return serverUpdateBuilders.serverUpdateBuilder() + .standaloneServer(serverUpdateBuilders.standaloneConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(legacySecurityConfigurationMigration.getReadLegacySecurityConfiguration()) + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new WildFly22_0UpdateInfinispanSubsystem<>()) + .subtask(new WildFly26_0MigrateVault<>()) + .subtask(legacySecurityConfigurationMigration.getRemoveLegacySecurityRealms()) + .subtask(legacySecurityConfigurationMigration.getEnsureBasicElytronSubsystem()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityRealmsToElytron()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityDomainsToElytron()) + .subtask(new MigratePicketLinkSubsystem<>()) + .subtask(new MigrateKeycloakSubsystem<>()) + ) + .domain(serverUpdateBuilders.domainBuilder() + .domainConfigurations(serverUpdateBuilders.domainConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(legacySecurityConfigurationMigration.getReadLegacySecurityConfiguration()) + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new WildFly32_0AddHostExcludes<>()) + .subtask(legacySecurityConfigurationMigration.getEnsureBasicElytronSubsystem()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityRealmsToElytron()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityDomainsToElytron()) + .subtask(new MigratePicketLinkSubsystem<>()) + .subtask(new MigrateKeycloakSubsystem<>()) + ) + .hostConfigurations(serverUpdateBuilders.hostConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(legacySecurityConfigurationMigration.getReadLegacySecurityConfiguration()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(legacySecurityConfigurationMigration.getRemoveLegacySecurityRealms()) + .subtask(serverUpdateBuilders.hostBuilder() + .subtask(legacySecurityConfigurationMigration.getEnsureBasicElytronSubsystem()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityRealmsToElytron()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityDomainsToElytron()) + ) + ) + ).build(); + } + + @Override + public Class getSourceType() { + return WildFly23_0Server.class; + } +} diff --git a/migrations/wildfly32.0/wildfly23.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider b/migrations/wildfly32.0/wildfly23.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider new file mode 100644 index 00000000..b5ce49e6 --- /dev/null +++ b/migrations/wildfly32.0/wildfly23.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider @@ -0,0 +1,17 @@ +# +# Copyright 2021 Red Hat, Inc. +# +# 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. +# + +org.jboss.migration.wfly.WildFly23_0ToWildFly32_0ServerMigrationProvider diff --git a/migrations/wildfly32.0/wildfly24.0/pom.xml b/migrations/wildfly32.0/wildfly24.0/pom.xml new file mode 100644 index 00000000..dbd4d5e6 --- /dev/null +++ b/migrations/wildfly32.0/wildfly24.0/pom.xml @@ -0,0 +1,45 @@ + + + + + 4.0.0 + + + org.jboss.migration + jboss-server-migration-parent + 32.0.0.Final-SNAPSHOT + ../../../pom.xml + + + jboss-server-migration-wildfly24.0-to-wildfly32.0 + + JBoss Server Migration: WildFly 24.0 to WildFly 32.0 + + + + ${project.groupId} + jboss-server-migration-wildfly24.0-server + + + ${project.groupId} + jboss-server-migration-wildfly32.0-server + + + + diff --git a/migrations/wildfly32.0/wildfly24.0/src/main/java/org/jboss/migration/wfly/WildFly24_0ToWildFly32_0ServerMigrationProvider.java b/migrations/wildfly32.0/wildfly24.0/src/main/java/org/jboss/migration/wfly/WildFly24_0ToWildFly32_0ServerMigrationProvider.java new file mode 100644 index 00000000..4814e8e6 --- /dev/null +++ b/migrations/wildfly32.0/wildfly24.0/src/main/java/org/jboss/migration/wfly/WildFly24_0ToWildFly32_0ServerMigrationProvider.java @@ -0,0 +1,92 @@ +/* + * Copyright 2021 Red Hat, Inc. + * + * 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.jboss.migration.wfly; + +import org.jboss.migration.wfly.task.hostexclude.WildFly32_0AddHostExcludes; +import org.jboss.migration.wfly.task.paths.WildFly26_0MigrateReferencedPaths; +import org.jboss.migration.wfly.task.security.LegacySecurityConfigurationMigration; +import org.jboss.migration.wfly.task.subsystem.keycloak.MigrateKeycloakSubsystem; +import org.jboss.migration.wfly.task.subsystem.picketlink.MigratePicketLinkSubsystem; +import org.jboss.migration.wfly.task.xml.WildFly26_0MigrateVault; +import org.jboss.migration.wfly.task.xml.WildFly27_0MigrateJBossDomainProperties; +import org.jboss.migration.wfly10.WildFlyServer10; +import org.jboss.migration.wfly10.WildFlyServerMigration10; +import org.jboss.migration.wfly10.config.task.module.MigrateReferencedModules; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedSubsystems; +import org.jboss.migration.wfly10.config.task.update.ServerUpdate; + +/** + * Server migration to WFLY 32.0, from WFLY 24.0. + * @author emmartins + */ +public class WildFly24_0ToWildFly32_0ServerMigrationProvider implements WildFly32_0ServerMigrationProvider { + + @Override + public WildFlyServerMigration10 getServerMigration() { + final ServerUpdate.Builders serverUpdateBuilders = new ServerUpdate.Builders<>(); + final LegacySecurityConfigurationMigration legacySecurityConfigurationMigration = new LegacySecurityConfigurationMigration<>(); + return serverUpdateBuilders.serverUpdateBuilder() + .standaloneServer(serverUpdateBuilders.standaloneConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(legacySecurityConfigurationMigration.getReadLegacySecurityConfiguration()) + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new WildFly26_0MigrateVault<>()) + .subtask(legacySecurityConfigurationMigration.getRemoveLegacySecurityRealms()) + .subtask(legacySecurityConfigurationMigration.getEnsureBasicElytronSubsystem()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityRealmsToElytron()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityDomainsToElytron()) + .subtask(new MigratePicketLinkSubsystem<>()) + .subtask(new MigrateKeycloakSubsystem<>()) + ) + .domain(serverUpdateBuilders.domainBuilder() + .domainConfigurations(serverUpdateBuilders.domainConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(legacySecurityConfigurationMigration.getReadLegacySecurityConfiguration()) + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new WildFly32_0AddHostExcludes<>()) + .subtask(legacySecurityConfigurationMigration.getEnsureBasicElytronSubsystem()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityRealmsToElytron()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityDomainsToElytron()) + .subtask(new MigratePicketLinkSubsystem<>()) + .subtask(new MigrateKeycloakSubsystem<>()) + ) + .hostConfigurations(serverUpdateBuilders.hostConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(legacySecurityConfigurationMigration.getReadLegacySecurityConfiguration()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(legacySecurityConfigurationMigration.getRemoveLegacySecurityRealms()) + .subtask(serverUpdateBuilders.hostBuilder() + .subtask(legacySecurityConfigurationMigration.getEnsureBasicElytronSubsystem()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityRealmsToElytron()) + .subtask(legacySecurityConfigurationMigration.getMigrateLegacySecurityDomainsToElytron()) + ) + ) + ).build(); + } + + @Override + public Class getSourceType() { + return WildFly24_0Server.class; + } +} diff --git a/migrations/wildfly32.0/wildfly24.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider b/migrations/wildfly32.0/wildfly24.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider new file mode 100644 index 00000000..ac980e68 --- /dev/null +++ b/migrations/wildfly32.0/wildfly24.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider @@ -0,0 +1,17 @@ +# +# Copyright 2021 Red Hat, Inc. +# +# 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. +# + +org.jboss.migration.wfly.WildFly24_0ToWildFly32_0ServerMigrationProvider diff --git a/migrations/wildfly32.0/wildfly25.0/pom.xml b/migrations/wildfly32.0/wildfly25.0/pom.xml new file mode 100644 index 00000000..ad6a8c6f --- /dev/null +++ b/migrations/wildfly32.0/wildfly25.0/pom.xml @@ -0,0 +1,45 @@ + + + + + 4.0.0 + + + org.jboss.migration + jboss-server-migration-parent + 32.0.0.Final-SNAPSHOT + ../../../pom.xml + + + jboss-server-migration-wildfly25.0-to-wildfly32.0 + + JBoss Server Migration: WildFly 25.0 to WildFly 32.0 + + + + ${project.groupId} + jboss-server-migration-wildfly25.0-server + + + ${project.groupId} + jboss-server-migration-wildfly32.0-server + + + + diff --git a/migrations/wildfly32.0/wildfly25.0/src/main/java/org/jboss/migration/wfly/WildFly25_0ToWildFly32_0ServerMigrationProvider.java b/migrations/wildfly32.0/wildfly25.0/src/main/java/org/jboss/migration/wfly/WildFly25_0ToWildFly32_0ServerMigrationProvider.java new file mode 100644 index 00000000..e04ff0c6 --- /dev/null +++ b/migrations/wildfly32.0/wildfly25.0/src/main/java/org/jboss/migration/wfly/WildFly25_0ToWildFly32_0ServerMigrationProvider.java @@ -0,0 +1,66 @@ +/* + * Copyright 2021 Red Hat, Inc. + * + * 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.jboss.migration.wfly; + +import org.jboss.migration.wfly.task.hostexclude.WildFly32_0AddHostExcludes; +import org.jboss.migration.wfly.task.paths.WildFly26_0MigrateReferencedPaths; +import org.jboss.migration.wfly.task.xml.WildFly27_0MigrateJBossDomainProperties; +import org.jboss.migration.wfly10.WildFlyServer10; +import org.jboss.migration.wfly10.WildFlyServerMigration10; +import org.jboss.migration.wfly10.config.task.module.MigrateReferencedModules; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedSubsystems; +import org.jboss.migration.wfly10.config.task.update.ServerUpdate; + +/** + * Server migration to WFLY 32.0, from WFLY 25.0. + * @author emmartins + */ +public class WildFly25_0ToWildFly32_0ServerMigrationProvider implements WildFly32_0ServerMigrationProvider { + + @Override + public WildFlyServerMigration10 getServerMigration() { + final ServerUpdate.Builders serverUpdateBuilders = new ServerUpdate.Builders<>(); + return serverUpdateBuilders.serverUpdateBuilder() + .standaloneServer(serverUpdateBuilders.standaloneConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + ) + .domain(serverUpdateBuilders.domainBuilder() + .domainConfigurations(serverUpdateBuilders.domainConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new WildFly32_0AddHostExcludes<>()) + ) + .hostConfigurations(serverUpdateBuilders.hostConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + ) + ).build(); + } + + @Override + public Class getSourceType() { + return WildFly25_0Server.class; + } +} diff --git a/migrations/wildfly32.0/wildfly25.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider b/migrations/wildfly32.0/wildfly25.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider new file mode 100644 index 00000000..bb25752b --- /dev/null +++ b/migrations/wildfly32.0/wildfly25.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider @@ -0,0 +1,17 @@ +# +# Copyright 2021 Red Hat, Inc. +# +# 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. +# + +org.jboss.migration.wfly.WildFly25_0ToWildFly32_0ServerMigrationProvider diff --git a/migrations/wildfly32.0/wildfly26.0/pom.xml b/migrations/wildfly32.0/wildfly26.0/pom.xml new file mode 100644 index 00000000..33e00fb9 --- /dev/null +++ b/migrations/wildfly32.0/wildfly26.0/pom.xml @@ -0,0 +1,45 @@ + + + + + 4.0.0 + + + org.jboss.migration + jboss-server-migration-parent + 32.0.0.Final-SNAPSHOT + ../../../pom.xml + + + jboss-server-migration-wildfly26.0-to-wildfly32.0 + + JBoss Server Migration: WildFly 26.0 to WildFly 32.0 + + + + ${project.groupId} + jboss-server-migration-wildfly26.0-server + + + ${project.groupId} + jboss-server-migration-wildfly32.0-server + + + + diff --git a/migrations/wildfly32.0/wildfly26.0/src/main/java/org/jboss/migration/wfly/WildFly26_0ToWildFly32_0ServerMigrationProvider.java b/migrations/wildfly32.0/wildfly26.0/src/main/java/org/jboss/migration/wfly/WildFly26_0ToWildFly32_0ServerMigrationProvider.java new file mode 100644 index 00000000..34c54511 --- /dev/null +++ b/migrations/wildfly32.0/wildfly26.0/src/main/java/org/jboss/migration/wfly/WildFly26_0ToWildFly32_0ServerMigrationProvider.java @@ -0,0 +1,66 @@ +/* + * Copyright 2021 Red Hat, Inc. + * + * 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.jboss.migration.wfly; + +import org.jboss.migration.wfly.task.hostexclude.WildFly32_0AddHostExcludes; +import org.jboss.migration.wfly.task.paths.WildFly26_0MigrateReferencedPaths; +import org.jboss.migration.wfly.task.xml.WildFly27_0MigrateJBossDomainProperties; +import org.jboss.migration.wfly10.WildFlyServer10; +import org.jboss.migration.wfly10.WildFlyServerMigration10; +import org.jboss.migration.wfly10.config.task.module.MigrateReferencedModules; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedSubsystems; +import org.jboss.migration.wfly10.config.task.update.ServerUpdate; + +/** + * Server migration to WFLY 32.0, from WFLY 26.0. + * @author emmartins + */ +public class WildFly26_0ToWildFly32_0ServerMigrationProvider implements WildFly32_0ServerMigrationProvider { + + @Override + public WildFlyServerMigration10 getServerMigration() { + final ServerUpdate.Builders serverUpdateBuilders = new ServerUpdate.Builders<>(); + return serverUpdateBuilders.serverUpdateBuilder() + .standaloneServer(serverUpdateBuilders.standaloneConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + ) + .domain(serverUpdateBuilders.domainBuilder() + .domainConfigurations(serverUpdateBuilders.domainConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new WildFly32_0AddHostExcludes<>()) + ) + .hostConfigurations(serverUpdateBuilders.hostConfigurationBuilder() + .subtask(new WildFly27_0MigrateJBossDomainProperties<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + ) + ).build(); + } + + @Override + public Class getSourceType() { + return WildFly26_0Server.class; + } +} diff --git a/migrations/wildfly32.0/wildfly26.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider b/migrations/wildfly32.0/wildfly26.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider new file mode 100644 index 00000000..14200f0c --- /dev/null +++ b/migrations/wildfly32.0/wildfly26.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider @@ -0,0 +1,17 @@ +# +# Copyright 2021 Red Hat, Inc. +# +# 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. +# + +org.jboss.migration.wfly.WildFly26_0ToWildFly32_0ServerMigrationProvider diff --git a/migrations/wildfly32.0/wildfly27.0/pom.xml b/migrations/wildfly32.0/wildfly27.0/pom.xml new file mode 100644 index 00000000..6207633b --- /dev/null +++ b/migrations/wildfly32.0/wildfly27.0/pom.xml @@ -0,0 +1,45 @@ + + + + + 4.0.0 + + + org.jboss.migration + jboss-server-migration-parent + 32.0.0.Final-SNAPSHOT + ../../../pom.xml + + + jboss-server-migration-wildfly27.0-to-wildfly32.0 + + JBoss Server Migration: WildFly 27.0 to WildFly 32.0 + + + + ${project.groupId} + jboss-server-migration-wildfly27.0-server + + + ${project.groupId} + jboss-server-migration-wildfly32.0-server + + + + diff --git a/migrations/wildfly32.0/wildfly27.0/src/main/java/org/jboss/migration/wfly/WildFly27_0ToWildFly32_0ServerMigrationProvider.java b/migrations/wildfly32.0/wildfly27.0/src/main/java/org/jboss/migration/wfly/WildFly27_0ToWildFly32_0ServerMigrationProvider.java new file mode 100644 index 00000000..d7346c47 --- /dev/null +++ b/migrations/wildfly32.0/wildfly27.0/src/main/java/org/jboss/migration/wfly/WildFly27_0ToWildFly32_0ServerMigrationProvider.java @@ -0,0 +1,65 @@ +/* + * Copyright 2021 Red Hat, Inc. + * + * 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.jboss.migration.wfly; + +import org.jboss.migration.wfly.task.hostexclude.WildFly32_0AddHostExcludes; +import org.jboss.migration.wfly.task.paths.WildFly26_0MigrateReferencedPaths; +import org.jboss.migration.wfly10.WildFlyServer10; +import org.jboss.migration.wfly10.WildFlyServerMigration10; +import org.jboss.migration.wfly10.config.task.module.MigrateReferencedModules; +import org.jboss.migration.wfly10.config.task.update.MigrateDeployments; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedSubsystems; +import org.jboss.migration.wfly10.config.task.update.ServerUpdate; + +/** + * Server migration to WFLY 32.0, from WFLY 27.0. + * @author emmartins + */ +public class WildFly27_0ToWildFly32_0ServerMigrationProvider implements WildFly32_0ServerMigrationProvider { + + @Override + public WildFlyServerMigration10 getServerMigration() { + final ServerUpdate.Builders serverUpdateBuilders = new ServerUpdate.Builders<>(); + return serverUpdateBuilders.serverUpdateBuilder() + .standaloneServer(serverUpdateBuilders.standaloneConfigurationBuilder() + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new MigrateDeployments<>()) + ) + .domain(serverUpdateBuilders.domainBuilder() + .domainConfigurations(serverUpdateBuilders.domainConfigurationBuilder() + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new WildFly32_0AddHostExcludes<>()) + .subtask(new MigrateDeployments<>()) + ) + .hostConfigurations(serverUpdateBuilders.hostConfigurationBuilder() + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + ) + ).build(); + } + + @Override + public Class getSourceType() { + return WildFly27_0Server.class; + } +} diff --git a/migrations/wildfly32.0/wildfly27.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider b/migrations/wildfly32.0/wildfly27.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider new file mode 100644 index 00000000..cd4b6c1c --- /dev/null +++ b/migrations/wildfly32.0/wildfly27.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider @@ -0,0 +1,17 @@ +# +# Copyright 2021 Red Hat, Inc. +# +# 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. +# + +org.jboss.migration.wfly.WildFly27_0ToWildFly32_0ServerMigrationProvider diff --git a/migrations/wildfly32.0/wildfly28.0/pom.xml b/migrations/wildfly32.0/wildfly28.0/pom.xml new file mode 100644 index 00000000..802db687 --- /dev/null +++ b/migrations/wildfly32.0/wildfly28.0/pom.xml @@ -0,0 +1,45 @@ + + + + + 4.0.0 + + + org.jboss.migration + jboss-server-migration-parent + 32.0.0.Final-SNAPSHOT + ../../../pom.xml + + + jboss-server-migration-wildfly28.0-to-wildfly32.0 + + JBoss Server Migration: WildFly 28.0 to WildFly 32.0 + + + + ${project.groupId} + jboss-server-migration-wildfly28.0-server + + + ${project.groupId} + jboss-server-migration-wildfly32.0-server + + + + diff --git a/migrations/wildfly32.0/wildfly28.0/src/main/java/org/jboss/migration/wfly/WildFly28_0ToWildFly32_0ServerMigrationProvider.java b/migrations/wildfly32.0/wildfly28.0/src/main/java/org/jboss/migration/wfly/WildFly28_0ToWildFly32_0ServerMigrationProvider.java new file mode 100644 index 00000000..b655b4a7 --- /dev/null +++ b/migrations/wildfly32.0/wildfly28.0/src/main/java/org/jboss/migration/wfly/WildFly28_0ToWildFly32_0ServerMigrationProvider.java @@ -0,0 +1,65 @@ +/* + * Copyright 2021 Red Hat, Inc. + * + * 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.jboss.migration.wfly; + +import org.jboss.migration.wfly.task.hostexclude.WildFly32_0AddHostExcludes; +import org.jboss.migration.wfly.task.paths.WildFly26_0MigrateReferencedPaths; +import org.jboss.migration.wfly10.WildFlyServer10; +import org.jboss.migration.wfly10.WildFlyServerMigration10; +import org.jboss.migration.wfly10.config.task.module.MigrateReferencedModules; +import org.jboss.migration.wfly10.config.task.update.MigrateDeployments; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedSubsystems; +import org.jboss.migration.wfly10.config.task.update.ServerUpdate; + +/** + * Server migration to WFLY 32.0, from WFLY 28.0. + * @author emmartins + */ +public class WildFly28_0ToWildFly32_0ServerMigrationProvider implements WildFly32_0ServerMigrationProvider { + + @Override + public WildFlyServerMigration10 getServerMigration() { + final ServerUpdate.Builders serverUpdateBuilders = new ServerUpdate.Builders<>(); + return serverUpdateBuilders.serverUpdateBuilder() + .standaloneServer(serverUpdateBuilders.standaloneConfigurationBuilder() + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new MigrateDeployments<>()) + ) + .domain(serverUpdateBuilders.domainBuilder() + .domainConfigurations(serverUpdateBuilders.domainConfigurationBuilder() + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new WildFly32_0AddHostExcludes<>()) + .subtask(new MigrateDeployments<>()) + ) + .hostConfigurations(serverUpdateBuilders.hostConfigurationBuilder() + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + ) + ).build(); + } + + @Override + public Class getSourceType() { + return WildFly28_0Server.class; + } +} diff --git a/migrations/wildfly32.0/wildfly28.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider b/migrations/wildfly32.0/wildfly28.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider new file mode 100644 index 00000000..dac6fc59 --- /dev/null +++ b/migrations/wildfly32.0/wildfly28.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider @@ -0,0 +1,17 @@ +# +# Copyright 2021 Red Hat, Inc. +# +# 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. +# + +org.jboss.migration.wfly.WildFly28_0ToWildFly32_0ServerMigrationProvider diff --git a/migrations/wildfly32.0/wildfly29.0/pom.xml b/migrations/wildfly32.0/wildfly29.0/pom.xml new file mode 100644 index 00000000..6f988d7a --- /dev/null +++ b/migrations/wildfly32.0/wildfly29.0/pom.xml @@ -0,0 +1,45 @@ + + + + + 4.0.0 + + + org.jboss.migration + jboss-server-migration-parent + 32.0.0.Final-SNAPSHOT + ../../../pom.xml + + + jboss-server-migration-wildfly29.0-to-wildfly32.0 + + JBoss Server Migration: WildFly 29.0 to WildFly 32.0 + + + + ${project.groupId} + jboss-server-migration-wildfly29.0-server + + + ${project.groupId} + jboss-server-migration-wildfly32.0-server + + + + diff --git a/migrations/wildfly32.0/wildfly29.0/src/main/java/org/jboss/migration/wfly/WildFly29_0ToWildFly32_0ServerMigrationProvider.java b/migrations/wildfly32.0/wildfly29.0/src/main/java/org/jboss/migration/wfly/WildFly29_0ToWildFly32_0ServerMigrationProvider.java new file mode 100644 index 00000000..45285b92 --- /dev/null +++ b/migrations/wildfly32.0/wildfly29.0/src/main/java/org/jboss/migration/wfly/WildFly29_0ToWildFly32_0ServerMigrationProvider.java @@ -0,0 +1,65 @@ +/* + * Copyright 2021 Red Hat, Inc. + * + * 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.jboss.migration.wfly; + +import org.jboss.migration.wfly.task.hostexclude.WildFly32_0AddHostExcludes; +import org.jboss.migration.wfly.task.paths.WildFly26_0MigrateReferencedPaths; +import org.jboss.migration.wfly10.WildFlyServer10; +import org.jboss.migration.wfly10.WildFlyServerMigration10; +import org.jboss.migration.wfly10.config.task.module.MigrateReferencedModules; +import org.jboss.migration.wfly10.config.task.update.MigrateDeployments; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedSubsystems; +import org.jboss.migration.wfly10.config.task.update.ServerUpdate; + +/** + * Server migration to WFLY 32.0, from WFLY 29.0. + * @author emmartins + */ +public class WildFly29_0ToWildFly32_0ServerMigrationProvider implements WildFly32_0ServerMigrationProvider { + + @Override + public WildFlyServerMigration10 getServerMigration() { + final ServerUpdate.Builders serverUpdateBuilders = new ServerUpdate.Builders<>(); + return serverUpdateBuilders.serverUpdateBuilder() + .standaloneServer(serverUpdateBuilders.standaloneConfigurationBuilder() + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new MigrateDeployments<>()) + ) + .domain(serverUpdateBuilders.domainBuilder() + .domainConfigurations(serverUpdateBuilders.domainConfigurationBuilder() + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new WildFly32_0AddHostExcludes<>()) + .subtask(new MigrateDeployments<>()) + ) + .hostConfigurations(serverUpdateBuilders.hostConfigurationBuilder() + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + ) + ).build(); + } + + @Override + public Class getSourceType() { + return WildFly29_0Server.class; + } +} diff --git a/migrations/wildfly32.0/wildfly29.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider b/migrations/wildfly32.0/wildfly29.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider new file mode 100644 index 00000000..ef6510a6 --- /dev/null +++ b/migrations/wildfly32.0/wildfly29.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider @@ -0,0 +1,17 @@ +# +# Copyright 2021 Red Hat, Inc. +# +# 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. +# + +org.jboss.migration.wfly.WildFly29_0ToWildFly32_0ServerMigrationProvider diff --git a/migrations/wildfly32.0/wildfly30.0/pom.xml b/migrations/wildfly32.0/wildfly30.0/pom.xml new file mode 100644 index 00000000..f33a628e --- /dev/null +++ b/migrations/wildfly32.0/wildfly30.0/pom.xml @@ -0,0 +1,45 @@ + + + + + 4.0.0 + + + org.jboss.migration + jboss-server-migration-parent + 32.0.0.Final-SNAPSHOT + ../../../pom.xml + + + jboss-server-migration-wildfly30.0-to-wildfly32.0 + + JBoss Server Migration: WildFly 30.0 to WildFly 32.0 + + + + ${project.groupId} + jboss-server-migration-wildfly30.0-server + + + ${project.groupId} + jboss-server-migration-wildfly32.0-server + + + + diff --git a/migrations/wildfly32.0/wildfly30.0/src/main/java/org/jboss/migration/wfly/WildFly30_0ToWildFly32_0ServerMigrationProvider.java b/migrations/wildfly32.0/wildfly30.0/src/main/java/org/jboss/migration/wfly/WildFly30_0ToWildFly32_0ServerMigrationProvider.java new file mode 100644 index 00000000..47154bff --- /dev/null +++ b/migrations/wildfly32.0/wildfly30.0/src/main/java/org/jboss/migration/wfly/WildFly30_0ToWildFly32_0ServerMigrationProvider.java @@ -0,0 +1,65 @@ +/* + * Copyright 2021 Red Hat, Inc. + * + * 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.jboss.migration.wfly; + +import org.jboss.migration.wfly.task.hostexclude.WildFly32_0AddHostExcludes; +import org.jboss.migration.wfly.task.paths.WildFly26_0MigrateReferencedPaths; +import org.jboss.migration.wfly10.WildFlyServer10; +import org.jboss.migration.wfly10.WildFlyServerMigration10; +import org.jboss.migration.wfly10.config.task.module.MigrateReferencedModules; +import org.jboss.migration.wfly10.config.task.update.MigrateDeployments; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedSubsystems; +import org.jboss.migration.wfly10.config.task.update.ServerUpdate; + +/** + * Server migration to WFLY 32.0, from WFLY 30.0. + * @author emmartins + */ +public class WildFly30_0ToWildFly32_0ServerMigrationProvider implements WildFly32_0ServerMigrationProvider { + + @Override + public WildFlyServerMigration10 getServerMigration() { + final ServerUpdate.Builders serverUpdateBuilders = new ServerUpdate.Builders<>(); + return serverUpdateBuilders.serverUpdateBuilder() + .standaloneServer(serverUpdateBuilders.standaloneConfigurationBuilder() + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new MigrateDeployments<>()) + ) + .domain(serverUpdateBuilders.domainBuilder() + .domainConfigurations(serverUpdateBuilders.domainConfigurationBuilder() + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new WildFly32_0AddHostExcludes<>()) + .subtask(new MigrateDeployments<>()) + ) + .hostConfigurations(serverUpdateBuilders.hostConfigurationBuilder() + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + ) + ).build(); + } + + @Override + public Class getSourceType() { + return WildFly30_0Server.class; + } +} diff --git a/migrations/wildfly32.0/wildfly30.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider b/migrations/wildfly32.0/wildfly30.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider new file mode 100644 index 00000000..8e81889f --- /dev/null +++ b/migrations/wildfly32.0/wildfly30.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider @@ -0,0 +1,17 @@ +# +# Copyright 2021 Red Hat, Inc. +# +# 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. +# + +org.jboss.migration.wfly.WildFly30_0ToWildFly32_0ServerMigrationProvider diff --git a/migrations/wildfly32.0/wildfly31.0/pom.xml b/migrations/wildfly32.0/wildfly31.0/pom.xml new file mode 100644 index 00000000..8d5fd8f4 --- /dev/null +++ b/migrations/wildfly32.0/wildfly31.0/pom.xml @@ -0,0 +1,45 @@ + + + + + 4.0.0 + + + org.jboss.migration + jboss-server-migration-parent + 32.0.0.Final-SNAPSHOT + ../../../pom.xml + + + jboss-server-migration-wildfly31.0-to-wildfly32.0 + + JBoss Server Migration: WildFly 31.0 to WildFly 32.0 + + + + ${project.groupId} + jboss-server-migration-wildfly31.0-server + + + ${project.groupId} + jboss-server-migration-wildfly32.0-server + + + + diff --git a/migrations/wildfly32.0/wildfly31.0/src/main/java/org/jboss/migration/wfly/WildFly31_0ToWildFly32_0ServerMigrationProvider.java b/migrations/wildfly32.0/wildfly31.0/src/main/java/org/jboss/migration/wfly/WildFly31_0ToWildFly32_0ServerMigrationProvider.java new file mode 100644 index 00000000..9a8d0993 --- /dev/null +++ b/migrations/wildfly32.0/wildfly31.0/src/main/java/org/jboss/migration/wfly/WildFly31_0ToWildFly32_0ServerMigrationProvider.java @@ -0,0 +1,65 @@ +/* + * Copyright 2021 Red Hat, Inc. + * + * 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.jboss.migration.wfly; + +import org.jboss.migration.wfly.task.hostexclude.WildFly32_0AddHostExcludes; +import org.jboss.migration.wfly.task.paths.WildFly26_0MigrateReferencedPaths; +import org.jboss.migration.wfly10.WildFlyServer10; +import org.jboss.migration.wfly10.WildFlyServerMigration10; +import org.jboss.migration.wfly10.config.task.module.MigrateReferencedModules; +import org.jboss.migration.wfly10.config.task.update.MigrateDeployments; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedSubsystems; +import org.jboss.migration.wfly10.config.task.update.ServerUpdate; + +/** + * Server migration to WFLY 32.0, from WFLY 31.0. + * @author emmartins + */ +public class WildFly31_0ToWildFly32_0ServerMigrationProvider implements WildFly32_0ServerMigrationProvider { + + @Override + public WildFlyServerMigration10 getServerMigration() { + final ServerUpdate.Builders serverUpdateBuilders = new ServerUpdate.Builders<>(); + return serverUpdateBuilders.serverUpdateBuilder() + .standaloneServer(serverUpdateBuilders.standaloneConfigurationBuilder() + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new MigrateDeployments<>()) + ) + .domain(serverUpdateBuilders.domainBuilder() + .domainConfigurations(serverUpdateBuilders.domainConfigurationBuilder() + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new WildFly32_0AddHostExcludes<>()) + .subtask(new MigrateDeployments<>()) + ) + .hostConfigurations(serverUpdateBuilders.hostConfigurationBuilder() + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + ) + ).build(); + } + + @Override + public Class getSourceType() { + return WildFly31_0Server.class; + } +} diff --git a/migrations/wildfly32.0/wildfly31.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider b/migrations/wildfly32.0/wildfly31.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider new file mode 100644 index 00000000..b464e7d0 --- /dev/null +++ b/migrations/wildfly32.0/wildfly31.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider @@ -0,0 +1,17 @@ +# +# Copyright 2021 Red Hat, Inc. +# +# 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. +# + +org.jboss.migration.wfly.WildFly31_0ToWildFly32_0ServerMigrationProvider diff --git a/migrations/wildfly32.0/wildfly32.0/pom.xml b/migrations/wildfly32.0/wildfly32.0/pom.xml new file mode 100644 index 00000000..51a7e60c --- /dev/null +++ b/migrations/wildfly32.0/wildfly32.0/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.jboss.migration + jboss-server-migration-parent + 32.0.0.Final-SNAPSHOT + ../../../pom.xml + + + jboss-server-migration-wildfly32.0-to-wildfly32.0 + + JBoss Server Migration: WildFly 32.0 to WildFly 32.0 + + + + ${project.groupId} + jboss-server-migration-wildfly32.0-server + + + + diff --git a/migrations/wildfly32.0/wildfly32.0/src/main/java/org/jboss/migration/wfly/WildFly32_0ToWildFly32_0ServerMigrationProvider.java b/migrations/wildfly32.0/wildfly32.0/src/main/java/org/jboss/migration/wfly/WildFly32_0ToWildFly32_0ServerMigrationProvider.java new file mode 100644 index 00000000..b20d979c --- /dev/null +++ b/migrations/wildfly32.0/wildfly32.0/src/main/java/org/jboss/migration/wfly/WildFly32_0ToWildFly32_0ServerMigrationProvider.java @@ -0,0 +1,63 @@ +/* + * Copyright 2021 Red Hat, Inc. + * + * 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.jboss.migration.wfly; + +import org.jboss.migration.wfly.task.paths.WildFly26_0MigrateReferencedPaths; +import org.jboss.migration.wfly10.WildFlyServer10; +import org.jboss.migration.wfly10.WildFlyServerMigration10; +import org.jboss.migration.wfly10.config.task.module.MigrateReferencedModules; +import org.jboss.migration.wfly10.config.task.update.MigrateDeployments; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions; +import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedSubsystems; +import org.jboss.migration.wfly10.config.task.update.ServerUpdate; + +/** + * Server migration to WFLY 32.0, from WFLY 32.0. + * @author emmartins + */ +public class WildFly32_0ToWildFly32_0ServerMigrationProvider implements WildFly32_0ServerMigrationProvider { + + @Override + public WildFlyServerMigration10 getServerMigration() { + final ServerUpdate.Builders serverUpdateBuilders = new ServerUpdate.Builders<>(); + return serverUpdateBuilders.serverUpdateBuilder() + .standaloneServer(serverUpdateBuilders.standaloneConfigurationBuilder() + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new MigrateDeployments<>()) + ) + .domain(serverUpdateBuilders.domainBuilder() + .domainConfigurations(serverUpdateBuilders.domainConfigurationBuilder() + .subtask(new RemoveUnsupportedExtensions<>()) + .subtask(new RemoveUnsupportedSubsystems<>()) + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + .subtask(new MigrateDeployments<>()) + ) + .hostConfigurations(serverUpdateBuilders.hostConfigurationBuilder() + .subtask(new MigrateReferencedModules<>()) + .subtask(new WildFly26_0MigrateReferencedPaths<>()) + ) + ).build(); + } + + @Override + public Class getSourceType() { + return WildFly32_0Server.class; + } +} diff --git a/migrations/wildfly32.0/wildfly32.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider b/migrations/wildfly32.0/wildfly32.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider new file mode 100644 index 00000000..d0926d1d --- /dev/null +++ b/migrations/wildfly32.0/wildfly32.0/src/main/resources/META-INF/services/org.jboss.migration.wfly.WildFly32_0ServerMigrationProvider @@ -0,0 +1,17 @@ +# +# Copyright 2021 Red Hat, Inc. +# +# 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. +# + +org.jboss.migration.wfly.WildFly32_0ToWildFly32_0ServerMigrationProvider diff --git a/pom.xml b/pom.xml index 551159cd..31a5984b 100644 --- a/pom.xml +++ b/pom.xml @@ -158,6 +158,18 @@ migrations/wildfly31.0/wildfly29.0 migrations/wildfly31.0/wildfly30.0 migrations/wildfly31.0/wildfly31.0 + + migrations/wildfly32.0/wildfly22.0 + migrations/wildfly32.0/wildfly23.0 + migrations/wildfly32.0/wildfly24.0 + migrations/wildfly32.0/wildfly25.0 + migrations/wildfly32.0/wildfly26.0 + migrations/wildfly32.0/wildfly27.0 + migrations/wildfly32.0/wildfly28.0 + migrations/wildfly32.0/wildfly29.0 + migrations/wildfly32.0/wildfly30.0 + migrations/wildfly32.0/wildfly31.0 + migrations/wildfly32.0/wildfly32.0 servers/eap6.4 servers/eap7.0 servers/eap7.1 @@ -990,6 +1002,61 @@ jboss-server-migration-wildfly32.0-server ${project.version} + + ${project.groupId} + jboss-server-migration-wildfly22.0-to-wildfly32.0 + ${project.version} + + + ${project.groupId} + jboss-server-migration-wildfly23.0-to-wildfly32.0 + ${project.version} + + + ${project.groupId} + jboss-server-migration-wildfly24.0-to-wildfly32.0 + ${project.version} + + + ${project.groupId} + jboss-server-migration-wildfly25.0-to-wildfly32.0 + ${project.version} + + + ${project.groupId} + jboss-server-migration-wildfly26.0-to-wildfly32.0 + ${project.version} + + + ${project.groupId} + jboss-server-migration-wildfly27.0-to-wildfly32.0 + ${project.version} + + + ${project.groupId} + jboss-server-migration-wildfly28.0-to-wildfly32.0 + ${project.version} + + + ${project.groupId} + jboss-server-migration-wildfly29.0-to-wildfly32.0 + ${project.version} + + + ${project.groupId} + jboss-server-migration-wildfly30.0-to-wildfly32.0 + ${project.version} + + + ${project.groupId} + jboss-server-migration-wildfly31.0-to-wildfly32.0 + ${project.version} + + + ${project.groupId} + jboss-server-migration-wildfly32.0-to-wildfly32.0 + ${project.version} +