pom.xml 6.67 KB
Newer Older
1
2
3
4
5
<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

6
7
    <groupId>it1901.todolist</groupId>
    <artifactId>parent</artifactId>
8
    <version>0.0.1-SNAPSHOT</version>
9
    <packaging>pom</packaging>
10
11
12

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
13
14
        <jupiter.version>5.8.1</jupiter.version>
        <jackson.version>2.12.5</jackson.version>
15
16
    </properties>

17
18
    <dependencyManagement>
        <dependencies>
19

20
21
22
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-api</artifactId>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
23
                <version>${jupiter.version}</version>
24
25
26
27
28
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-engine</artifactId>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
29
                <version>${jupiter.version}</version>
30
31
32
33
34
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-params</artifactId>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
35
                <version>${jupiter.version}</version>
36
37
                <scope>test</scope>
            </dependency>
38

39
40
41
42
            <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
43
                <version>3.12.4</version>
44
45
                <scope>test</scope>
            </dependency>
46
47
48
49
50

            <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core -->
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
51
                <version>${jackson.version}</version>
52
53
54
55
56
            </dependency>
            <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
57
                <version>${jackson.version}</version>
58
59
            </dependency>

60
61
        </dependencies>
    </dependencyManagement>
62
63

    <build>
64
65
66
        <pluginManagement>
            <plugins>
                <plugin>
67
68
69
70
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.8.1</version>
                    <configuration>
                        <encoding>UTF-8</encoding>
71
                        <release>16</release>
72
                    </configuration>
73
                </plugin>
74
75
76
77
78
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>3.0.0-M5</version>
                    <configuration>
79
                        <!-- 
80
                            <argLine>dash dash enable-preview</argLine>
81
                        -->
82
83
84
85
86
87
                    </configuration>
                </plugin>
                <!-- Run the checkstyle code quality tool -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-checkstyle-plugin</artifactId>
88
                    <version>3.1.2</version>
89
90
91
92
                    <dependencies>
                        <dependency>
                            <groupId>com.puppycrawl.tools</groupId>
                            <artifactId>checkstyle</artifactId>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
93
                            <version>9.0</version>
94
95
96
97
98
99
100
101
102
                        </dependency>
                    </dependencies>
                    <configuration>
                        <configLocation>google_checks.xml</configLocation>
                        <encoding>UTF-8</encoding>
                        <consoleOutput>true</consoleOutput>
                        <failsOnError>true</failsOnError>
                        <linkXRef>false</linkXRef>
                    </configuration>
103
104
105
106
107
108
109
110
111
                    <executions>
                        <execution>
                        <id>checkstyle-check</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                        </execution>
                    </executions>
112
113
114
115
116
                </plugin>
                <!-- Run the spotbugs code quality tool -->
                <plugin>
                    <groupId>com.github.spotbugs</groupId>
                    <artifactId>spotbugs-maven-plugin</artifactId>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
117
                    <version>4.4.1</version>
118
119
120
                    <configuration>
                        <xmlOutput>false</xmlOutput>
                        <htmlOutput>true</htmlOutput>
121
                        <excludeFilterFile>config/spotbugs/exclude.xml</excludeFilterFile>
122
123
124
125
                    </configuration>
                    <executions>
                        <execution>
                        <id>spotbugs-check</id>
126
                        <phase>verify</phase>
127
                        <goals>
128
                            <goal>check</goal>
129
                        </goals>
130
131
132
133
134
135
136
                        </execution>
                    </executions>
                </plugin>
                <!-- Configure jacoco code coverage -->
                <plugin>
                    <groupId>org.jacoco</groupId>
                    <artifactId>jacoco-maven-plugin</artifactId>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
137
                    <version>0.8.7</version>
138
139
140
141
142
143
144
145
146
147
148
149
                    <executions>
                        <execution>
                            <id>jacoco-prepare-agent</id>
                            <phase>process-test-classes</phase>
                            <goals>
                                <goal>prepare-agent</goal>
                            </goals>
                        </execution>
                        <execution>
                            <id>jacoco-report</id>
                            <phase>verify</phase>
                            <goals>
150
                                <goal>report</goal>
151
152
153
154
155
156
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
157
    </build>
158
159
160

    <modules>
        <module>core</module>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
161
        <module>fxutil</module>
162
        <module>fxui</module>
163
        <module>rest</module>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
164
        <module>integrationtests</module>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
165
        <!--
166
        <module>springboot/restserver</module>
Hallvard Trætteberg's avatar
Hallvard Trætteberg committed
167
        -->
168
169
    </modules>
</project>