This repository has been archived by the owner on Apr 10, 2021. It is now read-only.
Classpath verification; POM improvements; License/Copyright #119
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Using a new project I have added to the organization, welovecoding/openjdk7-rt , I have come up with a license compatible way to integrate boot classpath checking via the Javac compiler. These checks will verify at the class/bytecode level that we are Java 7 compatible using an actual Java runtime. This is superior to our currently standalone
animal-sniffer-plugin
because the sniffer plugin only verifies that the API signatures match. My new addition downloads thert,jar
from a remote GitHub URL automatically and also caches the download in the~/.m2
folder by using thedownload-maven-plugin
. I have read the GPLv2 with classpath exception and am able to certify that using the code in this manner (distribution in an independent project and distributing code that downloads locally) does not run afoul of the MIT license our project uses. The licensing issues are what prompted me to do it this way instead of distributing the files alongside this project directly.I have made major enhancements to the layout of the POM in order to make it comply with "best standards", including moving release plugins into their own profile which is automatically activated by the
maven-release-plugin
. Simply runningmvn deploy -DdryRun=false
will now trigger a build which runs therelease:prepare
andrelease:perform
goals and deploys to the localmaven-repo
directory. Runningmvn deploy
by itself will do a verification dry run to prevent accidental deployments.I have added my copyright declaration to the project license to confer that I have copyright over the code that I write, though of course it is subject to the MIT license so the point is somewhat moot. I wanted to make sure that our license/copyright for my code wasn't in any problematic arrangement. Perhaps we should look into adding everyone who contributes code to the copyright, or we should figure a way to make it copyright at an organization level? If we don't have the copyright statements listed it doesn't particularly matter technically as I believe copyrights confer automatically upon creation, but there are also reasons to want everyone who contributes listed as explicitly asserting copyright to make it clear that the MIT license covers ALL contributions and not just the ones by the listed copyright owners.