-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
116 lines (103 loc) · 2.96 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 {
jcenter()
}
dependencies {
classpath group: 'org.whitesource', name: 'whitesource-gradle-plugin', version: '0.8'
}
}
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '2.0.1'
id 'maven'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.8.4'
}
apply plugin: 'whitesource'
group "${theGroup}"
version "${theVersion}"
description = 'Official Auklet SDK for Java and other JVM languages.'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
jcenter()
}
dependencies {
compile "org.apache.httpcomponents:httpclient:4.5.5"
compile 'org.json:json:20180813'
compile "org.msgpack:jackson-dataformat-msgpack:0.8.16"
compile "org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0"
compile "com.github.purejavacomm:purejavacomm:1.0.1.RELEASE"
compile "org.slf4j:slf4j-api:1.7.25"
testCompile "org.slf4j:slf4j-simple:1.7.25"
}
test {
testLogging.showStandardStreams = true
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
jar {
manifest {
attributes(
'Built-By': 'CircleCI',
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
'Implementation-Version': version,
'Implementation-Title': project.name,
)
}
}
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
scm {
url "https://github.com/aukletio/Auklet-Agent-Java"
}
}
publishing {
publications {
AukletJavaAgent(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId "${theGroup}"
artifactId "${theName}"
version "${theVersion}"
pom.withXml {
def root = asNode()
root.appendNode('description', "${description}")
root.appendNode('name', 'Auklet Java Agent')
root.appendNode('url', 'https://auklet.io')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_API_KEY')
publications = ['AukletJavaAgent']
publish = true
pkg {
userOrg = 'aukletio'
repo = 'agent-java'
name = "${theName}"
desc = "${description}"
websiteUrl = 'https://github.com/aukletio/Auklet-Agent-Java'
issueTrackerUrl = 'https://github.com/aukletio/Auklet-Agent-Java/issues'
vcsUrl = 'https://github.com/aukletio/Auklet-Agent-Java.git'
licenses = ['Apache-2.0']
publicDownloadNumbers = true
}
}