-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
52 lines (41 loc) · 1.45 KB
/
build.gradle
File metadata and controls
52 lines (41 loc) · 1.45 KB
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
plugins {
id 'org.springframework.boot' version '3.4.5'
id 'io.spring.dependency-management' version '1.1.7'
id 'java'
}
group = 'com.stripe.checkout'
version = '1.0.0'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
// Stripe Java SDK
implementation 'com.stripe:stripe-java:24.3.0'
// JSON support — use a newer Gson that includes ReflectionAccessFilter
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'com.fasterxml.jackson.core:jackson-databind'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
test {
useJUnitPlatform()
}
def developerAppPort = findProperty('developer.app.port') ?: '8080'
def developerNgrokUrl = findProperty('developer.ngrok.url') ?: 'https://staphylomatic-slimily-vivien.ngrok-free.dev'
tasks.register('tunnel', Exec) {
group = 'application'
description = 'Starts ngrok to developer.ngrok.url → localhost:' + developerAppPort + ' (stop other tunnels on that URL first).'
commandLine 'ngrok', 'http', developerAppPort, '--url', developerNgrokUrl
}
// ← To avoid block
bootRun {
jvmArgs = [
'--add-opens', 'java.base/java.net=ALL-UNNAMED',
'--add-opens', 'java.base/java.lang=ALL-UNNAMED',
'--add-opens', 'java.base/java.util=ALL-UNNAMED'
]
}