-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
125 lines (101 loc) · 4.42 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
plugins {
id 'java'
id 'org.springframework.boot' version '2.4.1'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
}
group = 'de.uniba.dsg.serverless'
version = '1.2'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
configurations {
umlDoclet
compileOnly {
extendsFrom annotationProcessor
}
}
ext {
awsSdkVersion = '1.11.935'
awsJavaCore = '1.2.1'
}
dependencies {
implementation 'org.junit.jupiter:junit-jupiter:5.7.0'
implementation 'junit:junit:4.13.1'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
// spring
// html templating engine
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
// basic starter including tomcat as an embedded web server
implementation 'org.springframework.boot:spring-boot-starter-web'
// compile time only - generating setters, getters, other utility methods
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// implementation 'com.h2database:h2'
implementation 'org.postgresql:postgresql'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
// json web token
implementation group: 'io.jsonwebtoken', name: 'jjwt', version: '0.9.1'
// rest api documentation
implementation 'org.springdoc:springdoc-openapi-ui:1.5.9'
// testing
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'org.springframework.security:spring-security-test'
// for java doc generation
umlDoclet "nl.talsmasoftware:umldoclet:2.0.8"
// aws
compile "com.amazonaws:aws-lambda-java-core:$awsJavaCore"
compile "com.amazonaws:aws-java-sdk-iam:$awsSdkVersion"
compile "com.amazonaws:aws-java-sdk-cloudwatch:$awsSdkVersion"
compile "com.amazonaws:aws-java-sdk-logs:$awsSdkVersion"
compile "com.amazonaws:aws-java-sdk-lambda:$awsSdkVersion"
compile "com.amazonaws:aws-java-sdk-s3:$awsSdkVersion"
compile "com.amazonaws:aws-java-sdk-api-gateway:$awsSdkVersion"
// azure - signature problems - see jar section
compile group: 'com.microsoft.azure', name: 'azure-core', version: '0.9.8'
compile group: 'com.microsoft.azure', name: 'azure-storage', version: '8.4.0'
// google
compile 'com.google.cloud:google-cloud-logging:1.89.0'
// https://mvnrepository.com/artifact/com.github.docker-java/docker-java
compile group: 'com.github.docker-java', name: 'docker-java', version: '3.2.12'
// jersey client
compile group: 'org.glassfish.jersey.core', name: 'jersey-client', version: '2.29'
compile group: 'org.glassfish.jersey.media', name: 'jersey-media-json-jackson', version: '2.29'
compile group: 'org.glassfish.jersey.inject', name: 'jersey-hk2', version: '2.29'
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
// https://mvnrepository.com/artifact/org.apache.commons/commons-math3
// for computing regression
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
compile group: 'org.apache.commons', name: 'commons-csv', version: '1.6'
// https://mvnrepository.com/artifact/commons-io/commons-io
compile group: 'commons-io', name: 'commons-io', version: '2.6'
}
jar {
duplicatesStrategy = 'exclude'
manifest {
attributes(
'Main-Class': 'de.uniba.dsg.serverless.ArgumentProcessor'
)
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
// azure lib causes a java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
// see discussion: https://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
}
javadoc {
source = sourceSets.main.allJava
options.memberLevel = JavadocMemberLevel.PRIVATE
options.docletpath = configurations.umlDoclet.files.asType(List)
options.doclet = "nl.talsmasoftware.umldoclet.UMLDoclet"
}
test {
useJUnitPlatform()
}