-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
61 lines (49 loc) · 1.24 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
plugins {
id 'groovy'
id 'java-gradle-plugin'
}
group = 'com.github.jeysal'
version = ['git', 'describe', '--tags'].execute([], projectDir).inputStream.text.trim()
sourceCompatibility = 1.8
targetCompatibility = 1.8
gradlePlugin {
plugins {
graphviz {
id = 'com.github.jeysal.graphviz'
implementationClass = 'com.github.jeysal.gradle.plugin.graphviz.GraphvizPlugin'
}
}
}
// Dependencies
repositories {
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
// Node
implementation 'com.github.node-gradle:gradle-node-plugin:2.2.4'
implementation 'org.asciidoctor:asciidoctor-gradle-jvm:3.3.2'
// Test
testImplementation('org.spockframework:spock-core:2.2-groovy-3.0') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
}
// Test
test {
useJUnitPlatform()
}
// Artifacts
task sourceJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
group = classes.group
from sourceSets.main.allSource
}
task groovydocJar(type: Jar, dependsOn: groovydoc) {
classifier = 'groovydoc'
group = groovydoc.group
from groovydoc.destinationDir
}
artifacts {
archives sourceJar
archives groovydocJar
}