|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + <parent> |
| 6 | + <groupId>org.springframework.boot</groupId> |
| 7 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 8 | + <version>2.3.0.RELEASE</version> |
| 9 | + <relativePath/> <!-- lookup parent from repository --> |
| 10 | + </parent> |
| 11 | + <groupId>com.unityTest</groupId> |
| 12 | + <artifactId>course-management</artifactId> |
| 13 | + <version>0.2.0-SNAPSHOT</version> |
| 14 | + <name>course-management</name> |
| 15 | + <description>Manage courses, assignments, enrollments and user engagement.</description> |
| 16 | + |
| 17 | + <properties> |
| 18 | + <java.version>1.8</java.version> |
| 19 | + <keycloak.version>13.0.1</keycloak.version> |
| 20 | + <project.scm.id>github</project.scm.id> |
| 21 | + <git.repository>puffproject/course-management</git.repository> |
| 22 | + <spring.cloud-version>Hoxton.SR8</spring.cloud-version> |
| 23 | + </properties> |
| 24 | + |
| 25 | + <scm> |
| 26 | + <developerConnection>scm:git:https://github.com/${git.repository}.git</developerConnection> |
| 27 | + <tag>HEAD</tag> |
| 28 | + </scm> |
| 29 | + |
| 30 | + <distributionManagement> |
| 31 | + <repository> |
| 32 | + <id>github</id> |
| 33 | + <name>GitHub puff project Apache Maven Packages</name> |
| 34 | + <url>https://maven.pkg.github.com/${git.repository}</url> |
| 35 | + </repository> |
| 36 | + </distributionManagement> |
| 37 | + |
| 38 | + <dependencies> |
| 39 | + <dependency> |
| 40 | + <groupId>org.springframework.boot</groupId> |
| 41 | + <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 42 | + </dependency> |
| 43 | + |
| 44 | + <dependency> |
| 45 | + <groupId>org.springframework.boot</groupId> |
| 46 | + <artifactId>spring-boot-starter-web</artifactId> |
| 47 | + </dependency> |
| 48 | + |
| 49 | + <dependency> |
| 50 | + <groupId>org.springframework.boot</groupId> |
| 51 | + <artifactId>spring-boot-starter-actuator</artifactId> |
| 52 | + </dependency> |
| 53 | + |
| 54 | + <dependency> |
| 55 | + <groupId>org.springframework.cloud</groupId> |
| 56 | + <artifactId>spring-cloud-starter-config</artifactId> |
| 57 | + </dependency> |
| 58 | + |
| 59 | + <dependency> |
| 60 | + <groupId>com.h2database</groupId> |
| 61 | + <artifactId>h2</artifactId> |
| 62 | + <scope>runtime</scope> |
| 63 | + </dependency> |
| 64 | + |
| 65 | + <dependency> |
| 66 | + <groupId>mysql</groupId> |
| 67 | + <artifactId>mysql-connector-java</artifactId> |
| 68 | + <scope>runtime</scope> |
| 69 | + </dependency> |
| 70 | + |
| 71 | + <dependency> |
| 72 | + <groupId>org.projectlombok</groupId> |
| 73 | + <artifactId>lombok</artifactId> |
| 74 | + <optional>true</optional> |
| 75 | + </dependency> |
| 76 | + |
| 77 | + <dependency> |
| 78 | + <groupId>org.springframework.boot</groupId> |
| 79 | + <artifactId>spring-boot-starter-test</artifactId> |
| 80 | + <scope>test</scope> |
| 81 | + <exclusions> |
| 82 | + <exclusion> |
| 83 | + <groupId>junit</groupId> |
| 84 | + <artifactId>junit</artifactId> |
| 85 | + </exclusion> |
| 86 | + </exclusions> |
| 87 | + </dependency> |
| 88 | + |
| 89 | + <dependency> |
| 90 | + <groupId>org.junit.jupiter</groupId> |
| 91 | + <artifactId>junit-jupiter</artifactId> |
| 92 | + <version>5.7.0</version> |
| 93 | + </dependency> |
| 94 | + |
| 95 | + <dependency> |
| 96 | + <groupId>org.mockito</groupId> |
| 97 | + <artifactId>mockito-core</artifactId> |
| 98 | + <version>3.3.3</version> |
| 99 | + </dependency> |
| 100 | + |
| 101 | + <dependency> |
| 102 | + <groupId>io.springfox</groupId> |
| 103 | + <artifactId>springfox-swagger2</artifactId> |
| 104 | + <version>2.9.2</version> |
| 105 | + <exclusions> |
| 106 | + <exclusion> |
| 107 | + <groupId>io.swagger</groupId> |
| 108 | + <artifactId>swagger-annotations</artifactId> |
| 109 | + </exclusion> |
| 110 | + <exclusion> |
| 111 | + <groupId>io.swagger</groupId> |
| 112 | + <artifactId>swagger-models</artifactId> |
| 113 | + </exclusion> |
| 114 | + </exclusions> |
| 115 | + </dependency> |
| 116 | + |
| 117 | + <dependency> |
| 118 | + <groupId>io.springfox</groupId> |
| 119 | + <artifactId>springfox-swagger-ui</artifactId> |
| 120 | + <version>2.9.2</version> |
| 121 | + </dependency> |
| 122 | + |
| 123 | + <dependency> |
| 124 | + <groupId>io.swagger</groupId> |
| 125 | + <artifactId>swagger-annotations</artifactId> |
| 126 | + <version>1.5.21</version> |
| 127 | + </dependency> |
| 128 | + |
| 129 | + <dependency> |
| 130 | + <groupId>io.swagger</groupId> |
| 131 | + <artifactId>swagger-models</artifactId> |
| 132 | + <version>1.5.21</version> |
| 133 | + </dependency> |
| 134 | + |
| 135 | + <dependency> |
| 136 | + <groupId>org.springframework.boot</groupId> |
| 137 | + <artifactId>spring-boot-starter-validation</artifactId> |
| 138 | + </dependency> |
| 139 | + |
| 140 | + <dependency> |
| 141 | + <groupId>org.keycloak</groupId> |
| 142 | + <artifactId>keycloak-spring-boot-starter</artifactId> |
| 143 | + <version>${keycloak.version}</version> |
| 144 | + </dependency> |
| 145 | + |
| 146 | + <dependency> |
| 147 | + <groupId>org.springframework.boot</groupId> |
| 148 | + <artifactId>spring-boot-starter-security</artifactId> |
| 149 | + </dependency> |
| 150 | + |
| 151 | + <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-jpamodelgen--> |
| 152 | + <dependency> |
| 153 | + <groupId>org.hibernate</groupId> |
| 154 | + <artifactId>hibernate-jpamodelgen</artifactId> |
| 155 | + <version>5.4.21.Final</version> |
| 156 | + <scope>provided</scope> |
| 157 | + </dependency> |
| 158 | + |
| 159 | + <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3--> |
| 160 | + <dependency> |
| 161 | + <groupId>org.apache.commons</groupId> |
| 162 | + <artifactId>commons-lang3</artifactId> |
| 163 | + </dependency> |
| 164 | + </dependencies> |
| 165 | + |
| 166 | + <dependencyManagement> |
| 167 | + <dependencies> |
| 168 | + <dependency> |
| 169 | + <groupId>org.keycloak.bom</groupId> |
| 170 | + <artifactId>keycloak-adapter-bom</artifactId> |
| 171 | + <version>${keycloak.version}</version> |
| 172 | + <type>pom</type> |
| 173 | + <scope>import</scope> |
| 174 | + </dependency> |
| 175 | + <dependency> |
| 176 | + <groupId>org.springframework.cloud</groupId> |
| 177 | + <artifactId>spring-cloud-dependencies</artifactId> |
| 178 | + <version>${spring.cloud-version}</version> |
| 179 | + <type>pom</type> |
| 180 | + <scope>import</scope> |
| 181 | + </dependency> |
| 182 | + </dependencies> |
| 183 | + </dependencyManagement> |
| 184 | + |
| 185 | + <profiles> |
| 186 | + <profile> |
| 187 | + <id>coverage</id> |
| 188 | + <build> |
| 189 | + <plugins> |
| 190 | + <plugin> |
| 191 | + <groupId>org.jacoco</groupId> |
| 192 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 193 | + <version>0.8.7</version> |
| 194 | + <executions> |
| 195 | + <!-- Prepares the property pointing to the JaCoCo runtime agent |
| 196 | + which is passed as VM argument when Maven the Surefire plugin is executed. --> |
| 197 | + <execution> |
| 198 | + <goals> |
| 199 | + <goal>prepare-agent</goal> |
| 200 | + </goals> |
| 201 | + </execution> |
| 202 | + <!-- Ensures that the code coverage report is created after |
| 203 | + all tests have been run. --> |
| 204 | + <execution> |
| 205 | + <id>generate-report</id> |
| 206 | + <goals> |
| 207 | + <goal>report</goal> |
| 208 | + </goals> |
| 209 | + </execution> |
| 210 | + </executions> |
| 211 | + </plugin> |
| 212 | + </plugins> |
| 213 | + </build> |
| 214 | + </profile> |
| 215 | + </profiles> |
| 216 | + |
| 217 | + <build> |
| 218 | + <plugins> |
| 219 | + <plugin> |
| 220 | + <groupId>org.springframework.boot</groupId> |
| 221 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 222 | + </plugin> |
| 223 | + <plugin> |
| 224 | + <artifactId>maven-surefire-plugin</artifactId> |
| 225 | + <version>2.22.0</version> |
| 226 | + <configuration> |
| 227 | + <trimStackTrace>false</trimStackTrace> |
| 228 | + </configuration> |
| 229 | + </plugin> |
| 230 | + <plugin> |
| 231 | + <groupId>net.revelc.code.formatter</groupId> |
| 232 | + <artifactId>formatter-maven-plugin</artifactId> |
| 233 | + <version>2.15.0</version> |
| 234 | + <configuration> |
| 235 | + <configFile>${project.basedir}/style.xml</configFile> |
| 236 | + <encoding>UTF-8</encoding> |
| 237 | + <lineEnding>KEEP</lineEnding> |
| 238 | + </configuration> |
| 239 | + <executions> |
| 240 | + <execution> |
| 241 | + <goals> |
| 242 | + <goal>format</goal> |
| 243 | + </goals> |
| 244 | + </execution> |
| 245 | + </executions> |
| 246 | + </plugin> |
| 247 | + <plugin> |
| 248 | + <groupId>org.apache.maven.plugins</groupId> |
| 249 | + <artifactId>maven-release-plugin</artifactId> |
| 250 | + <version>3.0.0-M4</version> |
| 251 | + <configuration> |
| 252 | + <tagNameFormat>v@{project.version}</tagNameFormat> |
| 253 | + <scmCommentPrefix>[Github Actions]</scmCommentPrefix> |
| 254 | + <scmDevelopmentCommitComment>@{prefix} increment pom version after release</scmDevelopmentCommitComment> |
| 255 | + </configuration> |
| 256 | + </plugin> |
| 257 | + </plugins> |
| 258 | + <resources> |
| 259 | + <resource> |
| 260 | + <directory>src/main/resources</directory> |
| 261 | + <filtering>true</filtering> |
| 262 | + </resource> |
| 263 | + </resources> |
| 264 | + <testResources> |
| 265 | + <testResource> |
| 266 | + <directory>src/test/resources</directory> |
| 267 | + <filtering>true</filtering> |
| 268 | + </testResource> |
| 269 | + </testResources> |
| 270 | + </build> |
| 271 | + |
| 272 | +</project> |
0 commit comments