100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
plugins {
id 'java-library'
id 'groovy'
id 'maven-publish'
id 'signing'
alias libs.plugins.testLogger
}
dependencies {
testImplementation rootProject.project(":setup").sourceSets.integration.output
api project(":manager")
implementation libs.groovyAll
implementation libs.groovyTest
api platform(libs.spockBom)
api libs.spockCore
// optional dependencies for using Spock
testImplementation libs.byteBuddy // allows mocking of classes (in addition to interfaces)
testImplementation libs.byteBuddyAgent // for runtime class redefinition
testRuntimeOnly libs.objenesis // allows mocking of classes without default constructor (together with ByteBuddy or CGLIB)
testImplementation(libs.calimeroServer) {
// Has a dependency on the SLF4J simple provider
exclude group: "org.slf4j"
}
testImplementation libs.firebaseAdmin
testImplementation libs.suncalc
testImplementation libs.greenmail
testImplementation libs.failsafe
testImplementation libs.niftyModbusTcp
testImplementation libs.niftyModbusRtuJsc
testImplementation libs.niftyModbusApi
testImplementation libs.niftyModbusCore
testImplementation libs.moquette
testImplementation libs.hiveMqttClient
testImplementation libs.grpcNettyShaded
testImplementation libs.grpcProtobuf
testImplementation libs.grpcStub
testImplementation libs.bouncycastleBcpkixJdk18on
}
tasks.withType(Test) {
environment("OR_LOGGING_CONFIG_FILE", "logging-dev.properties")
}
test {}
javadoc {
failOnError = false
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
maven(MavenPublication) {
group = "io.openremote"
artifactId = "openremote-${project.name}"
from components.java
pom {
name = 'OpenRemote Test Fixtures'
description = 'Provides test fixtures for writing backend integration tests; 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/core'
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 = '[email protected]'
organization = 'OpenRemote'
organizationUrl = 'https://openremote.io'
}
}
scm {
connection = 'scm:git:git://github.com/openremote/core.git'
developerConnection = 'scm:git:ssh://github.com:openremote/core.git'
url = 'https://github.com/openremote/core/tree/main'
}
}
}
}
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")
if (signingKey && signingPassword) {
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.maven
}
}