diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | ivysettings.xml | 2 | ||||
-rw-r--r-- | liferay/build.xml | 76 | ||||
-rw-r--r-- | liferay/ivy.xml | 30 | ||||
-rw-r--r-- | liferay/liferay-assembly-descriptor.xml | 18 | ||||
-rw-r--r-- | liferay/pom.xml | 132 | ||||
-rw-r--r-- | pom.xml | 1 |
7 files changed, 153 insertions, 107 deletions
diff --git a/.gitignore b/.gitignore index 0077534c90..e93f78b267 100644 --- a/.gitignore +++ b/.gitignore @@ -91,6 +91,7 @@ client/target/ client-compiler/target/ buildhelpers/target/ client-compiled/target/ +liferay/target/ themes/target/ widgets/target/ diff --git a/ivysettings.xml b/ivysettings.xml index 2e47a1f14f..8440202439 100644 --- a/ivysettings.xml +++ b/ivysettings.xml @@ -58,7 +58,7 @@ <module organisation="com.vaadin" name="vaadin-bom" resolver="local-maven" /> <module organisation="com.vaadin" name="vaadin-liferay" - resolver="build-temp" /> + resolver="local-maven" /> </modules> diff --git a/liferay/build.xml b/liferay/build.xml deleted file mode 100644 index fc1d748e55..0000000000 --- a/liferay/build.xml +++ /dev/null @@ -1,76 +0,0 @@ -<?xml version="1.0"?> - -<project name="liferay" basedir="." default="publish-local" xmlns:ivy="antlib:org.apache.ivy.ant"> - <description> - Builds the Liferay ZIP archive - </description> - - <include file="../common.xml" as="common" /> - <include file="../build.xml" as="vaadin" /> - - <property name="module.name" value="vaadin-liferay" /> - <property name="result.dir" value="result" /> - <property name="lib.dir" value="${result.dir}/lib" /> - <property name="work.dir" value="${result.dir}/work" /> - <property name="liferay.zip" location="${result.dir}/lib/${module.name}-${vaadin.version}.zip" /> - - <target name="publish-local" depends="build-zip" if="build.release"> - <antcall target="common.publish-local"> - <param name="conf" value="deps" /> - </antcall> - </target> - - <target name="fetch-jars"> - <echo>Retriving prebuilt jars</echo> - <!-- Retrieve pre-build jars --> - <ivy:resolve /> - <mkdir dir="${lib.dir}" /> - <ivy:retrieve pattern="${lib.dir}/[artifact].[type]" conf="deps" /> - </target> - - <target name="unpack" depends="fetch-jars"> - <echo>Unpacking jars into working directory</echo> - <mkdir dir="${work.dir}" /> - <unjar src="${lib.dir}/vaadin-client-compiled.jar" dest="${work.dir}"> - <patternset> - <include name="VAADIN/widgetsets/**/*" /> - </patternset> - </unjar> - <unjar src="${lib.dir}/vaadin-themes.jar" dest="${work.dir}"> - <patternset> - <include name="VAADIN/themes/base/**/*" /> - <include name="VAADIN/themes/chameleon/**/*" /> - <include name="VAADIN/themes/liferay/**/*" /> - <include name="VAADIN/themes/runo/**/*" /> - <include name="VAADIN/themes/reindeer/**/*" /> - </patternset> - </unjar> - <unjar src="${lib.dir}/vaadin-push.jar" dest="${work.dir}"> - <patternset> - <include name="VAADIN/vaadinPush.js" /> - <include name="VAADIN/vaadinPush.debug.js" /> - </patternset> - </unjar> - <unjar src="${lib.dir}/vaadin-server.jar" dest="${work.dir}"> - <patternset> - <include name="VAADIN/vaadinBootstrap.js" /> - </patternset> - </unjar> - </target> - - <target name="build-zip" depends="unpack"> - <echo>Building Liferay zip</echo> - <zip zipfile="${liferay.zip}"> - <zipfileset dir="${work.dir}" /> - </zip> - </target> - - <target name="clean"> - <antcall target="common.clean" /> - </target> - - <target name="checkstyle" /> - - <target name="test" depends="checkstyle" /> - -</project> diff --git a/liferay/ivy.xml b/liferay/ivy.xml deleted file mode 100644 index af0ef25473..0000000000 --- a/liferay/ivy.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ivy-module version="2.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd" - xmlns:m="http://ant.apache.org/ivy/maven"> - - <info organisation="com.vaadin" module="vaadin-liferay" revision="${vaadin.version}" /> - - <configurations> - <conf name="build" /> - <conf name="build-provided" /> - <conf name="deps" visibility="private" /> - </configurations> - - <publications> - <artifact type="zip" ext="zip" /> - </publications> - - <dependencies> - <dependency org="com.vaadin" name="vaadin-client-compiled" - rev="${vaadin.version}" conf="deps -> default" transitive="false"/> - <dependency org="com.vaadin" name="vaadin-themes" - rev="${vaadin.version}" conf="deps -> default" transitive="false"/> - <dependency org="com.vaadin" name="vaadin-push" - rev="${vaadin.version}" conf="deps -> default" transitive="false" /> - <dependency org="com.vaadin" name="vaadin-server" - rev="${vaadin.version}" conf="deps -> default" transitive="false" /> - </dependencies> - -</ivy-module> diff --git a/liferay/liferay-assembly-descriptor.xml b/liferay/liferay-assembly-descriptor.xml new file mode 100644 index 0000000000..18708516fc --- /dev/null +++ b/liferay/liferay-assembly-descriptor.xml @@ -0,0 +1,18 @@ +<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"> + <id>bin</id> + <formats> + <format>zip</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <fileSets> + <fileSet> + <outputDirectory/> + <directory>${project.build.directory}/dependency</directory> + <includes> + <include>**</include> + </includes> + </fileSet> + </fileSets> +</assembly>
\ No newline at end of file diff --git a/liferay/pom.xml b/liferay/pom.xml new file mode 100644 index 0000000000..d6101eeb58 --- /dev/null +++ b/liferay/pom.xml @@ -0,0 +1,132 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>com.vaadin</groupId> + <artifactId>vaadin-root</artifactId> + <version>7.7.0-SNAPSHOT</version> + </parent> + <artifactId>vaadin-liferay</artifactId> + <name>vaadin-liferay</name> + <packaging>pom</packaging> + + <organization> + <name>Vaadin Ltd</name> + </organization> + <url>https://vaadin.com/</url> + <description>Vaadin Liferay package</description> + + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>vaadin-client-compiled</artifactId> + <version>${project.version}</version> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>vaadin-push</artifactId> + <version>${project.version}</version> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>vaadin-themes</artifactId> + <version>${project.version}</version> + <scope>provided</scope> + </dependency> + + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>vaadin-server</artifactId> + <version>${project.version}</version> + <scope>provided</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <version>2.10</version> + <executions> + <execution> + <id>unpack</id> + <phase>prepare-package</phase> + <goals> + <goal>unpack</goal> + </goals> + <configuration> + <artifactItems> + <artifactItem> + <groupId>com.vaadin</groupId> + <artifactId>vaadin-push</artifactId> + <includes>VAADIN/vaadinPush.js, VAADIN/vaadinPush.debug.js</includes> + </artifactItem> + + <artifactItem> + <groupId>com.vaadin</groupId> + <artifactId>vaadin-client-compiled</artifactId> + <includes>VAADIN/widgetsets/**/*</includes> + </artifactItem> + + <artifactItem> + <groupId>com.vaadin</groupId> + <artifactId>vaadin-themes</artifactId> + <includes> + VAADIN/themes/base/**, + VAADIN/themes/chameleon/**, + VAADIN/themes/liferay/**, + VAADIN/themes/runo/**, + VAADIN/themes/reindeer/** + </includes> + </artifactItem> + <artifactItem> + <groupId>com.vaadin</groupId> + <artifactId>vaadin-server</artifactId> + <includes>VAADIN/vaadinBootstrap.js</includes> + </artifactItem> + </artifactItems> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <version>2.6</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + <configuration> + <archive> + <addMavenDescriptor>false</addMavenDescriptor> + </archive> + <appendAssemblyId>false</appendAssemblyId> + <descriptors> + <descriptor>liferay-assembly-descriptor.xml</descriptor> + </descriptors> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>2.7</version> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + </plugins> + </build> + +</project> @@ -70,6 +70,7 @@ <module>client-compiled</module> <module>themes</module> <module>widgets</module> + <module>liferay</module> </modules> <build> |