-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
67 lines (57 loc) · 1.67 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
import com.github.jrubygradle.api.core.RepositoryHandlerExtension
plugins {
id("org.asciidoctor.jvm.revealjs") version "3.3.2"
id("org.asciidoctor.jvm.gems") version "3.3.2"
id("org.kordamp.gradle.livereload") version "0.4.0"
}
repositories {
gradlePluginPortal()
// https://github.com/jruby-gradle/jruby-gradle-plugin/issues/407
this as ExtensionAware
the<RepositoryHandlerExtension>().gems()
}
buildscript {
configurations["classpath"].resolutionStrategy.eachDependency {
if (requested.group == "com.burgstaller" && requested.name == "okhttp-digest" && requested.version == "1.10") {
useTarget("io.github.rburgst:${requested.name}:1.21")
because("Dependency has moved")
}
}
}
dependencies {
dependencies {
asciidoctorGems("rubygems:asciidoctor-revealjs:4.1.0")
}
}
tasks.asciidoctorRevealJs {
baseDirFollowsSourceDir()
sourceDir("src/main/slides")
sources {
include("*.adoc")
}
setOutputDir("build/slides")
resources {
from("src/main/resources") {
include("**")
}
}
asciidoctorj {
modules {
diagram.setVersion("2.2.1")
}
}
}
tasks.liveReload {
setDocRoot(tasks.asciidoctorRevealJs.get().outputDir.absolutePath)
}
tasks.register<Exec>("concurrencyPrimitives") {
workingDir("modules/concurrency-primitives")
commandLine = listOf("./mvnw", "-B", "verify")
}
tasks.register<Exec>("voyeursInJvmLand") {
workingDir("modules/voyeurs-in-jvm-land")
commandLine = listOf("./mvnw", "-B", "verify")
}
tasks.register("buildModules") {
dependsOn("concurrencyPrimitives", "voyeursInJvmLand")
}