-
Notifications
You must be signed in to change notification settings - Fork 6
/
pom.xml
276 lines (269 loc) · 9.49 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<?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>
<parent>
<groupId>org.glowroot</groupId>
<artifactId>glowroot-parent</artifactId>
<version>0.10.12</version>
<relativePath>../..</relativePath>
</parent>
<artifactId>glowroot-agent-core-unshaded</artifactId>
<name>Glowroot Agent Core (Unshaded)</name>
<description>Glowroot Agent Core (Unshaded)</description>
<properties>
<asm.version>6.1.1</asm.version>
</properties>
<dependencies>
<dependency>
<groupId>org.glowroot</groupId>
<artifactId>glowroot-agent-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glowroot</groupId>
<artifactId>glowroot-agent-plugin-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glowroot</groupId>
<artifactId>glowroot-agent-bytecode-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glowroot</groupId>
<artifactId>glowroot-wire-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glowroot</groupId>
<artifactId>glowroot-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.immutables</groupId>
<artifactId>value</artifactId>
<!-- immutables is only needed at compile time -->
<scope>provided</scope>
</dependency>
<dependency>
<!-- the presence of this dependency triggers generation of Java 6 compatible classes -->
<groupId>org.immutables</groupId>
<artifactId>android-stub</artifactId>
<!-- immutables is only needed at compile time -->
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<!-- org.objectweb.asm.util.CheckClassAdapter.verify() is used when woven byte code
verification is enabled via -Dglowroot.weaving.verify=true -->
<groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<!-- this is an optional dependency of asm-util -->
<groupId>org.ow2.asm</groupId>
<artifactId>asm-analysis</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<!-- cannot set to optional, all annotation classes must be available on IBM Java 1.6 SR8 and
earlier due to http://www-01.ibm.com/support/docview.wss?uid=swg1IZ76354 -->
</dependency>
<dependency>
<!-- error_prone_annotations is an optional dependency of guava, included here to make it not
optional due to IBM Java 1.6 SR8 and earlier, however, error_prone_annotations itself is
compiled against Java 1.7, which then causes UnsupportedClassVersionError on some other Java
1.6 JVMs (in particular when running glowrot-agent-integration-tests in Eclipse) -->
<groupId>org.glowroot.build</groupId>
<artifactId>glowroot-build-error-prone-jdk6</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<!-- this is included to test weaving against jdk 1.3 bytecode -->
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<!-- this is the latest version compiled to jdk 1.3 bytecode -->
<version>2.6</version>
<scope>test</scope>
</dependency>
<dependency>
<!-- this is included to test weaving against JSR bytecode that ends up being inlined via
JSRInlinerAdapter -->
<groupId>org.apache.jackrabbit</groupId>
<artifactId>jackrabbit-core</artifactId>
<!-- this is the latest version compiled to jdk 5 and therefore the latest version to include
JSR bytecode since JSR bytecode was deprecated in jdk 6 -->
<version>2.5.0</version>
<scope>test</scope>
</dependency>
<dependency>
<!-- dependency of jackrabbit-core that is marked "provided" so not transitively inherited -->
<groupId>javax.jcr</groupId>
<artifactId>jcr</artifactId>
<version>2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<!-- this is included to test weaving against jdk 1.7 bytecode -->
<groupId>io.undertow</groupId>
<artifactId>undertow-core</artifactId>
<version>1.4.25.Final</version>
<scope>test</scope>
</dependency>
<dependency>
<!-- this is included to test reflection against classes with missing optional
dependencies -->
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<!-- Spring 5+ requires Java 8+ -->
<version>4.3.17.RELEASE</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Build-Time>${maven.build.timestamp}</Build-Time>
<Premain-Class>org.glowroot.agent.AgentPremain</Premain-Class>
<Main-Class>org.glowroot.agent.ToolMain</Main-Class>
<Can-Redefine-Classes>true</Can-Redefine-Classes>
<Can-Retransform-Classes>true</Can-Retransform-Classes>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<!-- use custom-built jdk6 compatible checker framework annotations by default except when
actually running checker framework code quality tests, in which case the real checker
framework annotations are provided -->
<id>not-the-checker-build</id>
<activation>
<property>
<name>!glowroot.checker.build</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.glowroot.build</groupId>
<artifactId>glowroot-build-checker-jdk6</artifactId>
<version>${project.version}</version>
<!-- cannot set to optional, all annotation classes must be available on IBM Java 1.6 SR8
and earlier due to http://www-01.ibm.com/support/docview.wss?uid=swg1IZ76354 -->
</dependency>
</dependencies>
</profile>
<profile>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-testCompile</id>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-test-source</id>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/test/java8</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>