[NETBEANS-1074] Module Review libs.glassfish_logging#828
[NETBEANS-1074] Module Review libs.glassfish_logging#828matthiasblaesing merged 3 commits intoapache:masterfrom juneau001:review-libs.glassfish-logging
Conversation
juneau001
commented
Sep 1, 2018
- Added license header to binaries-list
- Repaired license.txt
- Scanned module and no other issues found
- Added license header to binaries-list - Repaired license.txt - Scanned module and no other issues found
| Name: GlassFish Logging | ||
| License: CDDL-GPL-2-CP | ||
| License: Apache-2.0 | ||
| OSR: 4101 |
There was a problem hiding this comment.
Please remove the OSR entry - it is an artifact from the Sun times.
|
I don't know this anything, but why can we change the license to Apache-2.0? |
|
I am not quite sure if we should change the license since it was Oracle or not. It was an Oracle license, and they are now transferring GlassFish to Eclipse...so I wasn't quite sure what to do here. Therefore, I submitted the PR to open dialog on this. Just let me know what is the best approach to take and I'll make the modifications. Thanks for your time and assistance! |
|
If Oracle donated it to the Apache, we can change the license, I suppose. @matthiasblaesing |
|
The ALv2 license looks correct. If you look at the package structure, this is a shaded version of commons logging. I checked glassfish 2.1.1 and indeed, it contains the jar, but that jar correctly holds a LICENSE ant NOTICE file. That file can also be found on maven central: From an API perspective they are identical to the I suggest we switch to the maven central version, fix the version number and are done. I don't think this artifact is used often, as glassfish is AFAIK currently using java.util.logging. |
|
My doubt is cleared now. Thanks, Matthias! |
|
Thanks for the assistance, I appreciate it. I will change the version number in the license.txt and remove the OSR entry. Can you please inform me what needs to change in order to switch to the Maven central version of commons logging 1.0.4? I've not modified dependencies on internal NetBeans modules before and I don't want to break the build. |
|
No problem: The external files are referenced from the containing project in different ways, as the file name will probably change, references need to be updated. Check
means, that the file You will also want to look in <class-path-extension>
<runtime-relative-path>ext/glassfish-logging-2.0.jar</runtime-relative-path>
<binary-origin>external/glassfish-logging-2.0.jar</binary-origin>
</class-path-extension>I think you are able to deduce where the paths come from (hint: match them to the If other code refers to files, this potentially needs to be adjusted - that needs decisions case-by-case. Grep is your fried :-) Hope that helps a bit. |
|
Thanks @matthiasblaesing I will give it a try soon. I appreciate the great explanation. |
- Changed external library from glassfish-logging-2.0.jar to logging-api-1.0.4.jar - Modified license to reflect the change from glassfish logging to commons logging - Modified hash and maven coordinates in binaries-list
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
| 1821ad7489a0a3d9241ccffdd39fa734ff01305d com.sun.commons:logging-api:1.0.4 |
There was a problem hiding this comment.
The SHA1 sums are expected to be in upper case.
| @@ -0,0 +1,206 @@ | |||
| Name: Commons Logging | |||
There was a problem hiding this comment.
This is not Apache Commons Logging, but a shaded version of it. I would stay with the original name, as it was distributed as part of glassfish, same goes then for the description.
| @@ -0,0 +1,206 @@ | |||
| Name: Commons Logging | |||
There was a problem hiding this comment.
The name of the file need to be logging-api-1.0.4-license.txt, as the downloaded artifact gets the name logging-api-1.0.4.jar. The prefix of the license text needs to either match the artifact name or the Files header of the license file must explicitly reference the files.
| Name: Commons Logging | ||
| License: Apache-2.0 | ||
| Description: Commons Logging | ||
| Version: 1.0.4 |
There was a problem hiding this comment.
Please add a Origin header - it is required. I would let it be: Distributed with Sun GlassFish Enterprise Server v2.1. You can run license verification by invoking: ant verify-all-libs-and-licenses and look for the module you are checking.
- Modified SHA1 sum to upper case in binaries-list - Renamed commons-logging-1.0.4-license.txt to logging-api-1.0.4-license.txt - Added Origin header to logging-api-1.0.4-license.txt and modified name and description
|
Thanks for the feedback and very useful information. I've modified as requested. |
|
Merged - thank you! |