Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Commit

Permalink
remove dependency on microservices
Browse files Browse the repository at this point in the history
  • Loading branch information
amckenzie committed Feb 28, 2017
1 parent 511197b commit 8badc08
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
3 changes: 0 additions & 3 deletions file-service-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>

<!--TODO: move to common bom-->
<version>1.3</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@
import static java.lang.String.format;
import static java.sql.DriverManager.registerDriver;

import uk.gov.justice.services.jdbc.persistence.DataAccessException;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class JdbcConnectionProvider {


public Connection getConnection(final String url, final String username, final String password, final String driverClassName) {
try {
final java.sql.Driver driver = (java.sql.Driver) Class.forName(driverClassName).newInstance();
Expand All @@ -23,7 +20,7 @@ public Connection getConnection(final String url, final String username, final S
username,
password);

throw new DataAccessException(message, e);
throw new RuntimeException(message, e);
}
}
}
15 changes: 7 additions & 8 deletions file-service-persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,11 @@
<artifactId>file-service-persistence</artifactId>

<dependencies>
<dependency>
<groupId>uk.gov.justice.services</groupId>
<artifactId>persistence-jdbc</artifactId>
</dependency>
<dependency>
<groupId>uk.gov.justice.services</groupId>
<artifactId>file-service-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>uk.gov.justice.services</groupId>
<artifactId>messaging-core</artifactId>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
Expand All @@ -40,6 +32,13 @@
<artifactId>guava</artifactId>
</dependency>

<dependency>
<groupId>uk.gov.justice.utils</groupId>
<artifactId>utilities-core</artifactId>
<!--TODO: remove snapshot once next version of utilities is released-->
<version>1.1.0-SNAPSHOT</version>
</dependency>


<!-- Test dependencies -->
<dependency>
Expand Down

0 comments on commit 8badc08

Please sign in to comment.