-
Notifications
You must be signed in to change notification settings - Fork 1
Build deploy documentation
This document provides step-by-step instructions for building and deploying/publishing our Kotlin based IntelliJ plugin using Gradle as a build tool.
The scope of this document covers the entire process from cloning the repository to publishing the plugin to the marketplace.
Ensure the following software is installed on your machine:
git clone <repository-url>
cd amos2023ws02-pitest-ide-plugin/pitmutationmate
./gradlew build
./gradlew test
To deploy the plugin to the JetBrains Marketplace, you need to supply the Personal Access Token, which you can find on this project's JetBrains account. The account details can be requested from the members of the project. Once you have the token, set the following environment variable:
export PUBLISH_TOKEN=<your_token>
and publish the plugin via the gradle task:
cd amos2023ws02-pitest-ide-plugin/pitmutationmate
./gradlew publishPlugin
Please check JetBrains Publishing a Plugin documentation for more information and other ways of publishing the plugin.
Our IntelliJ plugin relies on two Gradle plugins which are also part of this project and can be found in amos2023ws02-pitest-ide-plugin/pitmutationmate-override-plugin
and amos2023ws02-pitest-ide-plugin/coverage-reporter
. To publish these Gradle plugins, you will need a key and secret, which can be found in the the project's Gradle account. Account information can be requested from the members of the team. Once these have been retrieved, the Gradle plugin can be published via the gradle task:
cd <gradle plugin directory>
./gradlew publishPlugins -Pgradle.publish.key=<key> -Pgradle.publish.secret=<secret>
Please check Gradle's Publishing Plugins documentation for more informations.
If the build fails, check the error messages and resolve any missing dependencies or configuration issues.
- If the override or the coverage-reporter plugin were changed run the gradle task
publishToMavenLocal
. - File/Repair IDE (you can do this for the sandbox-ide and the one you have installed locally)
- File/Invalidate Caches (you can do this for the sandbox-ide and the one you have installed locally)
- Delete all build, .gradle and .idea folders. (Also in the projects that you open with the sandbox-ide)
- Delete the ~/.gradle/caches folder.
- Check for updates in your IDEA and install them
- Install the Android plugin in the sandbox-ide (for testing android projects)