-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (47 loc) · 1.42 KB
/
Copy pathbuild.gradle
File metadata and controls
54 lines (47 loc) · 1.42 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
plugins {
id 'java'
}
group = 'com.annimon'
version = versions.project
dependencies {
implementation project(":ownlang-core")
implementation project(":ownlang-parser")
implementation project(":ownlang-utils")
implementation project(":modules:main")
implementation project(":modules:canvasfx")
implementation project(":modules:server")
implementation "org.yaml:snakeyaml:${versions.snakeyaml}"
}
tasks.register('generateMarkdownModules') {
group = "documentation"
def ownlangExec = tasks.getByPath(':ownlang-desktop:ownlangExec')
doFirst {
ownlangExec.configure {
workingDir '../docs/src'
args '-f', 'docgen-md.own'
}
}
finalizedBy ownlangExec
}
tasks.register('runDocsDev', Exec) {
group = "documentation"
description = "Start docs dev server"
dependsOn generateMarkdownModules
workingDir '../docs/docs'
commandLine 'pnpm', 'docs:dev'
}
tasks.register('buildDocs', Exec) {
group = "documentation"
description = "Build docs to static site"
dependsOn generateMarkdownModules
workingDir '../docs/docs'
commandLine 'pnpm', 'docs:build'
}
tasks.register('generateModuleInfo', JavaExec) {
group = "documentation"
description = "Run sample program"
dependsOn classes
mainClass = 'com.annimon.ownlang.docs.ModulesInfoCreator'
classpath = sourceSets.main.runtimeClasspath
args 'server', 'okhttp'
}