-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
76 lines (66 loc) · 2.67 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
76 lines (66 loc) · 2.67 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
plugins {
java
id("org.springframework.boot") version "4.0.6"
id("io.spring.dependency-management") version "1.1.7"
id("org.hibernate.orm") version "7.2.12.Final"
id("org.asciidoctor.jvm.convert") version "4.0.5"
}
group = "org.cassidylabs"
version = "0.0.1-SNAPSHOT"
description = "marginalia"
// Per-machine build directory override.
// On Windows, the JVM launcher reads @file arguments using the system ANSI code page
// (CP949 on Korean Windows), which corrupts UTF-8 paths and breaks the test classloader.
// Machines where the project path contains non-ASCII characters must set this property
// in ~/.gradle/gradle.properties — never commit that value here.
// marginalia.buildDir=C:/builds/marginalia
(findProperty("marginalia.buildDir") as String?)?.let {
layout.buildDirectory.set(file(it))
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
}
extra["snippetsDir"] = layout.buildDirectory.dir("generated-snippets").get().asFile
dependencies {
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-webmvc")
implementation("org.flywaydb:flyway-core")
implementation("org.flywaydb:flyway-database-postgresql")
implementation("io.jsonwebtoken:jjwt-api:0.12.6")
compileOnly("org.projectlombok:lombok")
runtimeOnly("org.postgresql:postgresql")
runtimeOnly("io.jsonwebtoken:jjwt-impl:0.12.6")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:0.12.6")
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-actuator-test")
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa-test")
testImplementation("org.springframework.boot:spring-boot-starter-restdocs")
testImplementation("org.springframework.boot:spring-boot-starter-security-test")
testImplementation("org.springframework.boot:spring-boot-starter-webmvc-test")
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
testCompileOnly("org.projectlombok:lombok")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testAnnotationProcessor("org.projectlombok:lombok")
}
hibernate {
enhancement {
enableAssociationManagement = true
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.test {
outputs.dir(project.extra["snippetsDir"]!!)
}
tasks.asciidoctor {
inputs.dir(project.extra["snippetsDir"]!!)
dependsOn(tasks.test)
}