|
| 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/maven-v4_0_0.xsd"> |
| 5 | + |
| 6 | + <modelVersion>4.0.0</modelVersion> |
| 7 | + |
| 8 | + <artifactId>hibernate-starter</artifactId> |
| 9 | + <groupId>starter</groupId> |
| 10 | + <version>1.0.0</version> |
| 11 | + |
| 12 | + <properties> |
| 13 | + <!-- Startup class --> |
| 14 | + <application.class>starter.App</application.class> |
| 15 | + |
| 16 | + <jooby.version>2.4.0</jooby.version> |
| 17 | + |
| 18 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 19 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 20 | + <maven.compiler.parameters>true</maven.compiler.parameters> |
| 21 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 22 | + </properties> |
| 23 | + |
| 24 | + <dependencies> |
| 25 | + <dependency> |
| 26 | + <groupId>io.jooby</groupId> |
| 27 | + <artifactId>jooby-netty</artifactId> |
| 28 | + </dependency> |
| 29 | + |
| 30 | + <dependency> |
| 31 | + <groupId>io.jooby</groupId> |
| 32 | + <artifactId>jooby-jackson</artifactId> |
| 33 | + </dependency> |
| 34 | + |
| 35 | + <dependency> |
| 36 | + <groupId>io.jooby</groupId> |
| 37 | + <artifactId>jooby-hikari</artifactId> |
| 38 | + </dependency> |
| 39 | + |
| 40 | + <dependency> |
| 41 | + <groupId>io.jooby</groupId> |
| 42 | + <artifactId>jooby-hibernate</artifactId> |
| 43 | + </dependency> |
| 44 | + |
| 45 | + <dependency> |
| 46 | + <groupId>ch.qos.logback</groupId> |
| 47 | + <artifactId>logback-classic</artifactId> |
| 48 | + </dependency> |
| 49 | + |
| 50 | + <dependency> |
| 51 | + <groupId>com.h2database</groupId> |
| 52 | + <artifactId>h2</artifactId> |
| 53 | + </dependency> |
| 54 | + |
| 55 | + <!-- Tests --> |
| 56 | + <dependency> |
| 57 | + <groupId>org.junit.jupiter</groupId> |
| 58 | + <artifactId>junit-jupiter-api</artifactId> |
| 59 | + <scope>test</scope> |
| 60 | + </dependency> |
| 61 | + |
| 62 | + <dependency> |
| 63 | + <groupId>org.junit.jupiter</groupId> |
| 64 | + <artifactId>junit-jupiter-engine</artifactId> |
| 65 | + <scope>test</scope> |
| 66 | + </dependency> |
| 67 | + |
| 68 | + <dependency> |
| 69 | + <groupId>io.jooby</groupId> |
| 70 | + <artifactId>jooby-test</artifactId> |
| 71 | + <scope>test</scope> |
| 72 | + </dependency> |
| 73 | + |
| 74 | + <dependency> |
| 75 | + <groupId>com.squareup.okhttp3</groupId> |
| 76 | + <artifactId>okhttp</artifactId> |
| 77 | + <scope>test</scope> |
| 78 | + </dependency> |
| 79 | + |
| 80 | + </dependencies> |
| 81 | + |
| 82 | + <build> |
| 83 | + <plugins> |
| 84 | + <plugin> |
| 85 | + <artifactId>maven-compiler-plugin</artifactId> |
| 86 | + <version>3.6.2</version> |
| 87 | + </plugin> |
| 88 | + <plugin> |
| 89 | + <artifactId>maven-surefire-plugin</artifactId> |
| 90 | + <version>2.22.2</version> |
| 91 | + </plugin> |
| 92 | + <!-- jooby:run --> |
| 93 | + <plugin> |
| 94 | + <groupId>io.jooby</groupId> |
| 95 | + <artifactId>jooby-maven-plugin</artifactId> |
| 96 | + <version>${jooby.version}</version> |
| 97 | + </plugin> |
| 98 | + <!-- Build uber jar --> |
| 99 | + <plugin> |
| 100 | + <artifactId>maven-shade-plugin</artifactId> |
| 101 | + <version>3.2.1</version> |
| 102 | + <executions> |
| 103 | + <execution> |
| 104 | + <id>uber-jar</id> |
| 105 | + <phase>package</phase> |
| 106 | + <goals> |
| 107 | + <goal>shade</goal> |
| 108 | + </goals> |
| 109 | + <configuration> |
| 110 | + <createDependencyReducedPom>false</createDependencyReducedPom> |
| 111 | + <transformers> |
| 112 | + <transformer |
| 113 | + implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| 114 | + <transformer |
| 115 | + implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 116 | + <mainClass>${application.class}</mainClass> |
| 117 | + </transformer> |
| 118 | + </transformers> |
| 119 | + </configuration> |
| 120 | + </execution> |
| 121 | + </executions> |
| 122 | + </plugin> |
| 123 | + </plugins> |
| 124 | + </build> |
| 125 | + |
| 126 | + <dependencyManagement> |
| 127 | + <dependencies> |
| 128 | + <dependency> |
| 129 | + <groupId>io.jooby</groupId> |
| 130 | + <artifactId>jooby-bom</artifactId> |
| 131 | + <version>${jooby.version}</version> |
| 132 | + <type>pom</type> |
| 133 | + <scope>import</scope> |
| 134 | + </dependency> |
| 135 | + </dependencies> |
| 136 | + </dependencyManagement> |
| 137 | +</project> |
0 commit comments