Skip to content

Commit b98fa8f

Browse files
committed
Merge branch 'master' into gh/1391-sqlprovider-langdriver
2 parents 4dec29f + 76826c8 commit b98fa8f

File tree

817 files changed

+10899
-8073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

817 files changed

+10899
-8073
lines changed

.mvn/wrapper/maven-wrapper.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.3-bin.zip
2-
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.0/maven-wrapper-0.4.0.jar
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
2+
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar
3+

.travis.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
language: java
2-
sudo: false
32

43
jdk:
5-
- oraclejdk9
4+
- oraclejdk11
65
- oraclejdk8
7-
- openjdk8
86

97
before_install:
108
- echo "MAVEN_OPTS='-Dlicense.skip=true'" > ~/.mavenrc
119

12-
install:
13-
# Compile sources with Java 1.8
14-
- jdk_switcher use oraclejdk8
15-
- chmod -R 777 ./travis/install.sh
16-
- ./travis/install.sh
17-
# Switch back to the original JDK to run the tests
18-
- jdk_switcher use ${TRAVIS_JDK_VERSION}
19-
20-
script: ./mvnw test -Dmaven.surefire.excludeGroups= -B
21-
2210
after_success:
2311
- chmod -R 777 ./travis/after_success.sh
2412
- ./travis/after_success.sh

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ MyBatis SQL Mapper Framework for Java
33

