-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
121 lines (93 loc) · 3.98 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
plugins {
id "java"
id "org.springframework.boot" version "3.3.1"
id "io.spring.dependency-management" version "1.1.5"
id "com.palantir.git-version" version "3.1.0"
id "com.adarshr.test-logger" version "4.0.0"
id "jacoco"
}
repositories {
mavenCentral()
}
group = "com.trynoice"
version = gitVersion().substring(1) // remove leading 'v' from the Git tag
sourceSets {
integrationTest {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
}
}
configurations {
integrationTestImplementation.extendsFrom implementation
integrationTestRuntimeOnly.extendsFrom runtimeOnly
}
springBoot {
buildInfo()
}
bootRun {
systemProperty "spring.profiles.active", "dev-default,dev"
}
bootJar {
archiveFileName = "${archiveBaseName.get()}.${archiveExtension.get()}"
exclude 'application-dev*.properties'
}
tasks.withType(Test) {
useJUnitPlatform()
finalizedBy jacocoTestReport
systemProperty "spring.profiles.active", "test"
}
task integrationTest(type: Test) {
description = 'Runs the integration tests.'
group = 'verification'
shouldRunAfter test
classpath = sourceSets.integrationTest.runtimeClasspath
testClassesDirs = sourceSets.integrationTest.output.classesDirs
}
check.dependsOn integrationTest
jacocoTestReport {
executionData fileTree(buildDir).include("/jacoco/*.exec")
reports {
xml.required = true
}
}
dependencies {
def flywayVersion = '10.15.0'
def springDocVersion = '2.5.0'
def therapiVersion = '0.15.0'
// to enable JavaDoc support in SpringDocs
annotationProcessor "com.github.therapi:therapi-runtime-javadoc-scribe:$therapiVersion"
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
implementation 'com.auth0:java-jwt:4.4.0'
implementation 'com.github.ben-manes.caffeine:caffeine:3.1.8'
implementation "com.github.therapi:therapi-runtime-javadoc:$therapiVersion" // for javadoc support in springdoc
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20240624-2.0.0'
implementation 'com.google.auth:google-auth-library-oauth2-http:1.23.0'
implementation 'com.stripe:stripe-java:26.1.0'
implementation 'org.apache.commons:commons-text:1.12.0'
implementation "org.flywaydb:flyway-core:$flywayVersion"
implementation "org.flywaydb:flyway-database-postgresql:$flywayVersion"
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.integration:spring-integration-core'
implementation "org.springdoc:springdoc-openapi-starter-common:$springDocVersion"
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:$springDocVersion"
implementation 'org.postgresql:postgresql'
implementation platform('software.amazon.awssdk:bom:2.26.12')
implementation 'software.amazon.awssdk:s3'
implementation 'software.amazon.awssdk:ses'
implementation platform('com.google.cloud:spring-cloud-gcp-dependencies:5.4.3')
implementation 'com.google.cloud:spring-cloud-gcp-starter-pubsub'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
integrationTestAnnotationProcessor 'org.projectlombok:lombok'
integrationTestCompileOnly 'org.projectlombok:lombok'
integrationTestImplementation 'org.springframework.boot:spring-boot-starter-test'
integrationTestImplementation 'org.testcontainers:postgresql:1.19.8'
}