-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
133 lines (112 loc) · 3.32 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
}
}
plugins {
id "com.jfrog.bintray" version "1.2"
}
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'maven-publish'
group = 'com.bertramlabs.plugins'
version = '0.8.1'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
repositories {
jcenter()
mavenLocal()
mavenCentral()
}
configurations {
provided
}
sourceSets {
main {
compileClasspath += configurations.provided
}
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.2'
testCompile "org.spockframework:spock-core:0.7-groovy-2.0"
compile 'org.apache.httpcomponents:httpcore:4.2'
compile 'org.apache.httpcomponents:httpclient:4.2'
compile 'javax.websocket:javax.websocket-client-api:1.1'
compile 'org.glassfish.tyrus:tyrus-client:1.11'
compile 'org.glassfish.tyrus:tyrus-container-grizzly-client:1.11'
}
publishing {
publications {
maven(MavenPublication) {
artifactId 'gstomp-client'
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name 'gstomp-client'
description 'Provides a CLIENT STOMP Api for Groovy'
url 'https://github.com/bertramdev/gstomp-client'
scm {
url 'https://github.com/bertramdev/gstomp-client'
connection 'scm:https://[email protected]/bertramdev/gstomp-client.git'
developerConnection 'scm:git://github.com/bertramdev/gstomp-client.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/license/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'davydotcom'
name 'David Estes'
email '[email protected]'
}
}
}
}
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
configurations {
provided
}
//Define bintrayUser and bintrayKey in ~/.gradle/gradle.properties
bintray {
user = project.hasProperty('bintrayUser') ? bintrayUser : 'anonymous'
key = project.hasProperty('bintrayKey') ? bintrayKey : 'key here'
publications = ['maven']
pkg {
repo = 'gstomp'
userOrg = 'bertramlabs'
name = 'gstomp-client'
licenses = ['Apache-2.0']
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task(console, dependsOn: 'classes', type: JavaExec) {
main = 'groovy.ui.Console'
classpath = sourceSets.main.runtimeClasspath
}
test {
testLogging {
exceptionFormat = 'full'
showStandardStreams = true
}
}
bintrayUpload.dependsOn build, sourcesJar, javadocJar