123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- <?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/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>jooby</artifactId>
- <groupId>com.techempower</groupId>
- <version>3.0</version>
- <name>jooby</name>
- <properties>
- <jooby.version>3.0.5</jooby.version>
- <dsl-json.version>1.10.0</dsl-json.version>
- <postgresql.version>42.6.0</postgresql.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.compiler.source>17</maven.compiler.source>
- <maven.compiler.target>17</maven.compiler.target>
- <!-- Startup class -->
- <application.class>com.techempower.App</application.class>
- </properties>
- <dependencies>
- <!-- jdbc -->
- <dependency>
- <groupId>io.jooby</groupId>
- <artifactId>jooby-hikari</artifactId>
- <version>${jooby.version}</version>
- </dependency>
- <!-- rocker -->
- <dependency>
- <groupId>io.jooby</groupId>
- <artifactId>jooby-rocker</artifactId>
- <version>${jooby.version}</version>
- </dependency>
- <!-- mySQL -->
- <dependency>
- <groupId>com.mysql</groupId>
- <artifactId>mysql-connector-j</artifactId>
- <version>8.0.33</version>
- </dependency>
- <!-- postgresql -->
- <dependency>
- <groupId>org.postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>${postgresql.version}</version>
- </dependency>
- <dependency>
- <groupId>io.vertx</groupId>
- <artifactId>vertx-pg-client</artifactId>
- <version>4.4.4</version>
- </dependency>
- <!-- json -->
- <dependency>
- <groupId>com.dslplatform</groupId>
- <artifactId>dsl-json-java8</artifactId>
- <version>${dsl-json.version}</version>
- </dependency>
- </dependencies>
- <build>
- <finalName>jooby</finalName>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>3.3.0</version>
- <executions>
- <execution>
- <id>add-source</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>${project.build.outputDirectory}${file.separator}generated-sources${file.separator}annotations</source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>com.fizzed</groupId>
- <artifactId>rocker-maven-plugin</artifactId>
- <version>1.3.0</version>
- <executions>
- <execution>
- <id>generate-rocker-templates</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>generate</goal>
- </goals>
- <configuration>
- <templateDirectory>public</templateDirectory>
- <touchFile>/dev/null</touchFile>
- <optimize>true</optimize>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.11.0</version>
- <configuration>
- <annotationProcessorPaths>
- <path>
- <groupId>io.jooby</groupId>
- <artifactId>jooby-apt</artifactId>
- <version>${jooby.version}</version>
- </path>
- <path>
- <groupId>com.dslplatform</groupId>
- <artifactId>dsl-json-java8</artifactId>
- <version>${dsl-json.version}</version>
- </path>
- </annotationProcessorPaths>
- </configuration>
- </plugin>
- <!-- Build fat jar -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>3.4.1</version>
- <executions>
- <execution>
- <id>uber-jar</id>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- <configuration>
- <createDependencyReducedPom>false</createDependencyReducedPom>
- <transformers>
- <transformer
- implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
- <transformer
- implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
- <mainClass>${application.class}</mainClass>
- </transformer>
- </transformers>
- <filters>
- <filter>
- <artifact>*:*</artifact>
- <excludes>
- <exclude>META-INF/*.SF</exclude>
- <exclude>META-INF/*.DSA</exclude>
- <exclude>META-INF/*.RSA</exclude>
- </excludes>
- </filter>
- </filters>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>undertow</id>
- <dependencies>
- <dependency>
- <groupId>io.jooby</groupId>
- <artifactId>jooby-undertow</artifactId>
- <version>${jooby.version}</version>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>jetty</id>
- <dependencies>
- <dependency>
- <groupId>io.jooby</groupId>
- <artifactId>jooby-jetty</artifactId>
- <version>${jooby.version}</version>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>netty</id>
- <dependencies>
- <dependency>
- <groupId>io.jooby</groupId>
- <artifactId>jooby-netty</artifactId>
- <version>${jooby.version}</version>
- </dependency>
- </dependencies>
- </profile>
- </profiles>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>io.jooby</groupId>
- <artifactId>jooby-bom</artifactId>
- <version>${jooby.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
- </project>
|