Skip to content

Commit

Permalink
Add groovy + sample DTO for XA.
Browse files Browse the repository at this point in the history
  • Loading branch information
dds14002 committed Mar 2, 2020
1 parent 090f8a2 commit 9f4dfdc
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
22 changes: 21 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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 {
Expand All @@ -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'
Expand All @@ -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'

}
Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
org.gradle.warning.mode=all
org.gradle.warning.mode=all

groovyVersion=3.0.1
Original file line number Diff line number Diff line change
@@ -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

}

0 comments on commit 9f4dfdc

Please sign in to comment.