This is the common code library for sscs. Currently it contains:
- CCD domain objects
- Create, Update and Search for cases in CCD
- Idam OAuth and service authorization tokens
- Airlookup service
To build run
./gradlew publishToMavenLocal
This will create a jar file in the projects build libs directory with a version of DEV-SNAPSHOT. If you want to then depend on this without publishing it you can add the following to your build.gradle file in the dependencies section.
compile group: 'com.github.hmcts', name: 'sscs-common', version: 'DEV-SNAPSHOT'
To use this you will need to have setup the following properties in your application.yaml.
Dependent projects must implement the Spring Annotation @EnableScheduling
on the
class which is defined as the @SpringBootApplication
.
idam:
s2s-auth:
totp_secret: ${IDAM.S2S-AUTH.TOTP_SECRET:AAAAAAAAAAAAAAAC}
microservice: ${IDAM.S2S-AUTH.MICROSERVICE:sscs}
url: ${IDAM.S2S-AUTH:http://localhost:4502}
oauth2:
user:
email: ${IDAM_SSCS_SYSTEMUPDATE_USER:SSCS_SYSTEM_UPDATE}
password: ${IDAM_SSCS_SYSTEMUPDATE_PASSWORD:SSCS_SYSTEM_UPDATE}
client:
id: ${IDAM_OAUTH2_CLIENT_ID:sscs}
secret: ${IDAM_OAUTH2_CLIENT_SECRET:QM5RQQ53LZFOSIXJ}
url: ${IDAM_URL:http://localhost:4501}
redirectUrl: ${IDAM_SSCS_URL:https://localhost:9000/poc}
core_case_data:
api:
url: ${CORE_CASE_DATA_URL:http://localhost:4452}
caseTypeId: Benefit
jurisdictionId: SSCS