-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
99 lines (92 loc) · 3.14 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
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
//import org.asciidoctor.gradle.jvm.AsciidoctorTask
import java.nio.charset.StandardCharsets
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
java
idea
`java-library`
alias(libs.plugins.lombok)
// alias(libs.plugins.asciidoctor.convert)
// alias(libs.plugins.asciidoctor.gems)
// alias(libs.plugins.asciidoctor.pdf)
alias(libs.plugins.spotless)
}
// In this section you declare where to find the dependencies of your project
repositories {
mavenLocal()
mavenCentral()
}
allprojects {
apply(plugin = "java")
apply(plugin = "io.freefair.lombok")
repositories {
mavenLocal()
mavenCentral()
}
version = "0.0.5-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
toolchain {
languageVersion.set(JavaLanguageVersion.of(JavaVersion.VERSION_17.majorVersion))
}
}
tasks.withType<JavaCompile> {
options.encoding = StandardCharsets.UTF_8.toString()
}
tasks.test {
useJUnitPlatform()
testLogging.showExceptions = true
testLogging {
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
showExceptions = true
showCauses = true
showStackTraces = true
}
}
}
// ascii docs, gems is using snakeyaml org.yaml:snakeyaml:1.23. For security reasons it's commented out for now.
//tasks {
// withType<AsciidoctorTask> {
// sourceDir {
// setBaseDir(file("docs"))
// }
// setOutputDir(file("build/docs"))
// baseDirFollowsSourceFile()
//
// attributes(
// mapOf(
// "build-gradle" to file("build.gradle"),
// "endpoint-url" to "http://example.org",
// "source-highlighter" to "coderay",
// "coderay-css" to "style",
// "imagesdir" to "images",
// "toc" to "left",
// "icons" to "font",
// "setanchors" to "",
// "idprefix" to "",
// "idseparator" to "-",
// "docinfo" to "shared"
// )
// )
//
// dependsOn("asciidoctorj")
// }
//}
//
//asciidoctorj {
// modules {
// diagram.use()
// diagram.setVersion("1.5.16")
// }
//}
/**
* OpenJDK 9/10 Mac issue:
* Caused by: java.lang.UnsatisfiedLinkError: /path/to/openjdk10/lib/libfontmanager.dylib: dlopen(/path/to/openjdk10/lib/libfontmanager.dylib, 1): Library not loaded: /Users/jenkins/workspace/openjdk10_build_x86-64_macos/openjdk/installedfreetype/lib/libfreetype.6.dylib
* Referenced from: /path/to/openjdk10/lib/libfontmanager.dylib
* Reason: image not found
* The solution is to install freetype via HomeBrew or MacPorts. You might also need to do something (ridiculous) such as
*
* $ sudo mkdir -p /Users/jenkins/workspace/openjdk10_build_x86-64_macos/openjdk/installedfreetype
* $ sudo ln -s /opt/local/lib /Users/jenkins/workspace/openjdk10_build_x86-64_macos/openjdk/installedfreetype/lib
*/