Skip to content

Commit 6b35e52

Browse files
committed
Various Build Updates
- Add JDK9 - Always publish the coveralls report - Upgrade to new MyBatis parent - Change checkstyle config so we always use our local config
1 parent c5e3951 commit 6b35e52

File tree

4 files changed

+11
-35
lines changed

4 files changed

+11
-35
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ before_install:
55
- chmod +x mvnw
66

77
jdk:
8+
- oraclejdk9
89
- oraclejdk8
910

1011
after_success:
12+
- mvn clean test jacoco:report coveralls:report
1113
- chmod -R 777 ./travis/after_success.sh
1214
- ./travis/after_success.sh
1315

checkstyle.xml renamed to checkstyle-dsql.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<!--
33
4-
Copyright 2016-2017 the original author or authors.
4+
Copyright 2016-2018 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.
@@ -68,9 +68,7 @@
6868
<property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
6969
</module>
7070
<module name="NeedBraces"/>
71-
<module name="LeftCurly">
72-
<property name="maxLineLength" value="100"/>
73-
</module>
71+
<module name="LeftCurly"/>
7472
<module name="RightCurly">
7573
<property name="id" value="RightCurlySame"/>
7674
<property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_DO"/>

pom.xml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
3-
Copyright 2016-2017 the original author or authors.
3+
Copyright 2016-2018 the original author or authors.
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
<parent>
2121
<groupId>org.mybatis</groupId>
2222
<artifactId>mybatis-parent</artifactId>
23-
<version>29</version>
23+
<version>30</version>
2424
</parent>
2525
<groupId>org.mybatis.dynamic-sql</groupId>
2626
<artifactId>mybatis-dynamic-sql</artifactId>
@@ -58,7 +58,7 @@
5858
<groupId>org.apache.maven.plugins</groupId>
5959
<artifactId>maven-checkstyle-plugin</artifactId>
6060
<configuration>
61-
<configLocation>checkstyle.xml</configLocation>
61+
<configLocation>checkstyle-dsql.xml</configLocation>
6262
</configuration>
6363
</plugin>
6464
</plugins>
@@ -86,22 +86,6 @@
8686
</execution>
8787
</executions>
8888
</plugin>
89-
<plugin>
90-
<groupId>org.apache.maven.plugins</groupId>
91-
<artifactId>maven-surefire-plugin</artifactId>
92-
<dependencies>
93-
<dependency>
94-
<groupId>org.junit.platform</groupId>
95-
<artifactId>junit-platform-surefire-provider</artifactId>
96-
<version>${junit.platform.version}</version>
97-
</dependency>
98-
<dependency>
99-
<groupId>org.junit.jupiter</groupId>
100-
<artifactId>junit-jupiter-engine</artifactId>
101-
<version>${junit.jupiter.version}</version>
102-
</dependency>
103-
</dependencies>
104-
</plugin>
10589
</plugins>
10690
</build>
10791

@@ -114,9 +98,9 @@
11498
</dependency>
11599
<!-- added to support running JUnit5 tests with JUnit4. Remove when eclipse/infinitest catch up. -->
116100
<dependency>
117-
<groupId>junit</groupId>
118-
<artifactId>junit</artifactId>
119-
<version>4.12</version>
101+
<groupId>org.junit.vintage</groupId>
102+
<artifactId>junit-vintage-engine</artifactId>
103+
<version>4.12.2</version>
120104
<scope>test</scope>
121105
</dependency>
122106
<dependency>
@@ -135,7 +119,7 @@
135119
<dependency>
136120
<groupId>org.assertj</groupId>
137121
<artifactId>assertj-core</artifactId>
138-
<version>3.8.0</version>
122+
<version>3.9.0</version>
139123
<scope>test</scope>
140124
</dependency>
141125
<dependency>

travis/after_success.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ if [ $TRAVIS_REPO_SLUG == "mybatis/mybatis-dynamic-sql" ] && [ "$TRAVIS_PULL_REQ
4141
./mvnw clean deploy -q --settings ./travis/settings.xml
4242
echo -e "Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER}"
4343

44-
# Deploy to Coveralls
45-
./mvnw clean test jacoco:report coveralls:report -q --settings ./travis/settings.xml
46-
echo -e "Successfully ran coveralls under Travis job ${TRAVIS_JOB_NUMBER}"
47-
48-
# Deploy to site
49-
# various issues exist currently in building this so comment for now
50-
# ./mvnw site site:deploy -q --settings ./travis/settings.xml
51-
# echo -e "Successfully deploy site under Travis job ${TRAVIS_JOB_NUMBER}"
5244
else
5345
echo "Java Version does not support additional activity for travis CI"
5446
fi

0 commit comments

Comments
 (0)