Skip to content

Commit

Permalink
implement integration ui templates packaging process
Browse files Browse the repository at this point in the history
  • Loading branch information
DilshanSenarath committed Aug 8, 2024
1 parent 56b9da4 commit c8c9ec9
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/distribution/src/assembly/bin.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~ Copyright (c) 2005-2024, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -507,6 +507,15 @@
<include>x509certificateauthenticationendpoint/</include>
</includes>
</fileSet>

<!--Copy integration UI templates.-->
<fileSet>
<directory>../integration-ui-templates/target/templates</directory>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/resources/identity/extensions</outputDirectory>
<includes>
<include>**/*</include>
</includes>
</fileSet>
</fileSets>

<files>
Expand Down
112 changes: 112 additions & 0 deletions modules/integration-ui-templates/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com).
~
~ WSO2 LLC. licenses this file to you 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.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<parent>
<groupId>org.wso2.is</groupId>
<artifactId>identity-server-parent</artifactId>
<version>7.0.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>wso2is-identity-integration-ui-templates</artifactId>
<packaging>pom</packaging>
<name>Identity Server : identity-integration-ui-templates</name>

<dependencies>
<dependency>
<groupId>org.wso2.carbon.identity.integration.ui.templates</groupId>
<artifactId>org.wso2.carbon.identity.integration.ui.templates.applications.custom-application</artifactId>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.integration.ui.templates</groupId>
<artifactId>org.wso2.carbon.identity.integration.ui.templates.applications.custom-protocol-application</artifactId>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.integration.ui.templates</groupId>
<artifactId>org.wso2.carbon.identity.integration.ui.templates.applications.m2m-application</artifactId>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.integration.ui.templates</groupId>
<artifactId>org.wso2.carbon.identity.integration.ui.templates.applications.mobile-application</artifactId>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.integration.ui.templates</groupId>
<artifactId>org.wso2.carbon.identity.integration.ui.templates.applications.single-page-application</artifactId>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.integration.ui.templates</groupId>
<artifactId>org.wso2.carbon.identity.integration.ui.templates.applications.traditional-web-application</artifactId>
<type>zip</type>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<!-- Download integration templates from nexus and copy to the target/unpacked-resources folder-->
<execution>
<id>download-integration-ui-templates</id>
<phase>process-resources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<type>zip</type>
<outputDirectory>${project.build.directory}/unpacked-resources</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>prepare-templates-structure</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<mkdir dir="${project.build.directory}/templates"/>
<copy todir="${project.build.directory}/templates" overwrite="true">
<fileset dir="${project.build.directory}/unpacked-resources">
<include name="**/*"/>
</fileset>
<cutdirsmapper dirs="1"/>
</copy>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
42 changes: 42 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<module>modules/provisioning-connectors</module>
<module>modules/local-authenticators</module>
<module>modules/oauth2-grant-types</module>
<module>modules/integration-ui-templates</module>
<module>modules/distribution</module>
<module>modules/styles</module>
<module>modules/tests-utils</module>
Expand Down Expand Up @@ -2212,6 +2213,44 @@
<artifactId>org.wso2.carbon.extension.identity.helper</artifactId>
<version>${identity.extension.utils}</version>
</dependency>

<!-- Integration UI Templates -->
<dependency>
<groupId>org.wso2.carbon.identity.integration.ui.templates</groupId>
<artifactId>org.wso2.carbon.identity.integration.ui.templates.applications.custom-application</artifactId>
<version>${identity.integration.ui.templates.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.integration.ui.templates</groupId>
<artifactId>org.wso2.carbon.identity.integration.ui.templates.applications.custom-protocol-application</artifactId>
<version>${identity.integration.ui.templates.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.integration.ui.templates</groupId>
<artifactId>org.wso2.carbon.identity.integration.ui.templates.applications.m2m-application</artifactId>
<version>${identity.integration.ui.templates.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.integration.ui.templates</groupId>
<artifactId>org.wso2.carbon.identity.integration.ui.templates.applications.mobile-application</artifactId>
<version>${identity.integration.ui.templates.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.integration.ui.templates</groupId>
<artifactId>org.wso2.carbon.identity.integration.ui.templates.applications.single-page-application</artifactId>
<version>${identity.integration.ui.templates.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.integration.ui.templates</groupId>
<artifactId>org.wso2.carbon.identity.integration.ui.templates.applications.traditional-web-application</artifactId>
<version>${identity.integration.ui.templates.version}</version>
<type>zip</type>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -2538,6 +2577,9 @@

<project.scm.id>my-scm-server</project.scm.id>

<!-- Integration UI Templates Version -->
<identity.integration.ui.templates.version>1.0.6</identity.integration.ui.templates.version>

</properties>

<repositories>
Expand Down

0 comments on commit c8c9ec9

Please sign in to comment.