mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-01 21:29:47 +01:00
198 lines
6.3 KiB
XML
198 lines
6.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
|
|
MIT License
|
|
|
|
Copyright (c) 2020-present Cloudogu GmbH and Contributors
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
|
|
-->
|
|
<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">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>sonia.scm</groupId>
|
|
<artifactId>scm</artifactId>
|
|
<version>2.8.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<groupId>sonia.scm</groupId>
|
|
<artifactId>scm-ui</artifactId>
|
|
<packaging>war</packaging>
|
|
<version>2.8.0-SNAPSHOT</version>
|
|
<name>scm-ui</name>
|
|
|
|
<properties>
|
|
<build.script>build</build.script>
|
|
<skipTypecheck>false</skipTypecheck>
|
|
<skipFrontendTests>${skipTests}</skipFrontendTests>
|
|
<skipFrontendBuild>false</skipFrontendBuild>
|
|
<sonar.language>typescript</sonar.language>
|
|
<sonar.sources>ui-extensions/src,ui-components/src,ui-webapp/src</sonar.sources>
|
|
<sonar.test.exclusions>**/*.test.js,src/tests/**</sonar.test.exclusions>
|
|
<sonar.coverage.exclusions>**/*.test.js,src/tests/**</sonar.coverage.exclusions>
|
|
<sonar.typescript.jstest.reportsPath>target/jest-reports</sonar.typescript.jstest.reportsPath>
|
|
<sonar.typescript.lcov.reportPaths>target/jest-reports/coverage-ui-extensions/lcov.info,target/jest-reports/coverage-ui-components/lcov.info,target/jest-reports/coverage-ui-webapp/lcov.info</sonar.typescript.lcov.reportPaths>
|
|
</properties>
|
|
|
|
<build>
|
|
<finalName>scm-ui</finalName>
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<configuration>
|
|
<filesets>
|
|
<!-- delete node cache to avoid problems with hmr or fast-refresh code -->
|
|
<fileset>
|
|
<directory>../node_modules/.cache</directory>
|
|
<includes>
|
|
<include>**</include>
|
|
</includes>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>com.github.sdorra</groupId>
|
|
<artifactId>buildfrontend-maven-plugin</artifactId>
|
|
<configuration>
|
|
<workingDirectory>${basedir}/..</workingDirectory>
|
|
<node>
|
|
<version>${nodejs.version}</version>
|
|
</node>
|
|
<pkgManager>
|
|
<type>YARN</type>
|
|
<version>${yarn.version}</version>
|
|
</pkgManager>
|
|
<script>run</script>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>install</id>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>install</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>typecheck</id>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<skip>${skipTypecheck}</skip>
|
|
<script>typecheck</script>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>build</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<skip>${skipFrontendBuild}</skip>
|
|
<script>${build.script}</script>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>test</id>
|
|
<phase>test</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<script>test</script>
|
|
<skip>${skipFrontendTests}</skip>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>deploy</id>
|
|
<phase>deploy</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<script>deploy</script>
|
|
<args>
|
|
<arg>${project.version}</arg>
|
|
</args>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>set-version</id>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<script>set-version</script>
|
|
<args>
|
|
<arg>${project.version}</arg>
|
|
</args>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<configuration>
|
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
<webResources>
|
|
<resource>
|
|
<directory>target/assets</directory>
|
|
<targetPath>assets</targetPath>
|
|
</resource>
|
|
<resource>
|
|
<directory>ui-webapp/public</directory>
|
|
</resource>
|
|
</webResources>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>dev</id>
|
|
|
|
<activation>
|
|
<property>
|
|
<name>development</name>
|
|
</property>
|
|
</activation>
|
|
|
|
<properties>
|
|
<build.script>build:dev</build.script>
|
|
</properties>
|
|
</profile>
|
|
|
|
</profiles>
|
|
</project>
|