Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UP-4179: uPortal 5 project overhault with a Gradle-based build #715

Merged
merged 70 commits into from
Sep 19, 2016

Conversation

drewwills
Copy link
Contributor

@drewwills drewwills commented Sep 6, 2016

https://issues.jasig.org/browse/UP-4179

This is only the beginning of this work.

Please see the wiki page for this effort: https://wiki.jasig.org/display/UPC/uPortal+5+Project+Overhaul

The complete plan is outlined there.

Tasks

  • Move all the 'export-*' Import/Export scripts from /org/jasig/portal/ (classapth) to /org/apereo/portal/
  • Review changes to import/export to verify that appropriate pre-uP5 entity files are still importable
  • Leave the script attributes of existing files in src/main/data unchanged
  • Verify that no unwanted files remain under org.jasig.portal within...
  • uportal-war/src/main/java
  • uportal-war/src/main/resources
  • uportal-war/src/test/java
  • uportal-war/src/test/groovy
  • uportal-war/src/test/resources
  • Test CONFIG mode
  • Troubleshoot the org.apereo.portal.portlets.image.ImagePortletController
  • grep for org.jasig.portal and verify that remaining occurrences make sense (some will, particularly a few within Import/Export)
  • Look into @holdorph's observations

…he -all (not -bin) distro becasue it's better for IDE tooling
  - settings.gradle (defines project name and 3 submodules intended for Soffit)
  - gradle.properties (group & version, some project metadata we may or may not use)
  - build.gradle (mostly just the com.gradle.build-scan plugin)
…OL_NOSTORE and CACHE_CONTROL_NOCACHE constants to uPortal-soffit/ because they're needed by both submodules
…r; this is the portlet application context file for the Soffit Connector portlet
@drewwills
Copy link
Contributor Author

Travis CI seems to be invoking $gradle assemble where it should be invoking $gradle install... anyone know why that is?

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 22.964% when pulling 4ab5fc7 on drewwills:UP-4179 into c5d425d on Jasig:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.005%) to 22.985% when pulling c91a8f8 on drewwills:UP-4179 into c5d425d on Jasig:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 22.989% when pulling a87baae on drewwills:UP-4179 into c5d425d on Jasig:master.

….portal...' and into 'org.apereo.portal...'

  - org.apereo.portal.channel
  - org.apereo.portal.character.stream
  - org.apereo.portal.character.stream.events
  - org.apereo.portal.concurrency
  - org.apereo.portal.concurrency.caching
  - org.apereo.portal.concurrency.locking
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 22.989% when pulling fc3f8d2 on drewwills:UP-4179 into c5d425d on Jasig:master.

…rg.jasig.portal...' and into 'org.apereo.portal...'
…ackages -- out of 'org.jasig.portal...' and into 'org.apereo.portal...'
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 23.002% when pulling 6af06b6 on drewwills:UP-4179 into c5d425d on Jasig:master.

…ages -- and all subpackages -- out of 'org.jasig.portal...' and into 'org.apereo.portal...'
…ges -- and all subpackages -- out of 'org.jasig.portal...' and into 'org.apereo.portal...'
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 23.002% when pulling 6812068 on drewwills:UP-4179 into c5d425d on Jasig:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 22.992% when pulling 6812068 on drewwills:UP-4179 into c5d425d on Jasig:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 22.978% when pulling 22cd947 on drewwills:UP-4179 into c5d425d on Jasig:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 22.977% when pulling 22cd947 on drewwills:UP-4179 into c5d425d on Jasig:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 22.978% when pulling 22cd947 on drewwills:UP-4179 into c5d425d on Jasig:master.

…portal-war/src/main/groovy/org/jasig/... into .../apereo/...
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.004%) to 22.986% when pulling 67c8fba on drewwills:UP-4179 into c5d425d on Jasig:master.

…/' the folders 'channels' and 'lang' because their contents are orphaned
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 22.973% when pulling 62085b9 on drewwills:UP-4179 into c5d425d on Jasig:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 22.971% when pulling 62085b9 on drewwills:UP-4179 into c5d425d on Jasig:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.008%) to 22.982% when pulling 9b23b26 on drewwills:UP-4179 into c5d425d on Jasig:master.

…ces make sense (some will, particularly a few within Import/Export)
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 22.973% when pulling be64fbe on drewwills:UP-4179 into c5d425d on Jasig:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.002%) to 22.988% when pulling d9ea1ec on drewwills:UP-4179 into c5d425d on Jasig:master.

@drewwills
Copy link
Contributor Author

@holdorph -- I ran some tests. Here's what I now believe...

I thought that the command $gradle wrapper would create only files that are a necessary part of the build system, but I was wrong about that. It also generated 6 files in .gradle. Those files don't need to be included -- they're work/temp files used by Gradle during the execution of $gradle wrapper itself (and later used by other commands). Nothing in .gradle/ needs to be in the repo, and .gradle/ can & should be listed in the .gitignore.

I have made these changes.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 22.997% when pulling e945df5 on drewwills:UP-4179 into c5d425d on Jasig:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 22.973% when pulling 9be12f0 on drewwills:UP-4179 into c5d425d on Jasig:master.

@@ -20,6 +20,6 @@

-->
<entity-type script="classpath://org/jasig/portal/io/import-entity-type_v3-2.crn">
<name>org.apereo.portal.security.IPermissionSet</name>
<name>org.jasig.portal.security.IPermissionSet</name>
Copy link
Member

@ChristianMurphy ChristianMurphy Sep 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait, shouldn't these be changing from jasig to apereo, not vice verse?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep -- that was a mistake that crept in when I was trying to erase unwanted changes the IDE had made auto-magically to uportal-war/src/main/data. Should be fixed already.

@@ -20,6 +20,6 @@

-->
<entity-type script="classpath://org/jasig/portal/io/import-entity-type_v3-2.crn">
<name>org.apereo.portal.security.IPerson</name>
<name>org.jasig.portal.security.IPerson</name>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, shouldn't these be changing from jasig to apereo, not vice verse?

@@ -728,6 +728,20 @@
<!-- -->

<!-- Internal use -->
<target name="gradle-install" description="Build and install (in maven local) the uPortal modules that have been ported to a Gradle-based build">
<!--
| TEMPORARY MEASURE!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a temporary measure for before move to gradle, can this be removed now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet. Probably we will need that target as long as we need the build.xml file. We'll be able to remove that file entirely after Phase II (though maybe not immediately).

@@ -0,0 +1,294 @@
package org.apereo.portal.soffit.renderer;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File is missing ASF License header

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just run $mvn license:format on the whole project. It picked up that, plus a hand full of other items. Soon to be committed.

…adress a few small issues with Import/Export that arose from the repackaging from 'org.jasig.portal' to 'org.apereo.portal'
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 22.97% when pulling 006bc48 on drewwills:UP-4179 into c5d425d on Jasig:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.009%) to 22.981% when pulling 85de7eb on drewwills:UP-4179 into c5d425d on Jasig:master.

…g/apereo/portal/io/ that were made auto-magically by the IDE in repackaging from 'org.jasig.portal' to 'org.apereo.portal'
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 22.979% when pulling 75787b8 on drewwills:UP-4179 into c5d425d on Jasig:master.

@drewwills drewwills merged commit 3933dcc into uPortal-Project:master Sep 19, 2016
@drewwills drewwills deleted the UP-4179 branch September 19, 2016 16:55
@ChristianMurphy ChristianMurphy added this to the 5.0.0 milestone Apr 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants