Fix Gradle build

This commit is contained in:
Simon Dean
2019-08-05 09:32:43 +01:00
parent 38981003b9
commit 29ada6d42e
2 changed files with 16 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
buildscript {
ext {
springBootVersion = '2.0.3.RELEASE'
wrapperVersion = '1.0.13.BUILD-SNAPSHOT'
springBootVersion = '2.2.0.BUILD-SNAPSHOT'
wrapperVersion = '1.0.17.RELEASE'
shadowVersion = '2.0.1'
}
repositories {
@@ -15,6 +15,7 @@ buildscript {
classpath "com.github.jengelman.gradle.plugins:shadow:${shadowVersion}"
classpath("org.springframework.boot.experimental:spring-boot-thin-gradle-plugin:${wrapperVersion}")
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("io.spring.gradle:dependency-management-plugin:1.0.8.RELEASE")
}
}
@@ -25,6 +26,7 @@ apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.springframework.boot'
apply plugin: 'org.springframework.boot.experimental.thin-launcher'
apply plugin: 'io.spring.dependency-management'
group = 'io.spring.sample'
version = '2.0.0.RELEASE'
@@ -39,8 +41,8 @@ repositories {
}
ext {
springCloudFunctionVersion = "2.0.0.BUILD-SNAPSHOT"
awsLambdaEventsVersion = "1.2.1"
springCloudFunctionVersion = "3.0.0.BUILD-SNAPSHOT"
awsLambdaEventsVersion = "2.0.2"
awsLambdaCoreVersion = "1.1.0"
}
ext['reactor.version'] = "3.1.7.RELEASE"
@@ -76,9 +78,16 @@ configurations {
testCompile.extendsFrom(compileOnly)
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-function-dependencies:${springCloudFunctionVersion}"
}
}
dependencies {
compile("org.springframework.cloud:spring-cloud-starter-function-web:${springCloudFunctionVersion}")
compile("org.springframework.cloud:spring-cloud-function-adapter-aws:${springCloudFunctionVersion}")
compile("org.springframework.cloud:spring-cloud-function-adapter-aws")
compile("org.springframework.cloud:spring-cloud-starter-function-webflux")
compile("org.springframework.boot:spring-boot-configuration-processor")
compileOnly("com.amazonaws:aws-lambda-java-events:${awsLambdaEventsVersion}")
compileOnly("com.amazonaws:aws-lambda-java-core:${awsLambdaCoreVersion}")
testCompile('org.springframework.boot:spring-boot-starter-test')

View File

@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip