forked from k8p/dita-ot-markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (48 loc) · 1.53 KB
/
build.gradle
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
apply plugin: "java"
apply plugin: "maven"
sourceCompatibility = 1.7
targetCompatibility = 1.7
group = 'com.elovirta.dita'
version = "1.1.0"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile group: "org.dita-ot", name: "dost", version: "[2.1,)"
compile group: "org.pegdown", name: "pegdown", version: "1.4.2"
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
}
task dist(type: Zip) {
from configurations.runtime.allArtifacts.files
from configurations.runtime
from "src/main"
include { details -> details.file.name.contains('markdown') }
include { details -> details.file.name.contains('pegdown') }
include { details -> details.file.name.contains('asm-') }
include { details -> details.file.name.contains('parboiled-') }
from("src/main") {
include "plugin.xml"
expand(id: "${project.group}.${project.name}", version: project.version)
}
from("src/main") {
include "build_template.xml"
include "conductor.xml"
// Template generated files
exclude "build.xml"
}
from("src/main/resources") {
include "*.xsl"
exclude "specialize.xsl"
// Template generated files
exclude "dita2markdown.xsl"
exclude "map2markdown-cover.xsl"
rename '(.*)', 'xsl/$1'
}
from(".") {
include "LICENSE"
exclude "*.iml"
}
archiveName "${project.group}.${project.name}_${project.version}.zip"
}