@@ -7,6 +7,25 @@ plugins {
7
7
id ' org.springframework.boot.experimental.thin-launcher' version " 1.0.30.RELEASE"
8
8
}
9
9
10
+ group = ' com.example'
11
+ version = ' 0.0.1-SNAPSHOT'
12
+
13
+ java {
14
+ sourceCompatibility = ' 17'
15
+ }
16
+
17
+ repositories {
18
+ mavenCentral()
19
+ mavenLocal()
20
+ maven { url ' https://repo.spring.io/milestone' }
21
+ }
22
+
23
+ ext {
24
+ set(' springCloudVersion' , " 2023.0.0-M1" )
25
+ }
26
+
27
+ assemble. dependsOn = [thinJar, shadowJar]
28
+
10
29
publishing {
11
30
publications {
12
31
maven(MavenPublication ) {
@@ -24,35 +43,17 @@ publishing {
24
43
}
25
44
26
45
thinPom. mustRunAfter resolveMainClassName, test
27
-
28
- group = ' com.example'
29
- version = ' 0.0.1-SNAPSHOT'
30
-
31
- java {
32
- sourceCompatibility = ' 17'
33
- }
34
-
35
- repositories {
36
- mavenCentral()
37
- maven { url ' https://repo.spring.io/milestone' }
38
- }
39
-
40
- ext {
41
- set(' springCloudVersion' , " 2023.0.0-M1" )
42
- }
43
-
44
- assemble. dependsOn = [shadowJar, thinJar]
46
+ shadowJar. mustRunAfter thinJar
45
47
46
48
47
49
import com.github.jengelman.gradle.plugins.shadow.transformers.*
48
50
49
51
shadowJar {
50
52
archiveClassifier = ' aws'
51
- dependencies {
52
- exclude(
53
- dependency(" org.springframework.cloud:spring-cloud-function-web:4.1.0-SNAPSHOT" ))
54
- }
55
- // Required for Spring
53
+ manifest {
54
+ inheritFrom(project. tasks. thinJar. manifest)
55
+ }
56
+ // Required for Spring
56
57
mergeServiceFiles()
57
58
append ' META-INF/spring.handlers'
58
59
append ' META-INF/spring.schemas'
@@ -65,9 +66,9 @@ shadowJar {
65
66
}
66
67
}
67
68
68
-
69
69
dependencies {
70
70
implementation ' org.springframework.boot:spring-boot-starter'
71
+ implementation ' org.springframework.cloud:spring-cloud-function-adapter-aws'
71
72
implementation ' org.springframework.cloud:spring-cloud-function-context'
72
73
testImplementation ' org.springframework.boot:spring-boot-starter-test'
73
74
}
0 commit comments