| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF 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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.royale.examples</groupId> |
| <artifactId>examples-crux</artifactId> |
| <version>0.9.13-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>SampleLib</artifactId> |
| <version>0.9.13-SNAPSHOT</version> |
| <packaging>swc</packaging> |
| |
| <properties> |
| <!-- <compiler.debug>true</compiler.debug> |
| <royale.framework.version>0.9.13-SNAPSHOT</royale.framework.version> --> |
| <compiler.output-dir-debug>${basedir}/target/javascript/bin/js-debug</compiler.output-dir-debug> |
| <compiler.output-dir-release>${basedir}/target/javascript/bin/js-release</compiler.output-dir-release> |
| </properties> |
| |
| <build> |
| <sourceDirectory>src/main/royale</sourceDirectory> |
| |
| <pluginManagement> |
| <plugins> |
| <!-- Copy the resources to the compiler output directory --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-resources-debug</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${compiler.output-dir-debug}</outputDirectory> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy-resources-release</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <!-- Copy the assets to the assets output directory --> |
| <outputDirectory>${compiler.output-dir-release}/assets</outputDirectory> |
| <resources> |
| <resource> |
| <directory>src/main/resources/js</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.apache.royale.compiler</groupId> |
| <artifactId>royale-maven-plugin</artifactId> |
| <version>0.9.13-SNAPSHOT</version> |
| <extensions>true</extensions> |
| <configuration> |
| <targets>JSRoyale</targets> |
| <debug>false</debug> |
| <namespaces> |
| <namespace> |
| <uri>library://ns.apache.org/royale/samplelib</uri> |
| <manifest>${project.basedir}/src/main/resources/samplelib-manifest.xml</manifest> |
| </namespace> |
| <!-- <namespace> |
| <type>as</type> |
| <uri>library://ns.apache.org/royale/samplelib</uri> |
| <manifest>${basedir}/src/main/resources/samplelib-as-manifest.xml</manifest> |
| </namespace> --> |
| </namespaces> |
| <includeClasses> |
| <includeClass>SampleLibClasses</includeClass> |
| </includeClasses> |
| <includeFiles> |
| <include-file> |
| <name>default.css</name> |
| <path>../src/main/resources/default.css</path> |
| </include-file> |
| <!-- Uncomment To Include Assets like Images --> |
| <!-- <include-file> |
| <name>assets/*</name> |
| <path>../src/main/resources/assets/*</path> |
| </include-file> |
| <include-file> |
| <name>js/*</name> |
| <path>../src/main/resources/js/*</path> |
| </include-file> --> |
| </includeFiles> |
| <skipAS>true</skipAS> |
| <skipExtern>true</skipExtern> |
| <!-- |
| <includeLookupOnly>true</includeLookupOnly> |
| <allowSubclassOverrides>true</allowSubclassOverrides> |
| --> |
| <!-- <additionalCompilerOptions> |
| -source-map=true; |
| -source-map-source-root=/frameworks/projects/Jewel/src/main/royale/ |
| </additionalCompilerOptions> --> |
| </configuration> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.royale.compiler</groupId> |
| <artifactId>compiler-jx</artifactId> |
| <version>0.9.13-SNAPSHOT</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <groupId>io.github.cleydyr</groupId> |
| <artifactId>dart-sass-maven-plugin</artifactId> |
| <version>1.4.0</version> |
| <configuration> |
| <version>1.78.0</version> |
| <inputFolder>${basedir}/src/main/sass</inputFolder> |
| <outputFolder>${basedir}/src/main/resources</outputFolder> |
| </configuration> |
| <executions> |
| <execution> |
| <id>generate-css-using-sass</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>compile-sass</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>com.google.code.maven-replacer-plugin</groupId> |
| <artifactId>replacer</artifactId> |
| <version>1.5.3</version> |
| <executions> |
| <execution> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>replace</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <includes> |
| <include>${basedir}/src/main/resources/**/*.css</include> |
| </includes> |
| <regex>false</regex> |
| <replacements> |
| <replacement> |
| <token>@@ZERO_WIDTH_SPACE</token> |
| <value>\200b</value> |
| </replacement> |
| <replacement> |
| <token>@@NON_BREAKING_SPACE</token> |
| <value>\0a</value> |
| </replacement> |
| </replacements> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <!-- For flash compilation, we need the airglobal or playerglobal --> |
| <dependency> |
| <groupId>com.adobe.air.framework</groupId> |
| <artifactId>airglobal</artifactId> |
| <version>32.0</version> |
| <type>swc</type> |
| <scope>provided</scope> |
| </dependency> |
| <!-- For JavaScript compilation, we need some other base classes --> |
| <dependency> |
| <groupId>org.apache.royale.typedefs</groupId> |
| <artifactId>royale-typedefs-gcl</artifactId> |
| <version>0.9.13-SNAPSHOT</version> |
| <type>swc</type> |
| <classifier>typedefs</classifier> |
| </dependency> |
| |
| <!-- Add dependencies you might be needing here --> |
| <dependency> |
| <groupId>org.apache.royale.framework</groupId> |
| <artifactId>Crux</artifactId> |
| <version>0.9.13-SNAPSHOT</version> |
| <type>swc</type> |
| <classifier>js</classifier> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.royale.framework</groupId> |
| <artifactId>Core</artifactId> |
| <version>0.9.13-SNAPSHOT</version> |
| <type>swc</type> |
| <classifier>js</classifier> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.royale.framework</groupId> |
| <artifactId>Basic</artifactId> |
| <version>0.9.13-SNAPSHOT</version> |
| <type>swc</type> |
| <classifier>js</classifier> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.royale.framework</groupId> |
| <artifactId>Jewel</artifactId> |
| <version>0.9.13-SNAPSHOT</version> |
| <type>swc</type> |
| <classifier>js</classifier> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.royale.framework</groupId> |
| <artifactId>Icons</artifactId> |
| <version>0.9.13-SNAPSHOT</version> |
| <type>swc</type> |
| <classifier>js</classifier> |
| </dependency> |
| |
| <!-- Needed for JavaScript compilation --> |
| <dependency> |
| <groupId>org.apache.royale.framework</groupId> |
| <artifactId>HTML</artifactId> |
| <version>0.9.13-SNAPSHOT</version> |
| <type>swc</type> |
| <classifier>js</classifier> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.royale.framework</groupId> |
| <artifactId>Language</artifactId> |
| <version>0.9.13-SNAPSHOT</version> |
| <type>swc</type> |
| <classifier>js</classifier> |
| </dependency> |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <id>apache-release</id> |
| <properties> |
| <compiler.debug>false</compiler.debug> |
| </properties> |
| </profile> |
| |
| <profile> |
| <id>option-with-swf</id> |
| <properties> |
| <!-- no point building the swf target --> |
| <royale.targets>JSRoyale</royale.targets> |
| </properties> |
| <dependencies> |
| <!-- Needed for Flash compilation --> |
| <!-- <dependency> |
| <groupId>com.adobe.flash.framework</groupId> |
| <artifactId>playerglobal</artifactId> |
| <version>32.0</version> |
| <type>swc</type> |
| <scope>provided</scope> |
| </dependency> --> |
| </dependencies> |
| </profile> |
| </profiles> |
| |
| </project> |