This repository has been archived by the owner on Dec 1, 2022. It is now read-only.
Clean up Gradle build scripts, move config to root project #287
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
plugins { | ||
id 'java' | ||
id "java" | ||
} | ||
|
||
description 'Blox DataService Client' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compileOnly 'org.projectlombok:lombok:1.16.18' | ||
compileOnly 'org.projectlombok:lombok' | ||
|
||
compile( | ||
project(":data-service-model"), | ||
project(":json-rpc-lambda-client"), | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
description 'Shared POJOs and interfaces for the Blox DataService' | ||
|
||
apply plugin: 'java' | ||
|
||
repositories { | ||
mavenCentral() | ||
plugins { | ||
id "java" | ||
} | ||
|
||
description 'Shared POJOs and interfaces for the Blox DataService' | ||
|
||
dependencies { | ||
// Needed for serialization of JDK8's Instant data type | ||
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:+' | ||
|
||
compileOnly 'org.projectlombok:lombok:1.16.18' | ||
} | ||
compileOnly 'org.projectlombok:lombok' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,10 @@ | ||
plugins { | ||
id "java" | ||
id 'net.ltgt.apt' version '0.11' | ||
id "io.spring.dependency-management" version "1.0.3.RELEASE" | ||
id 'net.ltgt.apt' | ||
} | ||
|
||
description "Implementation of the Blox DataService" | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencyManagement { | ||
imports { | ||
mavenBom 'com.amazonaws:aws-java-sdk-bom:1.11.215' | ||
} | ||
dependencies { | ||
dependencySet(group: 'org.springframework', version: '4.3.10.RELEASE') { | ||
entry 'spring-core' | ||
entry 'spring-beans' | ||
entry 'spring-context' | ||
entry 'spring-test' | ||
} | ||
dependencySet(group: 'org.slf4j', version: '1.7.+') { | ||
entry 'slf4j-api' | ||
entry 'jcl-over-slf4j' | ||
} | ||
dependencySet(group: 'org.mapstruct', version: '1.2.0.CR2') { | ||
entry 'mapstruct-jdk8' | ||
entry 'mapstruct-processor' | ||
} | ||
} | ||
} | ||
|
||
compileJava { | ||
options.compilerArgs = [ | ||
'-Amapstruct.defaultComponentModel=spring' | ||
|
@@ -71,7 +44,7 @@ dependencies { | |
'org.apache.logging.log4j:log4j-slf4j-impl:2.8.+', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we move logging to dep management too? since there's no reason to use different versions across projects There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed; I'll do that as part of the bigger logging cleanup to move to slf4j everywhere. |
||
'org.apache.commons:commons-lang3:3.6', | ||
|
||
'org.projectlombok:lombok:1.16.18', | ||
'org.projectlombok:lombok', | ||
|
||
'org.mapstruct:mapstruct-jdk8', | ||
|
||
|
@@ -85,7 +58,7 @@ dependencies { | |
testCompile( | ||
'junit:junit:4.12', | ||
'org.hamcrest:hamcrest-junit:2.+', | ||
'org.mockito:mockito-core:2.10.+', | ||
'org.mockito:mockito-core', | ||
'org.slf4j:slf4j-api', | ||
'org.slf4j:jcl-over-slf4j', | ||
'org.springframework:spring-test' | ||
|
@@ -104,7 +77,7 @@ dependencies { | |
) | ||
|
||
apt 'org.mapstruct:mapstruct-processor' | ||
apt 'org.projectlombok:lombok:1.16.18' | ||
apt 'org.projectlombok:lombok' | ||
} | ||
|
||
|
||
|
@@ -138,4 +111,4 @@ task deploy { | |
"--capabilities", "CAPABILITY_IAM") | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Tue Aug 15 13:21:19 PDT 2017 | ||
#Mon Nov 06 11:48:17 PST 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0.2-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-all.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
description 'Blox DataService Client' | ||
|
||
apply plugin: 'java' | ||
|
||
repositories { | ||
mavenCentral() | ||
plugins { | ||
id "java" | ||
} | ||
|
||
description 'Blox DataService Client' | ||
|
||
dependencies { | ||
compile "com.github.briandilley.jsonrpc4j:jsonrpc4j:+" | ||
|
||
// TODO: Move dependencyManagement block to the root project so that | ||
// we don't have to depend on a specific SDK version here: | ||
compile "software.amazon.awssdk:lambda:+" | ||
compile "software.amazon.awssdk:lambda" | ||
|
||
compileOnly "org.projectlombok:lombok:1.16.18" | ||
compileOnly "org.projectlombok:lombok" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need both sdk version or is this so we don't have to refactor code that doesn't use v2 now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is so that we don't have to refactor the parts of the dataservice that still depend on V1 now.