Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Apply license headers to source files #522

Closed

Conversation

vertein
Copy link
Contributor

@vertein vertein commented Sep 13, 2017

Tracked at UW-Madison with MUMUP-2885.

First commit adds the maven license plugin and configures usage, including using Apereo's license header.

Second commit adds the license header to the files.

Third commit add CI check to ensure that license headers have been added.


Contributor License Agreement adherence:

To enable adding apereo license header to all files programatically
@vertein vertein force-pushed the MUMUP-2885-Apply-License-marking branch from 8392c09 to 5604b4f Compare September 13, 2017 01:39
Copy link
Contributor

@ChristianMurphy ChristianMurphy left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @vertein! 👍
❓ Did the Maven plugin add all the license headers in this PR? Or did some have to be manually added?
❓ How often will the project be checking license header compliance? (Per Release, Per Commit, Other)
👷 AppVeyor appears to have had a flaky run, you may want to restart it

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-readable POM C:\projects\uw-frame\pom.xml: input contained no data @ C:\projects\uw-frame\pom.xml
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project edu.wisc.my.apps:uw-frame:5.1.1-SNAPSHOT (C:\projects\uw-frame\uw-frame-java\pom.xml) has 1 error
[ERROR]     Non-readable POM C:\projects\uw-frame\pom.xml: input contained no data @ C:\projects\uw-frame\pom.xml
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
Command exited with code 1

@vertein
Copy link
Contributor Author

vertein commented Sep 13, 2017

Maven plugin did all the license adding.
Right now, manually. Adding a check in our CI wouldn't be that bad. I might just do that.

@vertein vertein force-pushed the MUMUP-2885-Apply-License-marking branch from 5604b4f to fef4c92 Compare September 13, 2017 13:41
Add the Apereo license header to source files
Checks to see if license header has been added to source files
@vertein vertein force-pushed the MUMUP-2885-Apply-License-marking branch from fef4c92 to ae8acaf Compare September 13, 2017 13:48
Ignore the test output directories when checking for license
on source files
@vertein vertein force-pushed the MUMUP-2885-Apply-License-marking branch from 01f2fda to 87aa20a Compare September 13, 2017 14:04
Momentarily turn off cache
Turn cache back on now that build passed
@vertein
Copy link
Contributor Author

vertein commented Sep 13, 2017

Closing in favor of #523 because I couldn't get the AppVeyor build to succeed.

@vertein vertein closed this Sep 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants