diff --git a/.github/workflows/01-release.yml b/.github/workflows/01-release.yml new file mode 100644 index 0000000..5f52516 --- /dev/null +++ b/.github/workflows/01-release.yml @@ -0,0 +1,39 @@ +name: 01. release + +on: + push: + workflow_dispatch: + +# See: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Maven.gitlab-ci.yml +env: + MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$GITHUB_WORKSPACE/.m2/repository -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true" + MAVEN_CLI_OPTS: "--settings .m2/settings.xml --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true" + READY_API_PRODUCT_ID: 3 + +jobs: + nexus-release: + runs-on: + - ubuntu-22.04 + container: + image: ghcr.io/smartbear/readyapi-ci-images/maven:3.8-openjdk-17-slim-822ba26 + steps: + - name: Check out repository code + uses: actions/checkout@v3 + with: + # https://github.com/devops-infra/action-pull-request/issues/51 + fetch-depth: 0 + - name: Cache .m2 + uses: actions/cache@v3 + with: + path: ${GITHUB_WORKSPACE}/.m2/repository + key: v1-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: v1-${{ runner.os }}-maven- + - name: Setup ${GITHUB_WORKSPACE}/.m2/settings.xml + uses: whelk-io/maven-settings-xml-action@v20 + with: + output_file: ${GITHUB_WORKSPACE}/.m2/settings.xml + repositories: '[{ "id": "nexus", "url": "https://readyapinexus.tools.ops.smartbear.io/nexus/content/groups/Releases" }, { "id": "com.teamdev", "url": "https://europe-maven.pkg.dev/jxbrowser/releases" }]' + plugin_repositories: '[{ "id": "plugin-repository", "url": "https://readyapinexus.tools.ops.smartbear.io/nexus/content/groups/Releases" }]' + servers: '[{"id":"nexus-dev","username":"${{ secrets.NEXUS_USERNAME }}","password":"${{ secrets.NEXUS_PASSWORD }}"}]' + - name: Maven Deploy Release + run: mvn ${MAVEN_CLI_OPTS} -DskipTests -DaltDeploymentRepository=nexus-dev::default::https://readyapinexus.tools.ops.smartbear.io/nexus/content/repositories/smartbear-release -P obfuscate -P assembly --also-make clean package deploy diff --git a/pom.xml b/pom.xml index 835fac8..d083e2a 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ ReadyAPI MQTT Plugin ready-mqtt-plugin com.smartbear - 1.6.5-SNAPSHOT + 1.6.6-SNAPSHOT diff --git a/src/main/java/com/smartbear/mqttsupport/PluginConfig.java b/src/main/java/com/smartbear/mqttsupport/PluginConfig.java index a716bea..4debc28 100644 --- a/src/main/java/com/smartbear/mqttsupport/PluginConfig.java +++ b/src/main/java/com/smartbear/mqttsupport/PluginConfig.java @@ -3,7 +3,7 @@ import com.eviware.soapui.plugins.PluginAdapter; import com.eviware.soapui.plugins.PluginConfiguration; import com.eviware.soapui.support.UISupport; -@PluginConfiguration(groupId = "com.smartbear.plugins", name = "MQTT Support Plugin", version = "1.6.5-SNAPSHOT", +@PluginConfiguration(groupId = "com.smartbear.plugins", name = "MQTT Support Plugin", version = "1.6.6-SNAPSHOT", autoDetect = true, description = "Adds MQTT TestSteps to ReadyAPI", minimumReadyApiVersion = "3.9.2", infoUrl = "https://smartbear.com/plugins/mqtt-test-steps-page/") public class PluginConfig extends PluginAdapter {