diff --git a/adapters/oidc/wildfly/wildfly-subsystem/src/main/java/org/keycloak/subsystem/adapter/extension/KeycloakDependencyProcessor.java b/adapters/oidc/wildfly/wildfly-subsystem/src/main/java/org/keycloak/subsystem/adapter/extension/KeycloakDependencyProcessor.java
index 61ec21d486..b4c6a6578a 100755
--- a/adapters/oidc/wildfly/wildfly-subsystem/src/main/java/org/keycloak/subsystem/adapter/extension/KeycloakDependencyProcessor.java
+++ b/adapters/oidc/wildfly/wildfly-subsystem/src/main/java/org/keycloak/subsystem/adapter/extension/KeycloakDependencyProcessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
+ * Copyright 2020 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -37,7 +37,7 @@ import org.jboss.modules.ModuleLoader;
*/
public abstract class KeycloakDependencyProcessor implements DeploymentUnitProcessor {
- private static final ModuleIdentifier KEYCLOAK_JBOSS_CORE_ADAPTER = ModuleIdentifier.create("org.keycloak.keycloak-jboss-adapter-core");
+ private static final ModuleIdentifier KEYCLOAK_JBOSS_CORE_ADAPTER = KeycloakSubsystemDefinition.KEYCLOAK_JBOSS_CORE_ADAPTER;
private static final ModuleIdentifier KEYCLOAK_CORE_ADAPTER = ModuleIdentifier.create("org.keycloak.keycloak-adapter-core");
private static final ModuleIdentifier KEYCLOAK_CORE = ModuleIdentifier.create("org.keycloak.keycloak-core");
private static final ModuleIdentifier KEYCLOAK_COMMON = ModuleIdentifier.create("org.keycloak.keycloak-common");
diff --git a/adapters/oidc/wildfly/wildfly-subsystem/src/main/java/org/keycloak/subsystem/adapter/extension/KeycloakSubsystemDefinition.java b/adapters/oidc/wildfly/wildfly-subsystem/src/main/java/org/keycloak/subsystem/adapter/extension/KeycloakSubsystemDefinition.java
index 948dcdff64..04b6c6417f 100644
--- a/adapters/oidc/wildfly/wildfly-subsystem/src/main/java/org/keycloak/subsystem/adapter/extension/KeycloakSubsystemDefinition.java
+++ b/adapters/oidc/wildfly/wildfly-subsystem/src/main/java/org/keycloak/subsystem/adapter/extension/KeycloakSubsystemDefinition.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
+ * Copyright 2020 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -21,6 +21,8 @@ import org.jboss.as.controller.ReloadRequiredRemoveStepHandler;
import org.jboss.as.controller.SimpleResourceDefinition;
import org.jboss.as.controller.operations.common.GenericSubsystemDescribeHandler;
import org.jboss.as.controller.registry.ManagementResourceRegistration;
+import org.jboss.as.controller.registry.RuntimePackageDependency;
+import org.jboss.modules.ModuleIdentifier;
/**
* Definition of subsystem=keycloak.
@@ -28,6 +30,9 @@ import org.jboss.as.controller.registry.ManagementResourceRegistration;
* @author Stan Silvert ssilvert@redhat.com (C) 2013 Red Hat Inc.
*/
public class KeycloakSubsystemDefinition extends SimpleResourceDefinition {
+
+ static final ModuleIdentifier KEYCLOAK_JBOSS_CORE_ADAPTER = ModuleIdentifier.create("org.keycloak.keycloak-jboss-adapter-core");
+
protected KeycloakSubsystemDefinition() {
super(KeycloakExtension.SUBSYSTEM_PATH,
KeycloakExtension.getResourceDescriptionResolver("subsystem"),
@@ -42,4 +47,10 @@ public class KeycloakSubsystemDefinition extends SimpleResourceDefinition {
resourceRegistration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE);
}
+ @Override
+ public void registerAdditionalRuntimePackages(ManagementResourceRegistration resourceRegistration) {
+ // This module is required by deployment but not referenced by JBoss modules
+ resourceRegistration.registerAdditionalRuntimePackages(
+ RuntimePackageDependency.required(KEYCLOAK_JBOSS_CORE_ADAPTER.getName()));
+ }
}
diff --git a/distribution/galleon-feature-packs/adapter-galleon-pack/pom.xml b/distribution/galleon-feature-packs/adapter-galleon-pack/pom.xml
new file mode 100644
index 0000000000..2d6f8fe0fc
--- /dev/null
+++ b/distribution/galleon-feature-packs/adapter-galleon-pack/pom.xml
@@ -0,0 +1,309 @@
+
+
+
+ org.keycloak
+ galleon-feature-packs-parent
+ 12.0.0-SNAPSHOT
+
+
+ 4.0.0
+
+ ${galleon-adapter-group-id}
+ keycloak-adapter-galleon-pack
+
+ Keycloak Galleon Feature Pack: Adapter
+ pom
+
+
+ ${basedir}/../../feature-packs/adapter-feature-pack/src/main/resources
+ 4.2.6.Final
+ ${feature-pack.resources.directory}/licenses/${product.slot}/licenses.xml
+ ${basedir}/target/resources/packages/licenses/content/docs/licenses-${product.slot}
+
+
+
+ org.keycloak
+ keycloak-core
+
+
+ *
+ *
+
+
+ provided
+
+
+ org.keycloak
+ keycloak-common
+
+
+ *
+ *
+
+
+ provided
+
+
+ org.keycloak
+ keycloak-adapter-core
+
+
+ *
+ *
+
+
+ provided
+
+
+ org.keycloak
+ keycloak-jboss-adapter-core
+
+
+ *
+ *
+
+
+ provided
+
+
+ org.keycloak
+ keycloak-wildfly-subsystem
+
+
+ *
+ *
+
+
+ provided
+
+
+ org.keycloak
+ keycloak-wildfly-adapter
+
+
+ *
+ *
+
+
+ provided
+
+
+ org.keycloak
+ keycloak-wildfly-elytron-oidc-adapter
+
+
+ *
+ *
+
+
+ provided
+
+
+ org.keycloak
+ keycloak-adapter-spi
+
+
+ *
+ *
+
+
+ provided
+
+
+ org.keycloak
+ keycloak-undertow-adapter-spi
+
+
+ *
+ *
+
+
+ provided
+
+
+ org.keycloak
+ keycloak-undertow-adapter
+
+
+ *
+ *
+
+
+ provided
+
+
+
+
+ org.keycloak
+ keycloak-authz-client
+
+
+ *
+ *
+
+
+ provided
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+
+
+ copy-resources
+ process-resources
+
+ copy-resources
+
+
+ ${basedir}/target/resources
+
+
+ ${basedir}/src/main/resources
+
+
+
+
+
+ copy-feature-pack-resources
+ process-resources
+
+ copy-resources
+
+
+ ${basedir}/target/resources
+
+
+ ${feature-pack.resources.directory}
+
+ content/**
+ modules/**
+
+
+
+
+
+
+
+
+ org.wildfly.galleon-plugins
+ wildfly-galleon-maven-plugin
+ ${version.org.wildfly.galleon-plugins}
+
+
+
+ org.wildfly.core
+ wildfly-embedded
+ ${version.org.wildfly.core}
+
+
+
+ org.wildfly.common
+ wildfly-common
+ ${version.org.wildfly.common}
+
+
+
+
+ keycloak-adapter-galleon-pack-build
+
+ build-feature-pack
+
+ compile
+
+ false
+
+
+
+
+
+ org.keycloak
+ keycloak-distribution-licenses-maven-plugin
+
+
+
+
+
+
+ community
+
+
+ !product
+
+
+
+ org.keycloak
+ 20.0.0.Final
+ 12.0.0.Final
+ 1.5.1.Final
+
+
+
+ org.wildfly
+ wildfly-ee-galleon-pack
+ ${version.org.wildfly}
+ zip
+ provided
+
+
+
+
+ product
+
+
+ product
+
+
+
+ org.jboss.sso
+ 7.3.2.GA-redhat-SNAPSHOT
+ 10.1.11.Final-redhat-SNAPSHOT
+ 1.5.1.Final-redhat-00001
+
+
+
+ org.jboss.eap
+ wildfly-ee-galleon-pack
+ ${version.org.jboss.eap}
+ zip
+ provided
+
+
+
+
+
+ org.wildfly.galleon-plugins
+ wildfly-galleon-maven-plugin
+
+ wildfly-feature-pack-build-eap.xml
+
+
+
+
+
+
+
diff --git a/distribution/galleon-feature-packs/adapter-galleon-pack/src/main/resources/layers/standalone/keycloak-elytron-oidc/layer-spec.xml b/distribution/galleon-feature-packs/adapter-galleon-pack/src/main/resources/layers/standalone/keycloak-elytron-oidc/layer-spec.xml
new file mode 100644
index 0000000000..7199c95729
--- /dev/null
+++ b/distribution/galleon-feature-packs/adapter-galleon-pack/src/main/resources/layers/standalone/keycloak-elytron-oidc/layer-spec.xml
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/distribution/galleon-feature-packs/adapter-galleon-pack/src/main/resources/packages/licenses/package.xml b/distribution/galleon-feature-packs/adapter-galleon-pack/src/main/resources/packages/licenses/package.xml
new file mode 100644
index 0000000000..aa74168dfe
--- /dev/null
+++ b/distribution/galleon-feature-packs/adapter-galleon-pack/src/main/resources/packages/licenses/package.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/distribution/galleon-feature-packs/adapter-galleon-pack/wildfly-feature-pack-build-eap.xml b/distribution/galleon-feature-packs/adapter-galleon-pack/wildfly-feature-pack-build-eap.xml
new file mode 100644
index 0000000000..25b7c11285
--- /dev/null
+++ b/distribution/galleon-feature-packs/adapter-galleon-pack/wildfly-feature-pack-build-eap.xml
@@ -0,0 +1,54 @@
+
+
+
+
+
+ org.wildfly.core:wildfly-core-galleon-pack
+
+
+
+
+
+
+ org.jboss.eap:wildfly-servlet-galleon-pack
+
+
+
+
+
+
+
+
+ org.jboss.eap:wildfly-ee-galleon-pack
+
+
+
+
+
+
+
+
+
+
+
+
+
+ org.keycloak.keycloak-adapter-subsystem
+
+
+
+
\ No newline at end of file
diff --git a/distribution/galleon-feature-packs/adapter-galleon-pack/wildfly-feature-pack-build.xml b/distribution/galleon-feature-packs/adapter-galleon-pack/wildfly-feature-pack-build.xml
new file mode 100644
index 0000000000..708af2730a
--- /dev/null
+++ b/distribution/galleon-feature-packs/adapter-galleon-pack/wildfly-feature-pack-build.xml
@@ -0,0 +1,54 @@
+
+
+
+
+
+ org.wildfly.core:wildfly-core-galleon-pack
+
+
+
+
+
+
+ org.wildfly:wildfly-servlet-galleon-pack
+
+
+
+
+
+
+
+
+ org.wildfly:wildfly-ee-galleon-pack
+
+
+
+
+
+
+
+
+
+
+
+
+
+ org.keycloak.keycloak-adapter-subsystem
+
+
+
+
\ No newline at end of file
diff --git a/distribution/galleon-feature-packs/pom.xml b/distribution/galleon-feature-packs/pom.xml
new file mode 100644
index 0000000000..b5b0feebee
--- /dev/null
+++ b/distribution/galleon-feature-packs/pom.xml
@@ -0,0 +1,36 @@
+
+
+
+
+ keycloak-distribution-parent
+ org.keycloak
+ 12.0.0-SNAPSHOT
+
+
+ Feature Pack Builds
+
+ 4.0.0
+
+ galleon-feature-packs-parent
+ pom
+
+
+ adapter-galleon-pack
+
+
diff --git a/distribution/pom.xml b/distribution/pom.xml
index 88a37d6719..445ca577ed 100755
--- a/distribution/pom.xml
+++ b/distribution/pom.xml
@@ -39,6 +39,7 @@
adapters
saml-adapters
feature-packs
+ galleon-feature-packs
licenses-common
maven-plugins
server-dist