|
1 | | -<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"> |
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
2 | 3 | <modelVersion>4.0.0</modelVersion> |
3 | 4 |
|
4 | 5 | <parent> |
|
12 | 13 | <packaging>hpi</packaging> |
13 | 14 |
|
14 | 15 | <properties> |
15 | | - <jenkins.version>1.625.3</jenkins.version> |
16 | 16 | <java.level>8</java.level> |
17 | | - <jenkins-test-harness.version>2.13</jenkins-test-harness.version> |
18 | 17 | <java.level.test>8</java.level.test> |
| 18 | + |
| 19 | + <!-- Jenkins --> |
| 20 | + <jenkins.version>1.625.3</jenkins.version> |
| 21 | + <jenkins-test-harness.version>2.36</jenkins-test-harness.version> |
| 22 | + |
| 23 | + <!-- Security --> |
| 24 | + <owasp.version>3.1.2</owasp.version> |
| 25 | + <findbugs.failOnError>false</findbugs.failOnError> |
19 | 26 | </properties> |
20 | 27 |
|
21 | 28 | <name>Jenkins Gogs plugin</name> |
|
76 | 83 | <groupId>com.google.guava</groupId> |
77 | 84 | <artifactId>guava</artifactId> |
78 | 85 | <version>17.0</version> |
79 | | - <!--<scope>test</scope>--> |
80 | 86 | </dependency> |
81 | | - <!--<dependency>--> |
82 | | - <!--<groupId>org.apache.httpcomponents</groupId>--> |
83 | | - <!--<artifactId>httpclient</artifactId>--> |
84 | | - <!--<version>4.5.3</version>--> |
85 | | - <!--<scope>test</scope>--> |
86 | | - <!--</dependency>--> |
87 | 87 | <dependency> |
88 | 88 | <groupId>org.apache.httpcomponents</groupId> |
89 | 89 | <artifactId>fluent-hc</artifactId> |
|
110 | 110 | </dependency> |
111 | 111 | </dependencies> |
112 | 112 |
|
| 113 | + <build> |
| 114 | + <plugins> |
| 115 | + <plugin> |
| 116 | + <groupId>org.apache.maven.plugins</groupId> |
| 117 | + <artifactId>maven-surefire-plugin</artifactId> |
| 118 | + <version>2.21.0</version> |
| 119 | + <configuration> |
| 120 | + <argLine>${jaCoCoArgLine}</argLine> |
| 121 | + <excludes> |
| 122 | + <exclude>**/IT*.java</exclude> |
| 123 | + </excludes> |
| 124 | + </configuration> |
| 125 | + <executions> |
| 126 | + <execution> |
| 127 | + <id>default-test</id> |
| 128 | + <phase>test</phase> |
| 129 | + <goals> |
| 130 | + <goal>test</goal> |
| 131 | + </goals> |
| 132 | + </execution> |
| 133 | + </executions> |
| 134 | + </plugin> |
| 135 | + <plugin> |
| 136 | + <groupId>org.jacoco</groupId> |
| 137 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 138 | + <version>0.8.1</version> |
| 139 | + <executions> |
| 140 | + <execution> |
| 141 | + <id>default-prepare-agent</id> |
| 142 | + <goals> |
| 143 | + <goal>prepare-agent</goal> |
| 144 | + </goals> |
| 145 | + <configuration> |
| 146 | + <propertyName>jaCoCoArgLine</propertyName> |
| 147 | + </configuration> |
| 148 | + </execution> |
| 149 | + <execution> |
| 150 | + <id>default-report</id> |
| 151 | + <goals> |
| 152 | + <goal>report</goal> |
| 153 | + </goals> |
| 154 | + </execution> |
| 155 | + <execution> |
| 156 | + <id>default-check</id> |
| 157 | + <goals> |
| 158 | + <goal>check</goal> |
| 159 | + </goals> |
| 160 | + </execution> |
| 161 | + </executions> |
| 162 | + </plugin> |
| 163 | + <plugin> |
| 164 | + <groupId>org.eluder.coveralls</groupId> |
| 165 | + <artifactId>coveralls-maven-plugin</artifactId> |
| 166 | + <version>4.3.0</version> |
| 167 | + </plugin> |
| 168 | + <plugin> |
| 169 | + <groupId>org.owasp</groupId> |
| 170 | + <artifactId>dependency-check-maven</artifactId> |
| 171 | + <version>${owasp.version}</version> |
| 172 | + <executions> |
| 173 | + <execution> |
| 174 | + <id>default-check</id> |
| 175 | + <goals> |
| 176 | + <goal>check</goal> |
| 177 | + </goals> |
| 178 | + </execution> |
| 179 | + </executions> |
| 180 | + </plugin> |
| 181 | + </plugins> |
| 182 | + </build> |
| 183 | + |
113 | 184 | <profiles> |
114 | 185 | <profile> |
115 | 186 | <id>withIntegrationTest</id> |
|
0 commit comments