Skip to content

Commit

Permalink
Updated versions (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliveni authored Oct 30, 2018
1 parent fe48b6a commit 7cfebd9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 11 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CMC document management client
# Document management client

[ ![Download](https://api.bintray.com/packages/hmcts/hmcts-maven/document-management-client/images/download.svg) ](https://bintray.com/hmcts/hmcts-maven/document-management-client/_latestVersion)

This is the backend service for Civil Money Claims.
The service provides a set methods to integrate with document management.
The two main responsibilities are:
- upload document/s to document management,
Expand All @@ -17,12 +18,14 @@ The two main responsibilities are:

Just include the library as your dependency and you will be to use the client class. Health check for DM service is provided as well.

Components provided by this library will get automatically configured in a Spring context if `document_management.url` configuration property is defined and does not equal `false`.

Components provided by this library will get automatically configured in a Spring context if `document_management.url` configuration property is defined and does not equal `false`.

You will need to provide a Bean of type `RestTemplate` for the library to use

### Building

The project uses [Gradle](https://gradle.org) as a build tool but you don't have install it locally since there is a
`./gradlew` wrapper script.
`./gradlew` wrapper script.

To build project please execute the following command:

Expand Down
27 changes: 21 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ buildscript {
plugins {
id 'checkstyle'
id 'io.spring.dependency-management' version '1.0.5.RELEASE'
id 'org.springframework.boot' version '2.0.1.RELEASE'
id 'org.springframework.boot' version '2.0.6.RELEASE'
id 'com.github.ben-manes.versions' version '0.20.0'
}

apply plugin: 'checkstyle'
Expand All @@ -21,7 +22,20 @@ apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'

group 'uk.gov.hmcts.reform'
version '4.0.0'
version '4.0.1'

dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}

checkstyle {
maxWarnings = 0
Expand Down Expand Up @@ -133,13 +147,14 @@ bintray {
}

ext {
springCloudVersion = 'Finchley.M9'
springCloudVersion = 'Finchley.RELEASE'
}

dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator'
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-openfeign'
compile group: 'com.netflix.feign', name: 'feign-jackson', version: '8.18.0'
api group: 'org.springframework.cloud', name: 'spring-cloud-starter-openfeign'
api group: 'org.springframework.boot', name: 'spring-boot-starter-actuator'
api group: 'io.github.openfeign', name: 'feign-jackson'

}

dependencyManagement {
Expand Down

0 comments on commit 7cfebd9

Please sign in to comment.