-
Notifications
You must be signed in to change notification settings - Fork 627
/
Copy pathbuild.gradle
62 lines (54 loc) · 1.43 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
plugins {
id 'java'
id 'io.spring.dependency-management' version '1.1.0'
id "com.microsoft.azure.azurefunctions" version "1.11.0"
}
apply plugin: 'java'
apply plugin: "com.microsoft.azure.azurefunctions"
group = 'org.scf.azure'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
targetCompatibility = '17'
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
jar {
manifest {
attributes(
// The main class is compulsory. Set it to point your SpringBootApplication.
"Main-Class": "org.scf.azure.gradle.GradleDemoApplication"
)
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation "org.springframework.cloud:spring-cloud-function-adapter-azure:4.1.0-SNAPSHOT"
}
tasks.named('test') {
useJUnitPlatform()
}
// Configuration options: https://github.com/microsoft/azure-gradle-plugins/wiki/Configuration
azurefunctions {
resourceGroup = 'java-functions-group'
appName = 'scff-azure-gradle-sample'
region = 'westus'
appServicePlanName = 'java-functions-app-service-plan'
pricingTier = 'EP1'
runtime {
os = 'linux'
javaVersion = '11'
}
auth {
type = 'azure_cli'
}
appSettings {
FUNCTIONS_EXTENSION_VERSION = '~4'
}
localDebug = "transport=dt_socket,server=y,suspend=n,address=5005"
}