source: subversion/applications/editors/josm/plugins/MicrosoftStreetside/gradle/markdown.gradle @ 34317

Last change on this file since 34317 was 34317, checked in by renerr18, 12 months ago

Initial checkin of MicrosoftStreetside? source

File size: 589 bytes
Line 
1import groovy.io.FileType
2
3task prepareMarkdown(type:Sync) {
4  from projectDir
5  //into "$buildDir/src/markdown"
6  into "$buildDir"
7  include 'LICENSE.md'
8  include 'README.md'
9}
10
11markdownToHtml {
12  dependsOn prepareMarkdown
13  sourceDir new File("$buildDir/src/markdown")
14  inputEncoding 'UTF-8'
15  outputEncoding 'UTF-8'
16  fencedCodeBlocks true
17  autoLinks true
18
19  doLast {
20    new File("$outputDir").eachFileRecurse(FileType.FILES, { file ->
21      file.text = '<!DOCTYPE html><meta charset="utf-8">' + file.text
22    })
23  }
24}
25jar.dependsOn markdownToHtml
26jar.from markdownToHtml.outputDir
Note: See TracBrowser for help on using the repository browser.