Skip to content

Commit

Permalink
Merge pull request #1 from JetBrains-Research/plugin-dev
Browse files Browse the repository at this point in the history
Base plugin version
  • Loading branch information
diffitask authored Oct 30, 2023
2 parents 5871995 + f7b943e commit b3816ef
Show file tree
Hide file tree
Showing 49 changed files with 1,570 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions ide-former-plugin/.github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Gradle Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Set up JDK 17
uses: actions/[email protected]
with:
java-version: 17
distribution: liberica
- name: Gradle Wrapper Validation
uses: gradle/[email protected]
- uses: gradle/[email protected]
with:
arguments: build --stacktrace
29 changes: 29 additions & 0 deletions ide-former-plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
å### IntelliJ IDEA ###
out/
!**/src/main/**/out/
!**/src/test/**/out/

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
5 changes: 5 additions & 0 deletions ide-former-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- Keep a Changelog guide -> https://keepachangelog.com -->

# IDE-Assistant-plugin Changelog

## [Unreleased]
11 changes: 11 additions & 0 deletions ide-former-plugin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# IDE-former plugin

![Build](https://github.com/JetBrains-Research/ideformer-plugin/workflows/Build/badge.svg)

<!-- Plugin description -->
Ide-former plugin
<!-- Plugin description end -->

### Run plugin in a headless mode

Run `./runPluginStarter.sh <absolute path to the project> <server host> <server port>` command from the root of the project.
51 changes: 51 additions & 0 deletions ide-former-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
group = "org.jetbrains.research.IdeAssistantPlugin"
version = "1.0"

fun properties(key: String) = project.findProperty(key).toString()

plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.jetbrains.intellij)
alias(libs.plugins.ktor)
}

allprojects {
apply {
plugin(rootProject.libs.plugins.kotlin.jvm.get().pluginId)
plugin(rootProject.libs.plugins.jetbrains.intellij.get().pluginId)
plugin(rootProject.libs.plugins.ktor.get().pluginId)
}

repositories {
mavenCentral()
maven("https://packages.jetbrains.team/maven/p/big-code/bigcode")
maven("https://packages.jetbrains.team/maven/p/ki/maven")
}

// Configure Gradle IntelliJ Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
version.set(properties("platformVersion"))
type.set(properties("platformType"))
downloadSources.set(properties("platformDownloadSources").toBoolean())
updateSinceUntilBuild.set(true)
plugins.set(properties("platformPlugins").split(',').map(String::trim).filter(String::isNotEmpty))
}

val jvmVersion = "17"

tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = jvmVersion
}
}

withType<JavaCompile> {
sourceCompatibility = jvmVersion
targetCompatibility = jvmVersion
}

withType<org.jetbrains.intellij.tasks.BuildSearchableOptionsTask>()
.forEach { it.enabled = false }
}
}
27 changes: 27 additions & 0 deletions ide-former-plugin/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# IntelliJ Platform Artifacts Repositories -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html

pluginGroup = com.ideformer
pluginName = IDEformer-plugin
pluginRepositoryUrl = https://github.com/JetBrains-Research/ideformer-plugin

# SemVer format -> https://semver.org
pluginVersion = 0.0.2

# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 231
pluginUntilBuild = 232.*

# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
platformType = IC
platformVersion = 2023.2

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins = com.intellij.java, org.jetbrains.kotlin

# Gradle Releases -> https://github.com/gradle/gradle/releases
gradleVersion = 8.3

# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
# suppress inspection "UnusedProperty"
kotlin.stdlib.default.dependency = false
21 changes: 21 additions & 0 deletions ide-former-plugin/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[versions]
kotlin = "1.9.10"
intellij = "1.15.0"
ktor = "2.3.3"
ajalt = "2.8.0"
slf4j = "2.0.9"
gson = "2.10.1"
plugin-utilities = "2.0.6"

[libraries]
ktor-server-core = { module = "io.ktor:ktor-server-core", version.ref = "ktor" }
ktor-server-netty = { module = "io.ktor:ktor-server-netty", version.ref = "ktor" }
ajalt-clikt = { module = "com.github.ajalt:clikt", version.ref = "ajalt" }
slf4j-simple = { module = "org.slf4j:slf4j-simple", version.ref = "slf4j" }
gson = { module = "com.google.code.gson:gson", version.ref = "gson" }
plugin-utilities-core = { module = "org.jetbrains.research:plugin-utilities-core", version.ref = "plugin-utilities" }

[plugins]
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
jetbrains-intellij = { id = "org.jetbrains.intellij", version.ref = "intellij" }
ktor = { id = "io.ktor.plugin", version.ref = "ktor" }
Binary file not shown.
6 changes: 6 additions & 0 deletions ide-former-plugin/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit b3816ef

Please sign in to comment.