forked from dboissier/mongo4idea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fetchIdea.sh
executable file
·29 lines (23 loc) · 925 Bytes
/
fetchIdea.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
# original file from https://github.com/go-lang-plugin-org/go-lang-idea-plugin
# thanks zolotov :)
ideaVersion='15.0.6'
ideaVersionForMaven='15.0'
rm -rf ./idea-IC
# Get our IDEA dependency
wget http://download.jetbrains.com/idea/ideaIC-${ideaVersion}.tar.gz
# Unzip IDEA
tar -xzf ideaIC-${ideaVersion}.tar.gz
rm -rf ideaIC-${ideaVersion}.tar.gz
# Move the versioned IDEA folder to a known location
ideaPath=$(find . -name 'idea-IC*' | head -n 1)
echo 'Found Intellij path:' + ${ideaPath}
mv ${ideaPath} ./idea-IC
cd ./idea-IC
# install IDEA dependencies
IDEA_HOME=$(pwd)
libs=( 'forms_rt' 'openapi' 'util' 'idea' 'resources' 'resources_en' 'swingx-core-1.6.2' 'annotations' 'extensions' 'jna' 'jdom' 'icons')
for lib in "${libs[@]}"
do
mvn install:install-file -Dfile=${IDEA_HOME}/lib/${lib}.jar -DgroupId=com.intellij -DartifactId=${lib} -Dversion=${ideaVersionForMaven} -Dpackaging=jar
done