-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
55 lines (46 loc) · 1.61 KB
/
build.gradle.kts
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
plugins {
id("org.springframework.boot") version "2.6.1"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("com.heroku.sdk.heroku-gradle") version "2.0.0"
java
}
group = "org.headcrab"
version = "1.6"
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
val springVersion: String = "2.6.1"
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa:$springVersion")
implementation("org.springframework.boot:spring-boot-starter-security:$springVersion")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf:$springVersion")
implementation("org.springframework.boot:spring-boot-starter-web:$springVersion")
implementation("org.springframework.boot:spring-boot-starter-validation:$springVersion")
implementation("org.thymeleaf.extras:thymeleaf-extras-springsecurity5:3.0.4.RELEASE")
compileOnly("org.projectlombok:lombok:1.18.22")
runtimeOnly("org.postgresql:postgresql:42.3.1")
annotationProcessor("org.projectlombok:lombok:1.18.22")
testImplementation("org.springframework.boot:spring-boot-starter-test:$springVersion")
testImplementation("org.springframework.security:spring-security-test:5.5.1")
}
tasks.withType<Test> {
useJUnitPlatform()
}
val filePath: String = "build/libs/web-$version.jar"
heroku {
appName = "headcrab"
jdkVersion = "11"
includes = listOf(filePath)
isIncludeBuildDir = false
processTypes = mapOf("web" to "java \$JAVA_OPTS -Dserver.port=\$PORT -jar $filePath")
}
tasks.processResources {
filesMatching("application.yml") {
expand(project.properties)
}
}