This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
66 lines (55 loc) · 1.59 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
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'codenarc'
group = 'com.github.mibexsoftware' // necessary for jitpack
publishing {
publications {
maven(MavenPublication) {
from components.java
groupId 'ch.mibex.bamboo.plandsl'
artifactId 'plan-dsl-lib'
version version
artifact groovydocsJar
artifact sourcesJar
}
}
}
sourceSets {
ast {
groovy {
srcDir 'src/ast/groovy'
}
resources {
srcDir 'src/ast/resources'
}
}
main.compileClasspath += sourceSets.ast.output
test.compileClasspath += sourceSets.ast.output
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task groovydocsJar(type: Jar, dependsOn: 'groovydoc') {
from project.groovydoc.destinationDir
classifier = 'groovydoc'
}
codenarc {
toolVersion = '2.1.0'
configFile = file('config/codenarc/rules.groovy')
sourceSets = [project.sourceSets.main] // currently restricted to src/main/groovy/** files
maxPriority3Violations = 1000
}
repositories {
maven {
url "https://repo.maven.apache.org/maven2/"
}
}
dependencies {
astCompile "org.codehaus.groovy:groovy-all:${groovyVersion}"
compile "org.codehaus.groovy:groovy-all:${groovyVersion}"
compile group: 'org.apache.ant', name: 'ant', version: '1.10.9'
compile group: 'org.yaml', name: 'snakeyaml', version: '1.28'
testCompile('org.spockframework:spock-core:1.0-groovy-2.4')
}