-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
129 lines (108 loc) · 3.75 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
126
127
128
129
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "com.google.cloud.tools:appengine-gradle-plugin:2.2.0"
classpath "org.akhikhl.gretty:gretty:+"
}
}
plugins {
id "org.springframework.boot" version "2.3.1.RELEASE"
id "io.spring.dependency-management" version "1.0.9.RELEASE"
id "org.jetbrains.kotlin.jvm" version "1.3.72"
id "org.jetbrains.kotlin.plugin.spring" version "1.3.72"
id 'java'
id 'war'
id "org.gretty" version "3.0.3"
}
repositories {
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
mavenCentral()
jcenter()
}
group = "com.fourthwall.googlemembersapi"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
}
apply plugin: 'kotlin'
apply plugin: "kotlin-spring"
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'org.akhikhl.gretty'
apply plugin: 'com.google.cloud.tools.appengine'
dependencies {
//appengine
implementation("com.google.appengine:appengine:+")
//spring
implementation("org.springframework.boot:spring-boot-starter:2.3.1.RELEASE")
implementation("org.springframework.boot:spring-boot-starter-web:2.3.1.RELEASE") {
exclude module: "spring-boot-starter-tomcat"
}
implementation("org.springframework.boot:spring-boot-starter-jetty")
implementation("org.springframework.cloud:spring-cloud-gcp-starters:1.2.3.RELEASE")
implementation("org.eclipse.jetty:jetty-webapp:9.+")
implementation("org.eclipse.jetty:jetty-jsp:9.+")
implementation("org.springframework.security:spring-security-oauth2-client:5.3.3.RELEASE")
implementation("org.springframework.security:spring-security-oauth2-jose:5.3.3.RELEASE")
implementation("org.springframework.security:spring-security-web:5.3.3.RELEASE")
implementation("org.springframework.security:spring-security-config:5.3.3.RELEASE")
//kotlin
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.3.72")
//okhttp
implementation("com.squareup.moshi:moshi-kotlin:1.9.2")
implementation("com.squareup.moshi:moshi-adapters:1.9.2")
implementation("com.squareup.okhttp3:okhttp:4.2.2")
implementation("com.squareup.okhttp3:logging-interceptor:4.2.2")
//arrow
implementation("io.arrow-kt:arrow-core-data:0.10.5")
implementation("io.arrow-kt:arrow-core:0.10.5")
implementation("io.arrow-kt:arrow-syntax:0.10.5")
implementation("io.arrow-kt:arrow-fx:0.10.5")
//retrofit
implementation("com.squareup.retrofit2:retrofit:2.6.2")
implementation("com.squareup.retrofit2:converter-moshi:2.6.2")
implementation("com.squareup.retrofit2:converter-scalars:2.6.2")
//jackson
implementation("com.fasterxml.jackson.core:jackson-core:2.11.0")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.11.0")
implementation("com.fasterxml.jackson.core:jackson-databind:2.11.0")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.11.0")
//frontend
implementation("org.thymeleaf:thymeleaf-spring5:3.0.11.RELEASE")
testImplementation("io.kotlintest:kotlintest-runner-junit5:3.1.0")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude module: "junit-vintage-engine"
}
}
appengineDeploy.dependsOn test
appengineStage.dependsOn test
test {
useJUnitPlatform()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
gretty {
servletContainer = 'jetty9' // What App Engine Flexible uses
}
appengine {
deploy { // deploy configuration
projectId = 'southern-frame-284823'
stopPreviousVersion = true // default - stop the current version
promote = true // default - & make this the current version
version = 'GCLOUD_CONFIG'
}
}