|
12 | 12 | <artifactId>spring-boot-skeleton</artifactId> |
13 | 13 | <version>0.0.1-SNAPSHOT</version> |
14 | 14 | <name>spring-boot-skeleton</name> |
15 | | - <description>Demo project for Spring Boot</description> |
| 15 | + <description>Spring Boot project for OpenClassrooms DA JAVA 7th project</description> |
16 | 16 | <properties> |
17 | 17 | <java.version>11</java.version> |
| 18 | + <!-- JaCoCo Properties --> |
| 19 | + <jacoco.version>0.8.6</jacoco.version> |
| 20 | + <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> |
| 21 | + <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> |
| 22 | + <sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath> |
| 23 | + <sonar.language>java</sonar.language> |
18 | 24 | </properties> |
19 | 25 | <dependencies> |
| 26 | + <!-- ******************************************************************* --> |
| 27 | + <!-- ************************* SPRING BOOT ***************************** --> |
| 28 | + <!-- ******************************************************************* --> |
20 | 29 | <dependency> |
21 | 30 | <groupId>org.springframework.boot</groupId> |
22 | | - <artifactId>spring-boot-starter-actuator</artifactId> |
| 31 | + <artifactId>spring-boot-starter-web</artifactId> |
23 | 32 | </dependency> |
24 | 33 | <dependency> |
25 | 34 | <groupId>org.springframework.boot</groupId> |
26 | | - <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 35 | + <artifactId>spring-boot-starter-actuator</artifactId> |
27 | 36 | </dependency> |
28 | 37 | <dependency> |
29 | 38 | <groupId>org.springframework.boot</groupId> |
30 | | - <artifactId>spring-boot-starter-security</artifactId> |
| 39 | + <artifactId>spring-boot-devtools</artifactId> |
| 40 | + <scope>runtime</scope> |
| 41 | + <optional>true</optional> |
31 | 42 | </dependency> |
| 43 | + <!-- ***************************************************************** --> |
| 44 | + <!-- ************************* THYMELEAF ***************************** --> |
| 45 | + <!-- ***************************************************************** --> |
32 | 46 | <dependency> |
33 | 47 | <groupId>org.springframework.boot</groupId> |
34 | 48 | <artifactId>spring-boot-starter-thymeleaf</artifactId> |
35 | 49 | </dependency> |
36 | 50 | <dependency> |
37 | | - <groupId>org.springframework.boot</groupId> |
38 | | - <artifactId>spring-boot-starter-validation</artifactId> |
| 51 | + <groupId>org.thymeleaf.extras</groupId> |
| 52 | + <artifactId>thymeleaf-extras-springsecurity5</artifactId> |
39 | 53 | </dependency> |
| 54 | + <!-- ***************************************************************** --> |
| 55 | + <!-- *************************** TESTS ******************************* --> |
| 56 | + <!-- ***************************************************************** --> |
40 | 57 | <dependency> |
41 | 58 | <groupId>org.springframework.boot</groupId> |
42 | | - <artifactId>spring-boot-starter-web</artifactId> |
| 59 | + <artifactId>spring-boot-starter-test</artifactId> |
| 60 | + <scope>test</scope> |
43 | 61 | </dependency> |
44 | 62 | <dependency> |
45 | | - <groupId>org.thymeleaf.extras</groupId> |
46 | | - <artifactId>thymeleaf-extras-springsecurity5</artifactId> |
| 63 | + <groupId>org.springframework.security</groupId> |
| 64 | + <artifactId>spring-security-test</artifactId> |
| 65 | + <scope>test</scope> |
47 | 66 | </dependency> |
48 | | - |
49 | 67 | <dependency> |
50 | | - <groupId>org.hibernate</groupId> |
51 | | - <artifactId>hibernate-validator</artifactId> |
52 | | - <version>6.0.10.Final</version> |
| 68 | + <groupId>org.jacoco</groupId> |
| 69 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 70 | + <version>${jacoco.version}</version> |
53 | 71 | </dependency> |
54 | | - |
| 72 | + <!-- ***************************************************************** --> |
| 73 | + <!-- ************************* SECURITY ****************************** --> |
| 74 | + <!-- ***************************************************************** --> |
55 | 75 | <dependency> |
56 | 76 | <groupId>org.springframework.boot</groupId> |
57 | | - <artifactId>spring-boot-devtools</artifactId> |
58 | | - <scope>runtime</scope> |
59 | | - <optional>true</optional> |
| 77 | + <artifactId>spring-boot-starter-security</artifactId> |
| 78 | + </dependency> |
| 79 | + <dependency> |
| 80 | + <groupId>org.springframework.security</groupId> |
| 81 | + <artifactId>spring-security-oauth2-client</artifactId> |
60 | 82 | </dependency> |
| 83 | + <!-- ***************************************************************** --> |
| 84 | + <!-- ************************* DATABASE ****************************** --> |
| 85 | + <!-- ***************************************************************** --> |
61 | 86 | <dependency> |
62 | 87 | <groupId>com.h2database</groupId> |
63 | 88 | <artifactId>h2</artifactId> |
|
70 | 95 | </dependency> |
71 | 96 | <dependency> |
72 | 97 | <groupId>org.springframework.boot</groupId> |
73 | | - <artifactId>spring-boot-starter-test</artifactId> |
74 | | - <scope>test</scope> |
75 | | - </dependency> |
76 | | - <dependency> |
77 | | - <groupId>org.springframework.security</groupId> |
78 | | - <artifactId>spring-security-test</artifactId> |
79 | | - <scope>test</scope> |
| 98 | + <artifactId>spring-boot-starter-data-jpa</artifactId> |
80 | 99 | </dependency> |
| 100 | + <!-- ****************************************************************** --> |
| 101 | + <!-- ************************* VALIDATION ***************************** --> |
| 102 | + <!-- ****************************************************************** --> |
81 | 103 | <dependency> |
82 | | - <groupId>com.fasterxml.jackson.datatype</groupId> |
83 | | - <artifactId>jackson-datatype-jsr310</artifactId> |
| 104 | + <groupId>org.springframework.boot</groupId> |
| 105 | + <artifactId>spring-boot-starter-validation</artifactId> |
84 | 106 | </dependency> |
85 | 107 | <dependency> |
86 | 108 | <groupId>org.passay</groupId> |
87 | 109 | <artifactId>passay</artifactId> |
88 | 110 | <version>1.0</version> |
89 | 111 | </dependency> |
| 112 | + <dependency> |
| 113 | + <groupId>org.hibernate.validator</groupId> |
| 114 | + <artifactId>hibernate-validator</artifactId> |
| 115 | + <version>6.0.10.Final</version> |
| 116 | + </dependency> |
90 | 117 | <dependency> |
91 | 118 | <groupId>com.google.guava</groupId> |
92 | 119 | <artifactId>guava</artifactId> |
93 | 120 | <version>28.2-jre</version> |
94 | 121 | </dependency> |
| 122 | + <dependency> |
| 123 | + <groupId>com.fasterxml.jackson.datatype</groupId> |
| 124 | + <artifactId>jackson-datatype-jsr310</artifactId> |
| 125 | + </dependency> |
| 126 | + <dependency> |
| 127 | + <groupId>org.apache.maven.plugins</groupId> |
| 128 | + <artifactId>maven-site-plugin</artifactId> |
| 129 | + <version>3.9.0</version> |
| 130 | + </dependency> |
95 | 131 | </dependencies> |
96 | 132 |
|
| 133 | + <!-- ************************************************************* --> |
| 134 | + <!-- ************************* BUILD ***************************** --> |
| 135 | + <!-- ************************************************************* --> |
97 | 136 | <build> |
98 | 137 | <plugins> |
99 | 138 | <plugin> |
100 | 139 | <groupId>org.springframework.boot</groupId> |
101 | 140 | <artifactId>spring-boot-maven-plugin</artifactId> |
102 | 141 | <version>${project.parent.version}</version> |
103 | 142 | </plugin> |
| 143 | + <plugin> |
| 144 | + <groupId>org.jacoco</groupId> |
| 145 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 146 | + <version>${jacoco.version}</version> |
| 147 | + <configuration> |
| 148 | + <excludes> |
| 149 | + <exclude>com/nnk/springboot/dto/*</exclude> |
| 150 | + <exclude>**/config/*</exclude> |
| 151 | + <exclude>com/nnk/springboot/domain/*</exclude> |
| 152 | + </excludes> |
| 153 | + </configuration> |
| 154 | + <executions> |
| 155 | + <execution> |
| 156 | + <id>jacoco-initialize</id> |
| 157 | + <goals> |
| 158 | + <goal>prepare-agent</goal> |
| 159 | + </goals> |
| 160 | + </execution> |
| 161 | + <execution> |
| 162 | + <id>jacoco-site</id> |
| 163 | + <phase>package</phase> |
| 164 | + <goals> |
| 165 | + <goal>report</goal> |
| 166 | + </goals> |
| 167 | + </execution> |
| 168 | + </executions> |
| 169 | + </plugin> |
104 | 170 | </plugins> |
105 | 171 | </build> |
106 | 172 |
|
| 173 | + <!-- ***************************************************************** --> |
| 174 | + <!-- ************************* REPORTING ***************************** --> |
| 175 | + <!-- ***************************************************************** --> |
| 176 | + <reporting> |
| 177 | + <plugins> |
| 178 | + <plugin> |
| 179 | + <groupId>org.apache.maven.plugins</groupId> |
| 180 | + <artifactId>maven-project-info-reports-plugin</artifactId> |
| 181 | + <version>2.9</version> |
| 182 | + </plugin> |
| 183 | + </plugins> |
| 184 | + </reporting> |
| 185 | + |
107 | 186 | </project> |
0 commit comments