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
Generate and publish OpenAPI YAML specification (#3121)
Wouter Born098fd8bc6b1f
diff --git a/manager/build.gradle b/manager/build.gradleindex d45d3529c..f3d8a7c2a 100644--- a/manager/build.gradle+++ b/manager/build.gradle@@ -106,7 +106,7 @@ afterEvaluate {resolve {outputFileName = 'openapi'- outputFormat = 'JSON'+ outputFormat = 'JSONANDYAML'outputDir = layout.buildDirectory.dir("openapi")prettyPrint = true@@ -161,7 +161,8 @@ java {withSourcesJar()}-def openApiFile = layout.buildDirectory.file('openapi/openapi.json')+def openApiJsonFile = layout.buildDirectory.file('openapi/openapi.json')+def openApiYamlFile = layout.buildDirectory.file('openapi/openapi.yaml')publishing {publications {@@ -170,12 +171,18 @@ publishing {artifactId = "openremote-${project.name}"from components.java- artifact(openApiFile) {+ artifact(openApiJsonFile) {classifier = 'openapi'extension = 'json'builtBy tasks.named('resolve')}+ artifact(openApiYamlFile) {+ classifier = 'openapi'+ extension = 'yaml'+ builtBy tasks.named('resolve')+ }+pom {name = 'OpenRemote Manager'description = 'Provides core container services and is the main component of the OpenRemote backend; 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'