diff --git a/DEVELOPING.md b/DEVELOPING.md index e65cb035c..a9a3e928c 100644 --- a/DEVELOPING.md +++ b/DEVELOPING.md @@ -17,13 +17,15 @@ This extension is built using the [gradle-intellij-plugin](https://github.com/JetBrains/gradle-intellij-plugin/). 1. Clone this repository: `git clone git@github.com:OpenLiberty/liberty-tools-intellij.git` -2. Clone the lsp4ij repository: `git clone git@github.ibm.com:liberty-dev-ex/intellij-lsp-common-provider.git` +2. Clone the lsp4ij repository: `git clone git@github.com:MicroShed/lsp4ij.git` +3. Build lsp4ij: `./gradlew jar` +4. Save it in your local Maven repository: `mvn install:install-file -Dfile=build/libs/lsp4ij-0.0.5.jar -DgroupId=org.microshed -DartifactId=lsp4ij -Dversion=0.0.5 -Dpackaging=jar -DgeneratePom=true;` 2. Import this repository as a Gradle project in IntelliJ IDEA 3. Run `./gradlew runIde --stacktrace`. A new IntelliJ IDEA window will launch with the Liberty Tools plugin installed to it. You can connect the IntelliJ IDEA debugger to this process to debug the plugin. OR - Run `./makeDualZip` to build an installable zip in `build/distributions/liberty-tools-intellij-xxx.uber.zip`. You can install this zip in IntelliJ IDEA through **Preferences > Plugins > Gear icon > Install Plugin from Disk...** and select the `liberty-tools-intellij-xxx.uber.zip`. + Run `./gradlew buildPlugin` to build an installable zip in `build/distributions/liberty-tools-intellij-xxx.zip`. You can install this zip in IntelliJ IDEA through **Preferences > Plugins > Gear icon > Install Plugin from Disk...** and select the `liberty-tools-intellij-xxx.zip`. ## Language Servers diff --git a/makeDualZip b/makeDualZip deleted file mode 100755 index c82e127fc..000000000 --- a/makeDualZip +++ /dev/null @@ -1,26 +0,0 @@ -# Must start in the liberty-tools-intellij directory -# The lsp4ij source must be cloned in the same parent directory. -export LSP4IJ_DIR=intellij-lsp-common-provider/lsp4ij -export TMP_DIR=p -export LT_INTELLIJ_ZIP=liberty-tools-intellij-23.0.7-SNAPSHOT.zip -export LT_INTELLIJ_UBER_ZIP=$LT_INTELLIJ_ZIP.uber.zip # yes two zips -export LSP4IJ_ZIP=lsp4ij-0.0.4.zip -export JETBRAINS_DIST_DIR=build/distributions - -# Run the other build and return to this directory -(cd ../$LSP4IJ_DIR && gradle clean buildPlugin) - -# Build the main plugin. -gradle clean buildPlugin - -# Clean up -[ ! -d $TMP_DIR ] && mkdir $TMP_DIR -rm -rf $TMP_DIR/* -cd $TMP_DIR - -# Parent directory is liberty-tools-intellij directory -unzip ../$JETBRAINS_DIST_DIR/$LT_INTELLIJ_ZIP -# Intermingle files -unzip ../../$LSP4IJ_DIR/$JETBRAINS_DIST_DIR/$LSP4IJ_ZIP -zip -r $LT_INTELLIJ_UBER_ZIP liberty-tools-intellij lsp4ij -cp $LT_INTELLIJ_UBER_ZIP ../$JETBRAINS_DIST_DIR