forked from evokly/kafka-connect-mqtt
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
69 lines (58 loc) · 1.63 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
plugins {
id 'java'
id 'maven'
id 'maven-publish'
}
group 'com.evokly'
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId 'com.evokly'
artifactId 'kafka-connect-mqtt'
version '1.3'
}
}
}
ext {
kafkaVersion = '2.5.0'
}
processResources {
expand project.properties
}
repositories {
mavenCentral()
maven { url "https://repo.eclipse.org/content/repositories/paho-releases/" }
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile "org.apache.kafka:connect-api:$kafkaVersion"
compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.0.2'
compile 'org.bouncycastle:bcprov-jdk15on:1.54'
compile 'org.bouncycastle:bcpkix-jdk15on:1.54'
compile 'org.bouncycastle:bcpg-jdk15on:1.54'
compile 'commons-io:commons-io:2.4'
compile 'org.slf4j:slf4j-api:1.7.14'
testCompile 'org.slf4j:slf4j-simple:1.7.14'
testCompile "org.mockito:mockito-core:2.6.9"
testCompile "org.assertj:assertj-core:3.6.2"
}
task copyRuntimeLibs(type: Copy) {
into "$buildDir/output/lib"
from configurations.runtime
}
publishing.repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/SmartsquareGmbH/kafka-connect-mqtt")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("PASSWORD")
}
}
}
publishing.publications {
gpr(MavenPublication) {
from(components.java)
}
}