<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.suncode</groupId>
        <artifactId>plusworkflow-plugin-parent</artifactId>
        <version>4.0-SNAPSHOT</version>
    </parent>

    <properties>
        <plusworkflow.min.version>4.0.0</plusworkflow.min.version>
        <autoupdate.min.version>4.0.0</autoupdate.min.version>
    </properties>

    <groupId>com.suncode.plugin</groupId>
    <artifactId>suncode-store</artifactId>
    <version>4.0-SNAPSHOT</version>
    <packaging>bundle</packaging>

    <dependencies>
        <dependency>
            <groupId>com.suncode</groupId>
            <artifactId>plusworkflow-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.suncode</groupId>
            <artifactId>plusworkflow-core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.suncode.plugin</groupId>
            <artifactId>plugin-framework-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.suncode.plugin</groupId>
            <artifactId>plugin-framework-web</artifactId>
            <scope>provided</scope>
        </dependency>


        <dependency>
            <groupId>com.suncode</groupId>
            <artifactId>auto-update-server-client</artifactId>
            <version>1.3.13</version>
            <scope>provided</scope>
        </dependency>


        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.16.10</version>
            <scope>provided</scope>
            <optional>true</optional>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <configuration>
                    <instructions>
                        <Import-Package>!sun.*,!android.*,*</Import-Package>
                        <Embed-Dependency>!log4j,!slf4j*,*;scope=compile|runtime</Embed-Dependency>
                        <Embed-Transitive>true</Embed-Transitive>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.github.eirslett</groupId>
                <artifactId>frontend-maven-plugin</artifactId>
                <version>1.6</version>
                <executions>
                    <execution>
                        <id>install node and npm</id>
                        <goals>
                            <goal>install-node-and-npm</goal>
                        </goals>
                        <configuration>
                            <nodeVersion>v8.11.2</nodeVersion>
                            <npmVersion>6.2.0</npmVersion>
                        </configuration>
                    </execution>
                    <execution>
                        <id>npm install</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <configuration>
                            <arguments>install</arguments>
                        </configuration>
                    </execution>
                    <execution>
                        <id>npm run build</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <configuration>
                            <arguments>run build</arguments>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

        </plugins>
    </build>
</project>
