-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle
69 lines (56 loc) · 1.5 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
63
64
65
66
67
68
69
buildscript {
ext {
functionsCoreVersion = "1.3.1"
}
repositories {
mavenCentral()
jcenter()
maven {
url uri('C:/Users/elenla.REDMOND/.m2/repository')
}
}
dependencies {
classpath("com.microsoft.azure.functions:azure-functions-java-library:1.3.1")
classpath group: 'lenala.azure', name: 'azure-functions-gradle-plugin',
version: '1.0.1'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'lenala.azure.azurefunctions'
import lenala.azure.gradle.functions.*;
dependencies {
compile 'com.microsoft.azure.functions:azure-functions-java-library:1.3.1'
}
version = 'v0.15'
description = "walkthrough-functions-app"
def functionAppName = "lenaFunctionApp112233445"
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
azurefunctions {
authFile = 'C:/stuff/my3.azureauth'
}
task azureFunctionsPackage(type: PackageTask) {
dependsOn jar
appName = functionAppName
resourceGroup = "lenaFunctionApp"
region = "westus"
}
task azureFunctionsDeploy(type: DeployTask) {
appName = functionAppName
resourceGroup = "lenaFunctionApp"
region = "westus"
}
task azureFunctionsRun(type: RunTask) {
appName = functionAppName
resourceGroup = "lenaFunctionApp"
region = "westus"
}
task azureFunctionsAdd(type: AddTask) {
functionPackageName = "my.function"
functionTemplate = "HttpTrigger"
}
repositories {
maven { url "http://repo.maven.apache.org/maven2" }
}