forked from apache/incubator-kie-kogito-runtimes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
173 lines (162 loc) · 5.99 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-bom-parent</artifactId>
<version>8.0.0-SNAPSHOT</version>
</parent>
<artifactId>kogito-runtimes</artifactId>
<packaging>pom</packaging>
<name>Kogito Runtimes</name>
<description>Kogito Runtimes</description>
<properties>
<!--
JaCoCo coverage data file location. Using a single file for appending in the project's root directory makes it
possible to measure cross-module test coverage -->
<!--suppress UnresolvedMavenProperty -->
<jacoco.exec.file>${maven.multiModuleProjectDirectory}/target/jacoco.exec</jacoco.exec.file>
</properties>
<repositories>
<!-- Bootstrap repository to locate the parent pom when the parent pom
has not been build locally. -->
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Repository Group</name>
<url>https://repository.jboss.org/nexus/content/groups/public/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
</snapshots>
</repository>
</repositories>
<scm>
<connection>scm:git:https://github.com/kiegroup/kogito-runtimes.git</connection>
<developerConnection>scm:git:[email protected]:kiegroup/kogito-runtimes.git</developerConnection>
<url>https://github.com/kiegroup/kogito-runtimes</url>
</scm>
<modules>
<module>api</module>
<module>drools</module>
<module>jbpm</module>
<module>optaplanner</module>
<module>kogito-codegen</module>
<module>addons</module>
<module>kogito-maven-plugin</module>
<module>archetypes</module>
<module>data-index</module>
</modules>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-deps-bom</artifactId>
<version>${version.org.kie.kogito}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-bom</artifactId>
<version>${version.org.kie.kogito}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<id>run-code-coverage</id>
<properties>
<jacoco.excludes>*Lexer:org.kie.kogito.codegen.data.*</jacoco.excludes>
<jacoco.agent.line>-javaagent:${settings.localRepository}/org/jacoco/org.jacoco.agent/${version.org.jacoco.agent}/org.jacoco.agent-${version.org.jacoco.agent}-runtime.jar=destfile=${jacoco.exec.file},append=true,excludes=${jacoco.excludes}</jacoco.agent.line>
<surefire.argLine>
-Dfile.encoding=${project.build.sourceEncoding}
${jacoco.agent.line}
</surefire.argLine>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<configuration>
<properties>
<cargo.start.jvmargs>${jacoco.agent.line}</cargo.start.jvmargs>
</properties>
</configuration>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>${surefire.argLine}</argLine>
</configuration>
<dependencies>
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>org.jacoco.agent</artifactId>
<version>${version.org.jacoco.agent}</version>
<classifier>runtime</classifier>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>sonarcloud-analysis</id>
<properties>
<sonar.jacoco.reportPaths>${jacoco.exec.file}</sonar.jacoco.reportPaths>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.organization>kiegroup</sonar.organization>
<!--suppress UnresolvedMavenProperty -->
<sonar.login>${env.SONARCLOUD_TOKEN}</sonar.login>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>sonar</goal>
</goals>
<phase>generate-resources</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<activation>
<property>
<name>env.CHANGE_ID</name>
</property>
</activation>
<id>sonarcloud-analysis-pull-request</id>
<properties>
<sonar.pullrequest.provider>GitHub</sonar.pullrequest.provider>
<!--suppress UnresolvedMavenProperty -->
<sonar.pullrequest.branch>${env.CHANGE_BRANCH}</sonar.pullrequest.branch>
<!--suppress UnresolvedMavenProperty -->
<sonar.pullrequest.key>${env.CHANGE_ID}</sonar.pullrequest.key>
<!--suppress UnresolvedMavenProperty -->
<sonar.pullrequest.base>${env.CHANGE_TARGET}</sonar.pullrequest.base>
<!--suppress UnresolvedMavenProperty -->
<sonar.pullrequest.github.repository>${env.CHANGE_URL}</sonar.pullrequest.github.repository>
</properties>
</profile>
</profiles>
</project>