-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
116 lines (102 loc) · 3.22 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
buildscript {
repositories {
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'ch.raffael.markdown-doclet:markdown-doclet:1.4'
}
}
plugins {
id 'groovy'
id 'java-library'
id 'jacoco'
id 'nebula.maven-publish' version '9.5.0'
id 'nebula.javadoc-jar' version '9.5.0'
id 'nebula.source-jar' version '9.5.0'
id 'nebula.release' version '9.2.0'
id 'nebula.contacts' version '5.0.0'
id 'nebula.info' version '5.0.0'
id "com.jfrog.bintray" version "1.8.4"
id "com.github.hierynomus.license" version "0.15.0"
id 'org.ajoberstar.git-publish' version '2.0.0'
}
apply plugin: 'ch.raffael.markdown-doclet'
description 'Common library with helpers for the KlumSuite'
group 'com.blackbuild.klum.common'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
repositories {
jcenter()
}
jacoco {
toolVersion = "0.8.2"
}
configurations.testCompileOnly.extendsFrom configurations.compileOnly
dependencies {
compile "org.codehaus.groovy:groovy-all:2.4.12"
compile "com.intellij:openapi:7.0.3"
testCompile("org.spockframework:spock-core:1.1-groovy-2.4")
testRuntime "net.bytebuddy:byte-buddy:1.7.5"
testRuntime "org.objenesis:objenesis:2.6"
}
bintray {
user = findProperty('bintrayUser')
key = findProperty('bintrayApiKey')
publications = ['nebula']
dryRun = false
publish = true
pkg {
repo = 'klum-dsl'
userOrg = 'klum-dsl'
name = project.name
desc = project.description
websiteUrl = 'https://github.com/klum-dsl/klum-common'
issueTrackerUrl = 'https://github.com/klum-dsl/klum-common/issues'
vcsUrl = 'https://github.com/klum-dsl/klum-common.git'
licenses = ['MIT']
labels = ['groovy', 'ast']
publicDownloadNumbers = true
attributes = [:]
version {
name = project.version
vcsTag = project.version
attributes = [:]
gpg {
sign = true
passphrase = findProperty("signing.password")
}
mavenCentralSync {
sync = !version.toString().contains(".dev+")
user = findProperty("nexusUsername")
password = findProperty("nexusPassword")
}
}
}
}
contacts {
moniker 'Stephan Pauxberger'
github 'pauxus'
}
}
publishing {
publications {
nebula(MavenPublication) {
pom.withXml {
def p = asNode()
p.dependencies.dependency.find { it.artifactId.text() == "groovy-all" }.appendNode('optional', true)
p.dependencies.dependency.find { it.artifactId.text() == "openapi" }.appendNode('optional', true)
p.name.first().setValue('KlumCommon')
p.appendNode('licenses').appendNode('license').
appendNode('name', 'The MIT License (MIT)').parent().
appendNode('url', 'http://opensource.org/licenses/MIT')
}
}
}
}
tasks.release.dependsOn 'build'
tasks.postRelease.dependsOn 'publish'