Skip to content

Commit 3fa4fdf

Browse files
authored
Merge pull request #677 from hazendaz/master
Use more properties in pom and add byte budy to argline
2 parents e3bfee5 + 3683986 commit 3fa4fdf

File tree

3 files changed

+48
-18
lines changed

3 files changed

+48
-18
lines changed

pom.xml

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,23 +87,41 @@
8787
</distributionManagement>
8888

8989
<properties>
90+
<!-- Java Usage -->
9091
<java.version>11</java.version>
9192
<java.release.version>11</java.release.version>
9293

94+
<!-- Versions -->
95+
<agroal.version>2.2</agroal.version>
96+
<annotation-api.version>2.1.1</annotation-api.version>
97+
<byte-buddy.version>1.14.11</byte-buddy.version>
9398
<clirr.comparisonVersion>3.10</clirr.comparisonVersion>
94-
<spotbugs.onlyAnalyze>org.mybatis.guice.*</spotbugs.onlyAnalyze>
95-
<gcu.product>Guice</gcu.product>
9699
<derby.version>10.17.1.0</derby.version>
97-
<guice.version>7.0.0</guice.version>
98-
<annotation-api.version>2.1.1</annotation-api.version>
99100
<ejb-api.version>4.0.1</ejb-api.version>
101+
<guice.version>7.0.0</guice.version>
100102
<inject-api.version>2.0.1</inject-api.version>
101-
<osgi.import>com.alibaba.druid.pool.*;resolution:=optional,com.zaxxer.hikari.*;resolution:=optional,com.mchange.v2.c3p0.*;resolution:=optional,org.apache.commons.dbcp2.*;resolution:=optional,jakarta.transaction.*;resolution:=optional</osgi.import>
103+
<metrics.version>4.2.25</metrics.version>
104+
<mockito.version>5.10.0</mockito.version>
105+
<slf4j.version>2.0.11</slf4j.version>
106+
107+
<!-- Analysis -->
108+
<spotbugs.onlyAnalyze>org.mybatis.guice.*</spotbugs.onlyAnalyze>
102109
<spotbugs.omitVisitors>UnreadFields</spotbugs.omitVisitors>
110+
111+
<!-- GCU Product -->
112+
<gcu.product>Guice</gcu.product>
113+
114+
<!-- OSGI Headers -->
115+
<osgi.import>com.alibaba.druid.pool.*;resolution:=optional,com.zaxxer.hikari.*;resolution:=optional,com.mchange.v2.c3p0.*;resolution:=optional,org.apache.commons.dbcp2.*;resolution:=optional,jakarta.transaction.*;resolution:=optional</osgi.import>
116+
117+
<!-- Automatic Module Name -->
103118
<module.name>org.mybatis.guice</module.name>
104119

105120
<!-- Reproducible Builds -->
106121
<project.build.outputTimestamp>1706488285</project.build.outputTimestamp>
122+
123+
<!-- Surefire Setup -->
124+
<argLine>-javaagent:${settings.localRepository}/net/bytebuddy/byte-buddy-agent/${byte-buddy.version}/byte-buddy-agent-${byte-buddy.version}.jar</argLine>
107125
</properties>
108126

109127
<dependencies>
@@ -218,13 +236,26 @@
218236
<dependency>
219237
<groupId>org.mockito</groupId>
220238
<artifactId>mockito-core</artifactId>
221-
<version>5.10.0</version>
239+
<version>${mockito.version}</version>
222240
<scope>test</scope>
223241
</dependency>
224242
<dependency>
225243
<groupId>org.mockito</groupId>
226244
<artifactId>mockito-junit-jupiter</artifactId>
227-
<version>5.10.0</version>
245+
<version>${mockito.version}</version>
246+
<scope>test</scope>
247+
</dependency>
248+
249+
<dependency>
250+
<groupId>net.bytebuddy</groupId>
251+
<artifactId>byte-buddy</artifactId>
252+
<version>${byte-buddy.version}</version>
253+
<scope>test</scope>
254+
</dependency>
255+
<dependency>
256+
<groupId>net.bytebuddy</groupId>
257+
<artifactId>byte-buddy-agent</artifactId>
258+
<version>${byte-buddy.version}</version>
228259
<scope>test</scope>
229260
</dependency>
230261

@@ -238,19 +269,19 @@
238269
<dependency>
239270
<groupId>org.slf4j</groupId>
240271
<artifactId>jcl-over-slf4j</artifactId>
241-
<version>2.0.11</version>
272+
<version>${slf4j.version}</version>
242273
<scope>compile</scope>
243274
</dependency>
244275
<dependency>
245276
<groupId>org.slf4j</groupId>
246277
<artifactId>slf4j-api</artifactId>
247-
<version>2.0.11</version>
278+
<version>${slf4j.version}</version>
248279
<scope>compile</scope>
249280
</dependency>
250281
<dependency>
251282
<groupId>org.slf4j</groupId>
252283
<artifactId>slf4j-simple</artifactId>
253-
<version>2.0.11</version>
284+
<version>${slf4j.version}</version>
254285
<scope>test</scope>
255286
</dependency>
256287

@@ -263,19 +294,19 @@
263294
<dependency>
264295
<groupId>io.agroal</groupId>
265296
<artifactId>agroal-api</artifactId>
266-
<version>2.2</version>
297+
<version>${agroal.version}</version>
267298
<scope>test</scope>
268299
</dependency>
269300
<dependency>
270301
<groupId>io.agroal</groupId>
271302
<artifactId>agroal-pool</artifactId>
272-
<version>2.2</version>
303+
<version>${agroal.version}</version>
273304
<scope>test</scope>
274305
</dependency>
275306
<dependency>
276307
<groupId>io.agroal</groupId>
277308
<artifactId>agroal-narayana</artifactId>
278-
<version>2.2</version>
309+
<version>${agroal.version}</version>
279310
<scope>test</scope>
280311
</dependency>
281312
<dependency>
@@ -327,14 +358,14 @@
327358
<dependency>
328359
<groupId>io.dropwizard.metrics</groupId>
329360
<artifactId>metrics-core</artifactId>
330-
<version>4.2.25</version>
361+
<version>${metrics.version}</version>
331362
<scope>test</scope>
332363
</dependency>
333364

334365
<dependency>
335366
<groupId>io.dropwizard.metrics</groupId>
336367
<artifactId>metrics-healthchecks</artifactId>
337-
<version>4.2.25</version>
368+
<version>${metrics.version}</version>
338369
<scope>test</scope>
339370
</dependency>
340371
</dependencies>

src/main/java/org/mybatis/guice/MyBatisModule.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2023 the original author or authors.
2+
* Copyright 2009-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,7 +26,6 @@
2626
import jakarta.inject.Provider;
2727

2828
import java.util.Collection;
29-
import java.util.Set;
3029

3130
import javax.sql.DataSource;
3231

src/site/site.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2009-2023 the original author or authors.
4+
Copyright 2009-2024 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)