forked from openremote/openremote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
113 lines (94 loc) · 3.72 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
apply plugin: "java-library"
apply plugin: "groovy"
apply plugin: "maven-publish"
apply plugin: "signing"
dependencies {
api resolveProject(":container")
api "io.netty:netty-codec:$nettyVersion"
api "io.netty:netty-codec-http:$nettyVersion"
api "com.fazecast:jSerialComm:$jSerialCommVersion"
api("com.github.calimero:calimero-core:$calimeroVersion") {
// Libraries should not depend on a logging implementation and/or alpha versions!
exclude group: "org.slf4j"
}
api ("com.github.calimero:calimero-tools:$calimeroVersion") {
// Libraries should not depend on a logging implementation and/or alpha versions!
exclude group: "org.slf4j"
}
api "net.sf.saxon:Saxon-HE:$saxonHEVersion"
//IKEA Tradfri agent dependencies
api "org.eclipse.californium:californium-core:$californiumCoreVersion"
api "org.eclipse.californium:scandium:$californiumScandiumVersion"
api("org.openremote:or-zwave:$zwaveVersion") {
exclude group: "org.bidib.com.neuronrobotics"
}
api "com.hivemq:hivemq-mqtt-client:$hiveMQClientVersion"
api ("com.github.weliem:blessed-bluez:$bluetoothVersion") {
// Libraries should not depend on a logging implementation and/or alpha versions!
exclude group: "org.slf4j"
// Conflicts with asm version bundled with GWT
exclude group: "org.ow2.asm"
}
implementation "dev.failsafe:failsafe:$failsafeVersion"
}
jar {
archivesBaseName = "openremote-${project.name}"
}
javadoc {
failOnError = false
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
maven(MavenPublication) {
group = "io.openremote"
artifactId = "openremote-${project.name}"
from components.java
pom {
name = 'OpenRemote Agent'
description = 'Provides agent SPI and built in agents; add maven {url "https://repo.osgeo.org/repository/release/"} and maven {url "https://pkgs.dev.azure.com/OpenRemote/OpenRemote/_packaging/OpenRemote/maven/v1"} to resolve all dependencies'
url = 'https://github.com/openremote/openremote'
licenses {
license {
name = 'GNU Affero General Public License v3.0'
url = 'https://www.gnu.org/licenses/agpl-3.0.en.html'
}
}
developers {
developer {
id = 'developers'
name = 'Developers'
email = 'developers@openremote.io'
organization = 'OpenRemote'
organizationUrl = 'https://openremote.io'
}
}
scm {
connection = 'scm:git:git://github.com/openremote/openremote.git'
developerConnection = 'scm:git:ssh://github.com:openremote/openremote.git'
url = 'https://github.com/openremote/openremote/tree/master'
}
}
}
}
repositories {
maven {
if (!version.endsWith('-LOCAL')) {
credentials {
username findProperty("publishUsername")
password findProperty("publishPassword")
}
}
url = version.endsWith('-LOCAL') ? layout.buildDirectory.dir('repo') : version.endsWith('-SNAPSHOT') ? findProperty("snapshotsRepoUrl") : findProperty("releasesRepoUrl")
}
}
}
signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.maven
}