mirror of
https://github.com/objectionary/eo.git
synced 2024-08-17 08:30:36 +03:00
350 lines
12 KiB
XML
350 lines
12 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
The MIT License (MIT)
|
|
|
|
Copyright (c) 2016-2024 Objectionary.com
|
|
|
|
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 NON-INFRINGEMENT. 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/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.eolang</groupId>
|
|
<artifactId>eo-parent</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>eo-runtime</artifactId>
|
|
<packaging>jar</packaging>
|
|
<name>eo-runtime</name>
|
|
<description>EO runtime library</description>
|
|
<properties>
|
|
<!-- This is required for later correct replacement of argline -->
|
|
<argLine/>
|
|
</properties>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>jul-to-slf4j</artifactId>
|
|
<version>2.0.16</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>2.0.16</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
<version>1.5.5</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.yegor256</groupId>
|
|
<artifactId>jaxec</artifactId>
|
|
<!-- version from parent POM -->
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.yegor256</groupId>
|
|
<artifactId>jhome</artifactId>
|
|
<!-- version from parent POM -->
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.jcabi</groupId>
|
|
<artifactId>jcabi-log</artifactId>
|
|
<!-- version from parent POM -->
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.jcabi</groupId>
|
|
<artifactId>jcabi-xml</artifactId>
|
|
<!-- version from parent POM -->
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.cactoos</groupId>
|
|
<artifactId>cactoos</artifactId>
|
|
<!-- version from parent POM -->
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.llorllale</groupId>
|
|
<artifactId>cactoos-matchers</artifactId>
|
|
<version>0.25</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-params</artifactId>
|
|
<!-- version from parent POM -->
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|
<!-- version from parent POM -->
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit-pioneer</groupId>
|
|
<artifactId>junit-pioneer</artifactId>
|
|
<!-- version from parent POM -->
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.yegor256</groupId>
|
|
<artifactId>jping</artifactId>
|
|
<!-- version from parent POM -->
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sf.saxon</groupId>
|
|
<artifactId>Saxon-HE</artifactId>
|
|
<!-- version from parent POM -->
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.yaml</groupId>
|
|
<artifactId>snakeyaml</artifactId>
|
|
<!-- version from parent POM -->
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.yegor256</groupId>
|
|
<artifactId>farea</artifactId>
|
|
<version>0.0.17</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.eolang</groupId>
|
|
<artifactId>jucs</artifactId>
|
|
<!-- version from parent POM -->
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<runOrder>random</runOrder>
|
|
<argLine>
|
|
@{argLine} -Xss${stack-size} -Duser.language=ru -Duser.region=RU
|
|
</argLine>
|
|
<systemPropertyVariables>
|
|
<eo.version>${project.version}</eo.version>
|
|
<java.util.logging.config.file>
|
|
${project.basedir}/src/test/resources/jul.properties
|
|
</java.util.logging.config.file>
|
|
</systemPropertyVariables>
|
|
<!-- Default surefire plugin corrupts native stdout. It means the text that was
|
|
printed in native method will not be printed in 'mvn clean install'. This configuration
|
|
switches surefire communication channel from default to TCP/IP and solves the bug.
|
|
More detailed: https://stackoverflow.com/questions/55272870/surefire-maven-plugin-corrupted-stdout-by-directly-writing-to-native-stream-in
|
|
and https://maven.apache.org/surefire/maven-surefire-plugin/examples/process-communication.html-->
|
|
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
|
|
<properties>
|
|
<configurationParameters>
|
|
junit.jupiter.execution.parallel.enabled = true
|
|
junit.jupiter.execution.parallel.mode.default = concurrent
|
|
junit.jupiter.execution.parallel.mode.classes.default = concurrent
|
|
</configurationParameters>
|
|
</properties>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.eolang</groupId>
|
|
<artifactId>eo-maven-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
<configuration>
|
|
<foreign>${project.basedir}/target/eo-foreign.csv</foreign>
|
|
<foreignFormat>csv</foreignFormat>
|
|
<failOnWarning>false</failOnWarning>
|
|
<offline>true</offline>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>compile</id>
|
|
<goals>
|
|
<goal>register</goal>
|
|
<goal>deps</goal>
|
|
<goal>assemble</goal>
|
|
<goal>verify</goal>
|
|
<goal>transpile</goal>
|
|
<goal>copy</goal>
|
|
<goal>unplace</goal>
|
|
<goal>unspile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<removeBinaries>
|
|
<glob>EOorg/EOeolang/EOhamcrest/**</glob>
|
|
<glob>EOorg/EOeolang/EOmath/**</glob>
|
|
<glob>EOorg/EOeolang/EOfs/**</glob>
|
|
</removeBinaries>
|
|
<withRuntimeDependency>false</withRuntimeDependency>
|
|
<placeBinariesThatHaveSources>true</placeBinariesThatHaveSources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>test-compile</id>
|
|
<phase>generate-test-sources</phase>
|
|
<goals>
|
|
<goal>register</goal>
|
|
<goal>deps</goal>
|
|
<goal>assemble</goal>
|
|
<goal>verify</goal>
|
|
<goal>transpile</goal>
|
|
<goal>binarize</goal>
|
|
</goals>
|
|
<configuration>
|
|
<scope>test</scope>
|
|
<sourcesDir>${project.basedir}/src/test/eo</sourcesDir>
|
|
<targetDir>${project.basedir}/target/eo-test</targetDir>
|
|
<addSourcesRoot>false</addSourcesRoot>
|
|
<addTestSourcesRoot>true</addTestSourcesRoot>
|
|
<failOnWarning>false</failOnWarning>
|
|
<generatedDir>
|
|
${project.basedir}/target/generated-test-sources
|
|
</generatedDir>
|
|
<withRuntimeDependency>false</withRuntimeDependency>
|
|
<placeBinariesThatHaveSources>true</placeBinariesThatHaveSources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.gmaven</groupId>
|
|
<artifactId>groovy-maven-plugin</artifactId>
|
|
<version>2.1.1</version>
|
|
<executions>
|
|
<execution>
|
|
<id>project-validate</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>execute</goal>
|
|
</goals>
|
|
<configuration>
|
|
<source>${project.basedir}/src/test/groovy/verify.groovy</source>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.codehaus.groovy</groupId>
|
|
<artifactId>groovy-xml</artifactId>
|
|
<version>3.0.22</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<profiles>
|
|
<profile>
|
|
<id>jacoco</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.jacoco</groupId>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>jacoco-initialize</id>
|
|
<goals>
|
|
<goal>prepare-agent</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>jacoco-check</id>
|
|
<phase>test</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
<goal>report</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<rule>
|
|
<element>BUNDLE</element>
|
|
<limits>
|
|
<limit>
|
|
<counter>INSTRUCTION</counter>
|
|
<value>COVEREDRATIO</value>
|
|
<minimum>0.14</minimum>
|
|
</limit>
|
|
<limit>
|
|
<counter>LINE</counter>
|
|
<value>COVEREDRATIO</value>
|
|
<minimum>0.13</minimum>
|
|
</limit>
|
|
<limit>
|
|
<counter>BRANCH</counter>
|
|
<value>COVEREDRATIO</value>
|
|
<minimum>0.03</minimum>
|
|
</limit>
|
|
<limit>
|
|
<counter>COMPLEXITY</counter>
|
|
<value>COVEREDRATIO</value>
|
|
<minimum>0.08</minimum>
|
|
</limit>
|
|
<limit>
|
|
<counter>METHOD</counter>
|
|
<value>COVEREDRATIO</value>
|
|
<minimum>0.12</minimum>
|
|
</limit>
|
|
<limit>
|
|
<counter>CLASS</counter>
|
|
<value>MISSEDCOUNT</value>
|
|
<maximum>1514</maximum>
|
|
</limit>
|
|
</limits>
|
|
</rule>
|
|
</rules>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>qulice</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.qulice</groupId>
|
|
<artifactId>qulice-maven-plugin</artifactId>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>dependencies:org.eolang:eo-maven-plugin</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|