Source Code migration to Git

LabKey Support Forum
Source Code migration to Git ians  2020-10-21 14:41
Status: Closed
 

Hi All,

For 20.11 we have finished migrating our source code to git. Prior releases will remain in SVN and continue to be maintained based upon our Release and Upgrade policy. Changes and updates to to the source code for 20.11 and beyond will only be performed in git. If you are building from SVN trunk source please migrate at your earliest convenience.

Migration instructions:

For this example these instructions the original enlistment is in ./trunk/:

  1. Clone the new repo's develop branch to a sibling directory of your current enlistment
    git clone https://github.com/LabKey/server labkeyServer
  2. Then reenlist or copy over the server/modules directory to the corresponding new location
    cp -r trunk/server/modules labkeyServer/server/
  3. Reenlist or Copy over any additional enlistments (./remoteapi/*, ./server/testAutomation, etc.)
  4. Copy over any other changes -- specifically ./settings.gradle, ./server/configs/pg.properties, ./server/configs/mssql.properties, etc.
    cp trunk/server/configs/pg.properties labkeyServer/server/configs/pg.properties
  5. cd into the new directory
  6. execute ./gradlew cleanNodeModules from the new enlistment's root --- our initial testers ran into some conflicts and errors within these directories
  7. execute ./gradlew pickPg or ./gradlew pickMSSQL
  8. The new enlistment should then build as normal.
  9. (optional) If you are using IntelliJ, you will need to update the various project settings as you would for any new enlistment. Copying over the .idea directory can retain these, but it may also carryover some project specific settings that don't apply in the new location.

Ian