-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
executable file
·53 lines (45 loc) · 1.19 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
plugins {
id 'java'
id 'maven'
id 'maven-publish'
id "com.jfrog.bintray" version "1.8.4"
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
group = 'ch.hevs.cloudio'
version = '0.1.6'
repositories {
mavenLocal()
jcenter()
}
dependencies {
compile 'com.fasterxml.jackson.core:jackson-core:2.6.4'
compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.2'
compile 'org.slf4j:slf4j-api:1.7.13'
testCompile 'junit:junit:4.12'
}
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/cloudio-project/cloudio-endpoint-java")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GPR_USER")
password = project.findProperty("gpr.key") ?: System.getenv("GPR_API_KEY")
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}