mirror of
https://github.com/aNNiMON/Own-Programming-Language-Tutorial.git
synced 2024-09-20 00:34:20 +03:00
38 lines
1018 B
Groovy
38 lines
1018 B
Groovy
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
group = 'com.annimon'
|
|
version = '2.0-SNAPSHOT'
|
|
|
|
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('generateModuleInfo', JavaExec) {
|
|
group = "documentation"
|
|
description = "Run sample program"
|
|
dependsOn classes
|
|
mainClass = 'com.annimon.ownlang.docs.ModulesInfoCreator'
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
args 'server', 'okhttp'
|
|
} |