-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
106 lines (100 loc) · 3.24 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2021 Piotr Morgwai Kotarbinski, Licensed under the Apache License, Version 2.0 -->
<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>
<groupId>pl.morgwai.samples</groupId>
<artifactId>servlet-scopes-sample</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>Sample apps for servlet-scopes library</name>
<properties>
<maven.compiler.release>11</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<guice.version>6.0.0</guice.version><!--jakarta:<guice.version>7.0.0</guice.version>-->
<servlet.scopes.version>16.4-SNAPSHOT</servlet.scopes.version>
</properties>
<dependencies>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>${guice.version}</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>javax</id>
<activation>
<activeByDefault>true</activeByDefault><!--jakarta:<activeByDefault>false</activeByDefault>-->
</activation>
<dependencies>
<dependency>
<groupId>pl.morgwai.base</groupId>
<artifactId>servlet-scopes</artifactId>
<version>${servlet.scopes.version}-javax</version>
<classifier>shadedbytebuddy</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<version>[10.0.7,10.999.0]</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-javax-server</artifactId>
<version>[10.0.7,10.999.0]</version>
</dependency>
</dependencies>
</profile>
<profile>
<id>jakarta</id>
<activation>
<activeByDefault>false</activeByDefault><!--jakarta:<activeByDefault>true</activeByDefault>-->
</activation>
<dependencies>
<dependency>
<groupId>pl.morgwai.base</groupId>
<artifactId>servlet-scopes</artifactId>
<version>${servlet.scopes.version}-jakarta</version>
<classifier>shadedbytebuddy</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<version>[11.0.7,11.999.0]</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-jakarta-server</artifactId>
<version>[11.0.7,11.999.0]</version>
</dependency>
</dependencies>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<archive>
<manifest>
<mainClass>pl.morgwai.base.servlet.guice.scopes.tests.jetty.JettyServer</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>