-
Notifications
You must be signed in to change notification settings - Fork 53
/
build.gradle.kts
43 lines (39 loc) · 1.27 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
val developerId: String by project
val developerName: String by project
val developerUrl: String by project
val releaseArtifact: String by project
val releaseDescription: String by project
val releaseUrl: String by project
plugins {
alias(libs.plugins.pages)
alias(libs.plugins.git.publish)
}
pages {
contents.index(rootDir.resolve("README.md"))
styles.add("https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css")
scripts.addAll(
"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js",
"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-groovy.min.js",
"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-java.min.js",
)
cayman {
darkTheme()
primaryColor = "#d0bcff"
secondaryColor = "#6750a4"
authorName = developerName
authorUrl = developerUrl
projectName = releaseArtifact
projectDescription = releaseDescription
projectUrl = releaseUrl
}
}
gitPublish {
repoUri.set("git@github.com:$developerId/$releaseArtifact.git")
branch.set("gh-pages")
contents.from(pages.outputDirectory)
}
tasks {
register(LifecycleBasePlugin.CLEAN_TASK_NAME) {
delete(layout.buildDirectory)
}
}