Skip to content

Commit 57408f4

Browse files
Merge pull request #38 from BorderTech/latest-qa
Latest qa
2 parents d87affe + 6ccf390 commit 57408f4

File tree

6 files changed

+41
-10
lines changed

6 files changed

+41
-10
lines changed

.travis.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
dist: trusty
2+
3+
cache:
4+
directories:
5+
- $HOME/.m2
6+
7+
addons:
8+
sonarcloud:
9+
organization: "bordertech-github"
10+
token:
11+
secure: $SONAR_TOKEN
12+
113
before_install:
214
- echo "MAVEN_OPTS='-Xmx512m -XX:MaxPermSize=128m'" > ~/.mavenrc
315
- mvn clean
@@ -9,7 +21,7 @@ jdk:
921

1022
## Travis installs the project with the following maven command:- "mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V"
1123
script:
12-
- mvn package
24+
- mvn package sonar:sonar -Dsonar.projectKey="bordertech-java-taskmaster"
1325

1426
## Send Coverage to Codacy
1527
after_success:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ Task Master helps run ASYNC tasks.
33

44
## Status
55
[![Build Status](https://travis-ci.com/BorderTech/java-taskmaster.svg?branch=master)](https://travis-ci.com/BorderTech/java-taskmaster)
6+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=bordertech-java-taskmaster&metric=alert_status)](https://sonarcloud.io/dashboard?id=bordertech-java-taskmaster)
7+
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=bordertech-java-taskmaster&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=bordertech-java-taskmaster)
8+
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=bordertech-java-taskmaster&metric=coverage)](https://sonarcloud.io/dashboard?id=bordertech-java-taskmaster)
69
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/83bcfdba5e34433894e8b958bdb958a5)](https://www.codacy.com/app/BorderTech/java-taskmaster?utm_source=github.com&utm_medium=referral&utm_content=BorderTech/java-taskmaster&utm_campaign=Badge_Grade)
7-
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/83bcfdba5e34433894e8b958bdb958a5)](https://www.codacy.com/app/BorderTech/java-taskmaster?utm_source=github.com&utm_medium=referral&utm_content=BorderTech/java-taskmaster&utm_campaign=Badge_Coverage)
810
[![Javadocs](https://www.javadoc.io/badge/com.github.bordertech.taskmaster/taskmaster-core.svg)](https://www.javadoc.io/doc/com.github.bordertech.taskmaster/taskmaster-core)
911
[![Maven Central](https://img.shields.io/maven-central/v/com.github.bordertech.taskmaster/taskmaster-core.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.bordertech.taskmaster%22%20AND%20a:%22taskmaster-core%22)
1012

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parent>
1111
<groupId>com.github.bordertech.common</groupId>
1212
<artifactId>qa-parent</artifactId>
13-
<version>1.0.11</version>
13+
<version>1.0.15</version>
1414
</parent>
1515

1616
<packaging>pom</packaging>
@@ -49,7 +49,7 @@
4949
<dependency>
5050
<groupId>com.github.bordertech.didums</groupId>
5151
<artifactId>didums-core</artifactId>
52-
<version>1.0.3</version>
52+
<version>1.0.4</version>
5353
</dependency>
5454

5555
<!-- Injection interface. JSR 330 -->
@@ -63,14 +63,14 @@
6363
<dependency>
6464
<groupId>com.github.bordertech.config</groupId>
6565
<artifactId>config</artifactId>
66-
<version>1.0.3</version>
66+
<version>1.0.5</version>
6767
</dependency>
6868

6969
<!-- SLF4J Logging -->
7070
<dependency>
7171
<groupId>org.slf4j</groupId>
7272
<artifactId>slf4j-api</artifactId>
73-
<version>1.7.25</version>
73+
<version>1.7.26</version>
7474
</dependency>
7575

7676
<!-- Commons Logging -->
@@ -84,7 +84,7 @@
8484
<dependency>
8585
<groupId>javax.cache</groupId>
8686
<artifactId>cache-api</artifactId>
87-
<version>1.1.0</version>
87+
<version>1.1.1</version>
8888
</dependency>
8989

9090
<!-- Servlet Interface -->
@@ -98,14 +98,14 @@
9898
<dependency>
9999
<groupId>org.ehcache</groupId>
100100
<artifactId>ehcache</artifactId>
101-
<version>3.6.3</version>
101+
<version>3.7.1</version>
102102
</dependency>
103103

104104
<!-- Common Lang3 -->
105105
<dependency>
106106
<groupId>org.apache.commons</groupId>
107107
<artifactId>commons-lang3</artifactId>
108-
<version>3.8.1</version>
108+
<version>3.9</version>
109109
</dependency>
110110

111111
</dependencies>

taskmaster-core/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
Task Master allows a Runnable task to be submitted for execution and returns a Future representing that task.
2121
</description>
2222

23+
<properties>
24+
<spotbugs.excludeFilterFile>${basedir}/spotbugs-exclude-filter.xml</spotbugs.excludeFilterFile>
25+
</properties>
26+
2327
<dependencies>
2428

2529
<!-- TaskMaster Cache Helper -->
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<FindBugsFilter>
3+
4+
<!-- False Positives -->
5+
<Match>
6+
<Bug pattern="PMB_POSSIBLE_MEMORY_BLOAT" />
7+
</Match>
8+
9+
</FindBugsFilter>

taskmaster-service-helper/src/main/java/com/github/bordertech/taskmaster/service/impl/ServiceHelperProviderDefault.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ public synchronized <S extends Serializable, T extends Serializable> ResultHolde
103103
ProcessingMutableResult serviceResult;
104104
try {
105105
serviceResult = future.get();
106-
} catch (InterruptedException | ExecutionException e) {
106+
} catch (InterruptedException e) {
107+
// Restore interrupted state...
108+
Thread.currentThread().interrupt();
109+
throw new AsyncServiceException("Getting result from Future but thread was interrupted. " + e.getMessage(), e);
110+
} catch (ExecutionException e) {
107111
throw new AsyncServiceException("Could not get result from the future. " + e.getMessage(), e);
108112
}
109113
ResultHolder result;

0 commit comments

Comments
 (0)