arseniy.sorokin | bdf2def | 2023-10-05 00:05:32 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | <modelVersion>4.0.0</modelVersion> |
| 6 | |
| 7 | <artifactId>invoicer</artifactId> |
| 8 | <groupId>pl.hackerspace</groupId> |
| 9 | <version>1.0.0-SNAPSHOT</version> |
| 10 | |
| 11 | <dependencyManagement> |
| 12 | <dependencies> |
| 13 | <dependency> |
| 14 | <groupId>org.apache.logging.log4j</groupId> |
| 15 | <artifactId>log4j-bom</artifactId> |
| 16 | <version>${log4j2.version}</version> |
| 17 | <scope>import</scope> |
| 18 | <type>pom</type> |
| 19 | </dependency> |
| 20 | <dependency> |
| 21 | <groupId>org.springframework.boot</groupId> |
| 22 | <artifactId>spring-boot-dependencies</artifactId> |
| 23 | <version>${spring-boot.version}</version> |
| 24 | <type>pom</type> |
| 25 | <scope>import</scope> |
| 26 | </dependency> |
| 27 | </dependencies> |
| 28 | </dependencyManagement> |
| 29 | |
| 30 | <dependencies> |
| 31 | <dependency> |
| 32 | <groupId>org.springframework.boot</groupId> |
| 33 | <artifactId>spring-boot-starter-web</artifactId> |
| 34 | </dependency> |
| 35 | <dependency> |
| 36 | <groupId>org.springframework.boot</groupId> |
| 37 | <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 38 | </dependency> |
| 39 | <dependency> |
| 40 | <groupId>com.h2database</groupId> |
| 41 | <artifactId>h2</artifactId> |
| 42 | <scope>runtime</scope> |
| 43 | </dependency> |
| 44 | <dependency> |
| 45 | <groupId>org.springframework.boot</groupId> |
| 46 | <artifactId>spring-boot-starter-test</artifactId> |
| 47 | <scope>test</scope> |
| 48 | </dependency> |
| 49 | <dependency> |
| 50 | <groupId>org.yaml</groupId> |
| 51 | <artifactId>snakeyaml</artifactId> |
| 52 | <version>2.2</version> |
| 53 | </dependency> |
| 54 | <dependency> |
| 55 | <groupId>org.projectlombok</groupId> |
| 56 | <artifactId>lombok</artifactId> |
| 57 | <version>1.18.28</version> |
| 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>org.jsoup</groupId> |
| 61 | <artifactId>jsoup</artifactId> |
| 62 | <version>1.16.1</version> |
| 63 | </dependency> |
| 64 | <dependency> |
| 65 | <groupId>org.xhtmlrenderer</groupId> |
| 66 | <artifactId>flying-saucer-pdf-openpdf</artifactId> |
| 67 | <version>9.1.22</version> |
| 68 | </dependency> |
| 69 | </dependencies> |
| 70 | |
| 71 | <build> |
| 72 | <plugins> |
| 73 | <plugin> |
| 74 | <groupId>org.codehaus.mojo</groupId> |
| 75 | <artifactId>exec-maven-plugin</artifactId> |
| 76 | <version>3.1.0</version> |
| 77 | <configuration> |
| 78 | <executable>maven</executable> |
| 79 | </configuration> |
| 80 | </plugin> |
| 81 | <plugin> |
| 82 | <groupId>org.apache.maven.plugins</groupId> |
| 83 | <artifactId>maven-compiler-plugin</artifactId> |
| 84 | <version>3.11.0</version> |
| 85 | <configuration> |
| 86 | <source>${java.version}</source> |
| 87 | <target>${java.version}</target> |
| 88 | </configuration> |
| 89 | </plugin> |
| 90 | <plugin> |
| 91 | <artifactId>maven-resources-plugin</artifactId> |
| 92 | <version>3.3.1</version> |
| 93 | <executions> |
| 94 | <execution> |
| 95 | <id>copy-resources</id> |
| 96 | <phase>process-classes</phase> |
| 97 | <goals> |
| 98 | <goal>copy-resources</goal> |
| 99 | </goals> |
| 100 | <configuration> |
| 101 | <outputDirectory>${basedir}/target/classes/static</outputDirectory> |
| 102 | <resources> |
| 103 | <resource> |
| 104 | <directory>frontend/build</directory> |
| 105 | </resource> |
| 106 | </resources> |
| 107 | </configuration> |
| 108 | </execution> |
| 109 | </executions> |
| 110 | </plugin> |
| 111 | <plugin> |
| 112 | <groupId>com.github.eirslett</groupId> |
| 113 | <artifactId>frontend-maven-plugin</artifactId> |
| 114 | <version>1.13.4</version> |
| 115 | <configuration> |
| 116 | <workingDirectory>frontend</workingDirectory> |
| 117 | </configuration> |
| 118 | <executions> |
| 119 | <execution> |
| 120 | <id>install node</id> |
| 121 | <goals> |
| 122 | <goal>install-node-and-yarn</goal> |
| 123 | </goals> |
| 124 | <configuration> |
| 125 | <nodeVersion>${node.version}</nodeVersion> |
| 126 | <yarnVersion>${yarn.version}</yarnVersion> |
| 127 | </configuration> |
| 128 | </execution> |
| 129 | <execution> |
| 130 | <id>yarn install</id> |
| 131 | <goals> |
| 132 | <goal>yarn</goal> |
| 133 | </goals> |
| 134 | <phase>generate-resources</phase> |
| 135 | </execution> |
| 136 | <execution> |
| 137 | <id>yarn test</id> |
| 138 | <goals> |
| 139 | <goal>yarn</goal> |
| 140 | </goals> |
| 141 | <phase>test</phase> |
| 142 | <configuration> |
| 143 | <arguments>test</arguments> |
| 144 | <environmentVariables> |
| 145 | <CI>true</CI> |
| 146 | </environmentVariables> |
| 147 | </configuration> |
| 148 | </execution> |
| 149 | <execution> |
| 150 | <id>yarn build</id> |
| 151 | <goals> |
| 152 | <goal>yarn</goal> |
| 153 | </goals> |
| 154 | <phase>compile</phase> |
| 155 | <configuration> |
| 156 | <arguments>build</arguments> |
| 157 | </configuration> |
| 158 | </execution> |
| 159 | </executions> |
| 160 | </plugin> |
| 161 | <plugin> |
| 162 | <groupId>org.springframework.boot</groupId> |
| 163 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 164 | <version>3.1.3</version> |
| 165 | </plugin> |
| 166 | </plugins> |
| 167 | </build> |
| 168 | |
| 169 | <properties> |
| 170 | <java.version>17</java.version> |
| 171 | <maven.compiler.source>17</maven.compiler.source> |
| 172 | <maven.compiler.target>17</maven.compiler.target> |
| 173 | <node.version>v14.18.0</node.version> |
| 174 | <yarn.version>v1.12.1</yarn.version> |
| 175 | <spring-boot.version>3.1.3</spring-boot.version> |
| 176 | <javafaker.version>1.0.2</javafaker.version> |
| 177 | <log4j2.version>2.17.1</log4j2.version> |
| 178 | </properties> |
| 179 | |
| 180 | </project> |