There are no Eclipse metadata files (.classpath, .project, .settings, META-INF/MANIFEST.MF) in GIT:
- Avoiding duplicate information (e.g., dependencies should be specified only once)
- Avoiding platform-specific files (e.g., .classpath)
- Avoiding problems with re-generated files were the contents are syntactically different but logically equivalent
-
Install Eclipse Neon.3 from: https://www.eclipse.org/downloads/packages/eclipse-ide-eclipse-committers/neon3
If you have installed Eclipse before or elsewhere, there will probably be an "Import wizard" to import previously-installed features.
Click Cancel.
-
Add the Xtext update site: http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/
-
Install
- Modeling / CDO Model Repository SDK 4.5.0
- Modeling / Ecore Diagram ditor (SDK) 3.2.1
- Xtext / Xtext Complete SDK 2.11
- Xtext / Xtend IDE 2.11
- Add the Scala IDE update site: http://download.scala-ide.org/sdk/lithium/e46/scala212/dev/site
- Install everything from the Scala IDE
- Install Scala 2.11 (on mac: brew install scala@2.11)
- ln -s /usr/local/Cellar/scala@2.11/2.11.8_1 scala2.11
- In Eclipse preferences, set the location for Scala 2.11
- In Eclipse preferences, set a Java classpath variable: GRADLE_HOME = ~/.gradle
All the Eclipse-related metadata files are included in GIT (.project, .classpath, META-INF/MANIFEST.MF, ...)
./gradlew clean cleanEclipse
./gradlew build
Sometimes, build
fails because :gov.nasa.jpl.imce.oml.model:generateXtext
fails to resolve the *.xcore files.
The following usually suffices to avoid this problem:
./gradlew :gov.nasa.jpl.imce.oml.model:generateXtext
./gradlew build
./gradlew :<subproject>:<task> :<subproject>:taskTree
-
New > Project from existing sources...
-
Choose the
gradle
import model -
Select the option:
Use default gradle wrapper (recommended)
Note that this project's gradle configuration does not include support for working on the scala sub-projects:
To work on these, import these sub-projects as separate Intellij SBT projects.
Import each project in Intellij as an SBT-based project.
-
Define a
GRADLE_HOME
Eclipse Classpath variableThis variable can be defined in Eclipse' preferences in
Java/Build Path/Classpath Variables
The value of this variable should be the folder corresponding to$HOME/.gradle
-
Import the Eclipse projects from this directory except for:
These projects involve Scala source code that is unfortunately difficult to work on using the Eclipse Scala IDE. However, working on these two projects is easier with Intellij by importing them as SBT projects.
See gradle/wrapper/gradle-wrapper.properties
The gradle distribution is based on the gradle-script-kotlin integration. See the development builds available here: https://repo.gradle.org/gradle/webapp/#/artifacts/browse/tree/General/dist-snapshots
For release notes: https://github.com/gradle/gradle-script-kotlin/releases