-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
84 lines (66 loc) · 1.8 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.4"
}
}
plugins {
id 'groovy'
id 'idea'
id 'maven'
id 'com.jfrog.artifactory' version '3.1.1'
id 'jacoco'
}
apply plugin: "com.gradle.plugin-publish"
def versionNumber = '0.2'
pluginBundle {
website = 'http://www.github.com/datastax-training'
vcsUrl = 'http://www.github.com/datastax-training/curriculum-plugin'
description = 'A plugin for building DataStax Asciidoctor curriculum'
plugins {
curriculumPlugin {
id = 'com.datastax.gradle.curriculum.plugin'
displayName = 'DataStax curriculum plugin'
tags = ['curriculum', 'asciidoc', 'training', 'deckjs']
version = versionNumber
}
}
}
version = versionNumber
group = 'com.datastax'
def artifact = 'gradle-curriculum-plugin'
repositories {
jcenter()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.4'
compile gradleApi()
compile 'com.github.houbie:lesscss-gradle-plugin:1.0.3-less-1.7.0'
compile 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.3'
//compile 'com.bluepapa32:gradle-watch-plugin:0.1.5'
runtime 'org.asciidoctor:asciidoctorj-groovy-dsl:1.0.0.preview2'
runtime 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.8'
testCompile 'junit:junit:4.12'
}
jar {
baseName = artifact
}
task wrapper(type: Wrapper) {
gradleVersion = '2.12'
}
task sourceJar(type: Jar) {
description = 'An archive of the source code for Maven Central'
baseName = artifact
classifier = 'sources'
from sourceSets.main.groovy
}
task groovydocJar(type: Jar, dependsOn: groovydoc) {
description = 'An archive of the GroovyDocs for Maven Central'
baseName = artifact
classifier = 'javadoc'
from fileTree(groovydoc.destinationDir)
}