-
Notifications
You must be signed in to change notification settings - Fork 412
/
build.gradle
48 lines (43 loc) · 1.58 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
plugins {
id 'java'
id 'groovy'
}
group 'info.picocli'
description 'Picocli Groovy - easily use picocli in Groovy scripts.'
version "$projectVersion"
ext.moduleName = 'info.picocli.groovy'
configurations {
ivy
}
dependencies {
api rootProject
compileOnly supportDependencies.groovy
ivy supportDependencies.ivy // for Gradle
}
tasks.withType(GroovyCompile) {
// this, and the `configurations {ivy}` section, are a workaround for the dreaded
// java.lang.NoClassDefFoundError: org/apache/ivy/core/report/ResolveReport
// that occurs when trying to compile a groovy script containing a @Grab annotation in gradle.
// see https://stackoverflow.com/questions/18173908/error-compiling-a-groovy-project-using-grab-annotation
groovyClasspath += configurations.ivy
}
javadoc.options.links += [
'http://docs.groovy-lang.org/2.4.9/html/gapi'
]
//javadoc.options.linksOffline 'http://docs.groovy-lang.org/2.4.9/html/gapi', 'gradle/javadocs/jdk/9/'
jar {
manifest {
attributes 'Specification-Title' : 'Picocli Groovy',
'Specification-Vendor' : 'Remko Popma',
'Specification-Version' : archiveVersion.get(),
'Implementation-Title' : 'Picocli Groovy',
'Implementation-Vendor' : 'Remko Popma',
'Implementation-Version': archiveVersion.get()
}
}
ext {
PUBLISH_GROUP_ID = group
PUBLISH_ARTIFACT_ID = project.name
PUBLISH_VERSION = "$projectVersion"
}
apply from: "${rootProject.projectDir}/gradle/publish-mavencentral.gradle"