An open API service indexing awesome lists of open source software.

https://github.com/ls1intum/orion

Plugin integrating Artemis programming exercises into IntelliJ
https://github.com/ls1intum/orion

artemis intellij interactive-learning

Last synced: 8 months ago
JSON representation

Plugin integrating Artemis programming exercises into IntelliJ

Awesome Lists containing this project

README

          

# Orion IntelliJ Plugin

## Deprecated and no longer maintained. The plugin does not work with the current Artemis or JetBrains IDE versions.
In the future we will provide a VSCode extension for Artemis.

Open Artemis IDE plugin for the programming exercise integration.
This plugin integrates the [Artemis](https://github.com/ls1intum/Artemis) interactive learning platform into a JetBrains IDE.
It allows you to directly import programming exercises from Artemis and submit your changes to the build servers.

Detailed documentation is integrated into [Artemis' documentation](https://ls1intum.github.io/Artemis/).

**Current Version:**
![GitHub release (latest by date)](https://img.shields.io/github/v/release/ls1intum/Orion)

## Example Usage
![](.github/media/orion_workflow.gif)

## Manual Installation

Download the release from [here](https://github.com/ls1intum/Orion/releases) and install it as described [further down in this document](https://github.com/ls1intum/Orion#install-release-zip).

## Development
![Orion Deployment diagram](https://github.com/Kroko-fant/Orion/assets/25010075/ec7aafe8-d8ca-4c10-902f-d2f85f981368)

UI Elements within the Orion tool window are provided

### Run/Debug the Plugin

- Import as gradle project
- Select the JDK `>17` as the project SDK with language level 17
- Run Gradle task: `runIde`. This will open a new IntelliJ window with the plugin installed.

### Perform Version Upgrade

Upon release of a new major version from JetBrains, the plugin needs updated dependencies to support the latest version. This upgrade can often also be performed with little knowledge of the codebase. The following outlines the necessary steps:
1. If you do not have write access to the GitHub repository, fork the repository and clone it
2. Make sure you are able to run the plugin locally as described above
3. Adapt the versions in the gradle properties file [gradle.properties](https://github.com/ls1intum/Orion/blob/main/gradle.properties).
1. At `platformVersion`, change the version property to the latest version. This is the IntelliJ version used for "runIde".
2. Change `pluginSinceBuild` and `pluginUntilBuild` property accordingly. A comment explains the format there.
4. Adapt the versions in the build configuration file [build.gradle.kts](https://github.com/ls1intum/Orion/blob/main/build.gradle.kts)
1. Adapt the version numbers of all versioned plugins at `intellij`→`plugins`. You can look up each plugin in the IntelliJ marketplace and find the latest compatible version there.
2. Optionally upgrade the versions of the dependencies at `plugins` and `dependencies`, however, this is usually unnecessary.
5. Run the project locally with runIde or buildPlugin. If compilation errors happen, try to resolve them; on version changes, IntelliJ sometimes deprecates APIs or moves packages. Fixing these errors requires looking into and changing the code. A helpful resource is the [documentation of the IntelliJ Platform SDK](https://plugins.jetbrains.com/docs/intellij/welcome.html).
6. When the plugin runs locally, create a pull request with your changes. Also, consider notifying a maintainer of Orion or Artemis to make sure your pull request gets noticed.

### Testing of Pull Requests

1. #### Download Release (.zip)

Download the release file from the pull request's _Checks_ → _Artifacts_ → _orion_

The artifact is unavailable during building. The full history of artifacts can be retrieved through the _Actions_ tab
![](.github/media/download_release.png)

2. #### Install Release (.zip)

Install the release file in IntelliJ at _Settings_ → _Plugins_ → _Settings_ → _Install Plugin from Disk..._ → Select the file
![](.github/media/install_release.png)

Installation process as gif

![](.github/media/orion_installation.gif)

## Publish a new Release

**Before you release any new version, make sure that all version properties in the repository are updated
(`version` in `build.gradle.kts`) and the changelog contains the relevant version information (also in `build.gradle.kts`)**

Follow the steps outlined here:

![](.github/media/home_to_release.png)

1. Go to the GitHub "_Releases_" in the Orion repository
2. Click on "_Draft a new release_"

![](.github/media/releases_list.png)

3. Choose as a tag the new version number to release (e.g. tag version `v1.5.0` releases the version `1.5.0`)
4. Let the release notes be auto-generated by clicking `Generate release notes`

![](.github/media/create_release.png)

5. An admin now has to review and accept the new release
6. After the release is approved, GitHub will automatically build and upload the artifact as well as publish the new version to the marketplace.

The latest plugin artifact is now available on GitHub and via the JetBrains marketplace.

**It might take some time for the latest version to be seen on the marketplace since JetBrains still has to review
and approve the changes!**

![](.github/media/release.gif)

### Release Process Implementation

**How can I modify the pipeline?**

The release pipeline is implemented using GitHub actions. To change anything about the process, you just
have to edit the `release.yml` in the `.github/workflows` directory.

**Where can I find secrets like the authentication token for the JetBrains repository?**

Admins of the GitHub repository can modify the build environment under _Settings -> Environments -> prod_. This includes

adding and updating any secrets that should get injected into the environment during the build process.

## Feedback? Questions?
Email: krusche(at)tum(dot)de