-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (50 loc) · 1.44 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
54
55
56
57
58
59
plugins {
id 'groovy'
id 'com.gradle.plugin-publish' version '0.9.4'
}
group = 'org.metahelicase'
version = '1.1'
repositories {
jcenter()
}
dependencies {
compile gradleApi()
compile localGroovy()
testCompile 'junit:junit:4.12'
testCompile gradleTestKit()
}
test {
systemProperty 'plugin.test.classpath', sourceSets.main.runtimeClasspath.join('\n')
}
pluginBundle {
website = 'http://site-builder.metahelicase.org'
vcsUrl = 'https://github.com/metahelicase/site-builder'
description = 'DSL for building static html pages with composable modules'
plugins {
site {
id = 'org.metahelicase.site-builder'
displayName = 'Site Builder Gradle plugin'
tags = ['static', 'site', 'html', 'builder', 'template']
version = project.version
}
}
}
groovydoc {
overview = 'src/main/groovydoc/overview.html'
windowTitle = 'Site Builder'
link 'https://docs.oracle.com/javase/8/docs/api/', 'java.'
link 'http://docs.groovy-lang.org/latest/html/gapi/', 'groovy.', 'org.codehaus.groovy.'
link 'https://docs.gradle.org/current/javadoc/', 'org.gradle.'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task groovydocJar(type: Jar, dependsOn: groovydoc) {
classifier = 'groovydoc'
from groovydoc.destinationDir
}
artifacts {
archives sourcesJar
archives groovydocJar
}