Fix gradlew file for AWS deployment sample
This commit is contained in:
@@ -7,6 +7,25 @@ plugins {
|
|||||||
id 'org.springframework.boot.experimental.thin-launcher' version "1.0.30.RELEASE"
|
id 'org.springframework.boot.experimental.thin-launcher' version "1.0.30.RELEASE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
group = 'com.example'
|
||||||
|
version = '0.0.1-SNAPSHOT'
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = '17'
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
mavenLocal()
|
||||||
|
maven { url 'https://repo.spring.io/milestone' }
|
||||||
|
}
|
||||||
|
|
||||||
|
ext {
|
||||||
|
set('springCloudVersion', "2023.0.0-M1")
|
||||||
|
}
|
||||||
|
|
||||||
|
assemble.dependsOn = [thinJar, shadowJar]
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
maven(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
@@ -24,35 +43,17 @@ publishing {
|
|||||||
}
|
}
|
||||||
|
|
||||||
thinPom.mustRunAfter resolveMainClassName, test
|
thinPom.mustRunAfter resolveMainClassName, test
|
||||||
|
shadowJar.mustRunAfter thinJar
|
||||||
group = 'com.example'
|
|
||||||
version = '0.0.1-SNAPSHOT'
|
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = '17'
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
maven { url 'https://repo.spring.io/milestone' }
|
|
||||||
}
|
|
||||||
|
|
||||||
ext {
|
|
||||||
set('springCloudVersion', "2023.0.0-M1")
|
|
||||||
}
|
|
||||||
|
|
||||||
assemble.dependsOn = [shadowJar, thinJar]
|
|
||||||
|
|
||||||
|
|
||||||
import com.github.jengelman.gradle.plugins.shadow.transformers.*
|
import com.github.jengelman.gradle.plugins.shadow.transformers.*
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
archiveClassifier = 'aws'
|
archiveClassifier = 'aws'
|
||||||
dependencies {
|
manifest {
|
||||||
exclude(
|
inheritFrom(project.tasks.thinJar.manifest)
|
||||||
dependency("org.springframework.cloud:spring-cloud-function-web:4.1.0-SNAPSHOT"))
|
}
|
||||||
}
|
// Required for Spring
|
||||||
// Required for Spring
|
|
||||||
mergeServiceFiles()
|
mergeServiceFiles()
|
||||||
append 'META-INF/spring.handlers'
|
append 'META-INF/spring.handlers'
|
||||||
append 'META-INF/spring.schemas'
|
append 'META-INF/spring.schemas'
|
||||||
@@ -65,9 +66,9 @@ shadowJar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'org.springframework.boot:spring-boot-starter'
|
implementation 'org.springframework.boot:spring-boot-starter'
|
||||||
|
implementation 'org.springframework.cloud:spring-cloud-function-adapter-aws'
|
||||||
implementation 'org.springframework.cloud:spring-cloud-function-context'
|
implementation 'org.springframework.cloud:spring-cloud-function-context'
|
||||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
pluginManagement {
|
||||||
|
repositories {
|
||||||
|
maven { url 'https://repo.spring.io/milestone' }
|
||||||
|
gradlePluginPortal()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
rootProject.name = 'demo-function'
|
||||||
Reference in New Issue
Block a user