-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (51 loc) · 1.69 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
plugins {
id "com.jfrog.bintray" version "1.7.1"
}
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'groovy'
repositories {
mavenCentral()
jcenter()
}
group = 'de.stroeerdigitalpublishing'
version = '1.0.' + (project.hasProperty('buildNumber') ? project.property('buildNumber') : 'Latest')
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.11'
// https://mvnrepository.com/artifact/commons-httpclient/commons-httpclient
compile group: 'commons-httpclient', name: 'commons-httpclient', version: '3.1'
}
publishing {
publications {
BintrayPublication(MavenPublication) {
from components.java
groupId 'de.stroeerdigitalpublishing'
artifactId 'jenkins-pipeline-utils'
version '1.0.' + (project.hasProperty('buildNumber') ? project.property('buildNumber') : 'Latest')
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
configurations = ['archives']
publish = project.hasProperty('bintrayPublish')? project.property('bintrayPublish').toBoolean() : false
override = true
publications = ['BintrayPublication']
pkg {
repo = 'maven'
name = 'jenkins-pipeline-utils'
userOrg = 'stroeerdigitalpublishing'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/stroeerdigitalpublishing/jenkins-pipeline-utils.git'
version {
name = '1.0-Alpha'
desc = 'Jenkins Public Util Library'
attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}