44
[![Build Status](https://travis-ci.org/mybatis/mybatis-3.svg?branch=master)](https://travis-ci.org/mybatis/mybatis-3)
55
[![Coverage Status](https://coveralls.io/repos/mybatis/mybatis-3/badge.svg?branch=master&service=github)](https://coveralls.io/github/mybatis/mybatis-3?branch=master)
6-
[![Dependency Status](https://www.versioneye.com/user/projects/56199c04a193340f320005d3/badge.svg?style=flat)](https://www.versioneye.com/user/projects/56199c04a193340f320005d3)
76
[![Maven central](https://maven-badges.herokuapp.com/maven-central/org.mybatis/mybatis/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.mybatis/mybatis)
87
[![License](http://img.shields.io/:license-apache-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
98
[![Stack Overflow](http://img.shields.io/:stack%20overflow-mybatis-brightgreen.svg)](http://stackoverflow.com/questions/tagged/mybatis)

mvnw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ else
212212
if [ "$MVNW_VERBOSE" = true ]; then
213213
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
214214
fi
215-
jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.0/maven-wrapper-0.4.0.jar"
215+
jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
216216
while IFS="=" read key value; do
217217
case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
218218
esac

mvnw.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120120
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
121121
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
122122

123-
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.0/maven-wrapper-0.4.0.jar"
123+
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
124124
FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
125125
IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
126126
)

pom.xml

Lines changed: 43 additions & 31 deletions
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-2018 the original author or authors.
4+
Copyright 2009-2019 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.
@@ -22,12 +22,12 @@
2222
<parent>
2323
<groupId>org.mybatis</groupId>
2424
<artifactId>mybatis-parent</artifactId>
25-
<version>31-SNAPSHOT</version>
25+
<version>31</version>
2626
<relativePath />
2727
</parent>
2828

2929
<artifactId>mybatis</artifactId>
30-
<version>3.5.0-SNAPSHOT</version>
30+
<version>3.5.1-SNAPSHOT</version>
3131
<packaging>jar</packaging>
3232

3333
<name>mybatis</name>
@@ -131,27 +131,28 @@
131131
</distributionManagement>
132132

133133
<properties>
134+
<clirr.comparisonVersion>3.4.6</clirr.comparisonVersion>
135+
<excludedGroups>EmbeddedPostgresqlTests</excludedGroups>
134136
<maven.compiler.testCompilerArgument>-parameters</maven.compiler.testCompilerArgument>
135-
<clirr.comparisonVersion>3.3.1</clirr.comparisonVersion>
136-
<spotbugs.onlyAnalyze>org.apache.ibatis.*</spotbugs.onlyAnalyze>
137+
<module.name>org.mybatis</module.name>
137138
<osgi.export>org.apache.ibatis.*;version=${project.version};-noimport:=true</osgi.export>
138139
<osgi.import>*;resolution:=optional</osgi.import>
139140
<osgi.dynamicImport>*</osgi.dynamicImport>
140-
<maven.surefire.excludeGroups>org.apache.ibatis.test.SlowTests</maven.surefire.excludeGroups>
141+
<spotbugs.onlyAnalyze>org.apache.ibatis.*</spotbugs.onlyAnalyze>
141142
</properties>
142143

143144
<dependencies>
144145
<dependency>
145146
<groupId>ognl</groupId>
146147
<artifactId>ognl</artifactId>
147-
<version>3.2.6</version>
148+
<version>3.2.10</version>
148149
<scope>compile</scope>
149150
<optional>true</optional>
150151
</dependency>
151152
<dependency>
152153
<groupId>org.javassist</groupId>
153154
<artifactId>javassist</artifactId>
154-
<version>3.23.1-GA</version>
155+
<version>3.24.1-GA</version>
155156
<scope>compile</scope>
156157
<optional>true</optional>
157158
</dependency>
@@ -176,7 +177,7 @@
176177
<dependency>
177178
<groupId>org.apache.logging.log4j</groupId>
178179
<artifactId>log4j-core</artifactId>
179-
<version>2.11.0</version>
180+
<version>2.11.1</version>
180181
<optional>true</optional>
181182
</dependency>
182183
<dependency>
@@ -188,39 +189,45 @@
188189
<dependency>
189190
<groupId>cglib</groupId>
190191
<artifactId>cglib</artifactId>
191-
<version>3.2.6</version>
192+
<version>3.2.10</version>
192193
<optional>true</optional>
193194
</dependency>
194195

195196
<!-- Test dependencies -->
196197
<dependency>
197-
<groupId>org.junit.vintage</groupId>
198-
<artifactId>junit-vintage-engine</artifactId>
199-
<version>5.3.1</version>
198+
<groupId>org.junit.jupiter</groupId>
199+
<artifactId>junit-jupiter-engine</artifactId>
200+
<version>5.3.2</version>
200201
<scope>test</scope>
201202
</dependency>
202203
<dependency>
203204
<groupId>org.hsqldb</groupId>
204205
<artifactId>hsqldb</artifactId>
205-
<version>2.4.0</version>
206+
<version>2.4.1</version>
206207
<scope>test</scope>
207208
</dependency>
208209
<dependency>
209210
<groupId>org.apache.derby</groupId>
210211
<artifactId>derby</artifactId>
211-
<version>10.14.1.0</version>
212+
<version>10.14.2.0</version>
212213
<scope>test</scope>
213214
</dependency>
214215
<dependency>
215216
<groupId>org.mockito</groupId>
216217
<artifactId>mockito-core</artifactId>
217-
<version>2.16.0</version>
218+
<version>2.23.4</version>
219+
<scope>test</scope>
220+
</dependency>
221+
<dependency>
222+
<groupId>org.mockito</groupId>
223+
<artifactId>mockito-junit-jupiter</artifactId>
224+
<version>2.23.4</version>
218225
<scope>test</scope>
219226
</dependency>
220227
<dependency>
221228
<groupId>org.apache.commons</groupId>
222229
<artifactId>commons-dbcp2</artifactId>
223-
<version>2.2.0</version>
230+
<version>2.5.0</version>
224231
<scope>test</scope>
225232
</dependency>
226233
<dependency>
@@ -231,21 +238,21 @@
231238
</dependency>
232239
<dependency>
233240
<groupId>org.apache.velocity</groupId>
234-
<artifactId>velocity</artifactId>
235-
<version>1.7</version>
241+
<artifactId>velocity-engine-core</artifactId>
242+
<version>2.0</version>
236243
<scope>test</scope>
237244
</dependency>
238245
<!-- postgresql driver is required to run the refcursor tests -->
239246
<dependency>
240247
<groupId>org.postgresql</groupId>
241248
<artifactId>postgresql</artifactId>
242-
<version>42.2.1</version>
249+
<version>42.2.5</version>
243250
<scope>test</scope>
244251
</dependency>
245252
<dependency>
246253
<groupId>org.assertj</groupId>
247254
<artifactId>assertj-core</artifactId>
248-
<version>3.9.1</version>
255+
<version>3.11.1</version>
249256
<scope>test</scope>
250257
</dependency>
251258
<dependency>
@@ -257,7 +264,7 @@
257264
<dependency>
258265
<groupId>ru.yandex.qatools.embed</groupId>
259266
<artifactId>postgresql-embedded</artifactId>
260-
<version>2.9</version>
267+
<version>2.10</version>
261268
<scope>test</scope>
262269
</dependency>
263270
</dependencies>
@@ -275,7 +282,6 @@
275282
<groupId>org.apache.maven.plugins</groupId>
276283
<artifactId>maven-surefire-plugin</artifactId>
277284
<configuration>
278-
<excludedGroups>${maven.surefire.excludeGroups}</excludedGroups>
279285
<argLine>${argLine} -Xmx2048m</argLine>
280286
<systemProperties>
281287
<property>
@@ -370,13 +376,19 @@
370376
</testResources>
371377
</build>
372378

373-
<repositories>
374-
<!-- Adding for mybatis-parent 31-SNAPSHOT -->
375-
<repository>
376-
<id>sonatype-oss-snapshots</id>
377-
<name>Sonatype OSS Snapshots Repository</name>
378-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
379-
</repository>
380-
</repositories>
379+
<profiles>
380+
<profile>
381+
<!-- Run slow tests only on travis ci, to force run otherwise use -D"env.TRAVIS" -->
382+
<id>travis-ci</id>
383+
<activation>
384+
<property>
385+
<name>env.TRAVIS</name>
386+
</property>
387+
</activation>
388+
<properties>
389+
<excludedGroups />
390+
</properties>
391+
</profile>
392+
</profiles>
381393

382394
</project>

src/main/java/org/apache/ibatis/annotations/CacheNamespace.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2016 the original author or authors.
2+
* Copyright 2009-2019 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.
@@ -41,13 +41,13 @@
4141
int size() default 1024;
4242

4343
boolean readWrite() default true;
44-
44+
4545
boolean blocking() default false;
4646

4747
/**
4848
* Property values for a implementation object.
4949
* @since 3.4.2
5050
*/
5151
Property[] properties() default {};
52-
52+
5353
}

src/main/java/org/apache/ibatis/annotations/CacheNamespaceRef.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2016 the original author or authors.
2+
* Copyright 2009-2019 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.
@@ -33,12 +33,14 @@
3333
@Retention(RetentionPolicy.RUNTIME)
3434
@Target(ElementType.TYPE)
3535
public @interface CacheNamespaceRef {
36+
3637
/**
37-
* A namespace type to reference a cache (the namespace name become a FQCN of specified type)
38+
* A namespace type to reference a cache (the namespace name become a FQCN of specified type).
3839
*/
3940
Class<?> value() default void.class;
41+
4042
/**
41-
* A namespace name to reference a cache
43+
* A namespace name to reference a cache.
4244
* @since 3.4.2
4345
*/
4446
String name() default "";

src/main/java/org/apache/ibatis/annotations/Lang.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2018 the original author or authors.
2+
* Copyright 2009-2019 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.
@@ -15,14 +15,14 @@
1515
*/
1616
package org.apache.ibatis.annotations;
1717

18-
import org.apache.ibatis.scripting.LanguageDriver;
19-
2018
import java.lang.annotation.Documented;
2119
import java.lang.annotation.ElementType;
2220
import java.lang.annotation.Retention;
2321
import java.lang.annotation.RetentionPolicy;
2422
import java.lang.annotation.Target;
2523

24+
import org.apache.ibatis.scripting.LanguageDriver;
25+
2626
/**
2727
* @author Clinton Begin
2828
*/
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2016 the original author or authors.
2+
* Copyright 2009-2019 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.
@@ -16,25 +16,21 @@
1616
package org.apache.ibatis.annotations;
1717

1818
import java.lang.annotation.Documented;
19-
import static java.lang.annotation.ElementType.FIELD;
20-
import static java.lang.annotation.ElementType.METHOD;
21-
import static java.lang.annotation.ElementType.PARAMETER;
22-
import static java.lang.annotation.ElementType.TYPE;
23-
import static java.lang.annotation.RetentionPolicy.RUNTIME;
24-
19+
import java.lang.annotation.ElementType;
2520
import java.lang.annotation.Inherited;
2621
import java.lang.annotation.Retention;
22+
import java.lang.annotation.RetentionPolicy;
2723
import java.lang.annotation.Target;
2824

2925
/**
3026
* Marker interface for MyBatis mappers
31-
*
27+
*
3228
* @author Frank David Martínez
3329
*/
3430
@Documented
3531
@Inherited
36-
@Retention(RUNTIME)
37-
@Target({ TYPE, METHOD, FIELD, PARAMETER })
32+
@Retention(RetentionPolicy.RUNTIME)
33+
@Target({ ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER })
3834
public @interface Mapper {
3935
// Interface Mapper
4036
}

0 commit comments

Comments
 (0)