From 9f4dfdc7453026dd05ec928e0ca196df90554fe4 Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Mon, 2 Mar 2020 14:28:44 -0500 Subject: [PATCH] Add groovy + sample DTO for XA. --- build.gradle | 22 ++++++++++++++++++- gradle.properties | 4 +++- .../systemnavigation3d/domain/dto/XA.groovy | 17 ++++++++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 src/main/groovy/com/lmco/spectrum/systemnavigation3d/domain/dto/XA.groovy diff --git a/build.gradle b/build.gradle index d0dbc3e..9e3b6c9 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,5 @@ plugins { + id 'groovy' id 'org.springframework.boot' version '2.2.4.RELEASE' id 'io.spring.dependency-management' version '1.0.9.RELEASE' id 'java' @@ -11,6 +12,9 @@ version = '0.0.1.alpha.0' sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 +// Fix spring boot problem +ext['groovy.version'] = "${groovyVersion}" + configurations { developmentOnly runtimeClasspath { @@ -25,7 +29,23 @@ repositories { mavenCentral() } +sourceSets { + main { + java { srcDirs = [] } + groovy { srcDirs += ['src/main/java'] } + } + test { + java { srcDirs = [] } + groovy { srcDirs += ['src/test/java'] } + } +} + dependencies { + implementation "org.codehaus.groovy:groovy:${groovyVersion}" + + implementation 'com.google.code.gson:gson:2.8.6' + implementation 'com.google.code.findbugs:jsr305:3.0.2' + implementation 'org.springframework.boot:spring-boot-starter-web' developmentOnly 'org.springframework.boot:spring-boot-devtools' annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' @@ -34,7 +54,7 @@ dependencies { exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' } - implementation platform('com.amazonaws:aws-java-sdk-bom:1.11.714') + implementation platform('com.amazonaws:aws-java-sdk-bom:1.11.734') implementation 'com.amazonaws:aws-java-sdk-s3' } diff --git a/gradle.properties b/gradle.properties index 03b2e37..b075ff1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,3 @@ -org.gradle.warning.mode=all \ No newline at end of file +org.gradle.warning.mode=all + +groovyVersion=3.0.1 \ No newline at end of file diff --git a/src/main/groovy/com/lmco/spectrum/systemnavigation3d/domain/dto/XA.groovy b/src/main/groovy/com/lmco/spectrum/systemnavigation3d/domain/dto/XA.groovy new file mode 100644 index 0000000..3316724 --- /dev/null +++ b/src/main/groovy/com/lmco/spectrum/systemnavigation3d/domain/dto/XA.groovy @@ -0,0 +1,17 @@ +package com.lmco.spectrum.systemnavigation3d.domain.dto + +import com.google.gson.annotations.SerializedName +import groovy.transform.EqualsAndHashCode +import groovy.transform.ToString + +@ToString +@EqualsAndHashCode +class XA { + + @SerializedName("geia:end_item_acronym_code") + String endItemAcronymCode + + @SerializedName("geia:logistics_support_analysis_control_number_structure") + String lcnStructure + +}