Conversation
|
@epeee Maybe you can read somehow Bintray plugin property to avoid duplication? |
|
Any updates on this one? |
|
Bump? |
|
Looking at it. I met @epeee at CodeOne conference and he mentioned that his PR needs bump. @jpkrohling, sorry for slow turnaround! I'm on it. |
|
Hey @epeee, I will review and provide my feedback shortly. In the meantime, I commented on the ticket so that @jpkrohling is unblocked and can customize the pom. |
|
I found a hack how to get license info from bintray configuration. @epeee @mockitoguy WDYT? |
Please no :) That's a lot of complexity for little benefit. |
|
It's a simple reflection ;-) But as you wish! |
mockitoguy
left a comment
There was a problem hiding this comment.
I like it. Let's update the defaults and ship it.
| Node license = root.appendNode("licenses").appendNode("license"); | ||
| license.appendNode("name", "The MIT License"); | ||
| license.appendNode("url", repoLink + "/blob/master/LICENSE"); | ||
| license.appendNode("name", conf.getLicenseInfo().getLicense()); |
There was a problem hiding this comment.
Can we add defaults, Apache 2.0 and blob/master/LICENSE?
There was a problem hiding this comment.
Sure, good feedback, thx!
There was a problem hiding this comment.
Cool. Let me know when you're ready.
MIT is 30y old and lawyers no longer like it. Let's default to Apache 2.0.
|
Once we merge it, can we get the license value populated to the Bintray extension, too? Thanks!!! Nice change! |
|
Before merging, we need to add defaults (as my comment) or make it "lenient". I suggest to add defaults because it is simpler and more useful. Then we can merge :) Let me know when you're ready! |
mstachniuk
left a comment
There was a problem hiding this comment.
See my and Szczepan's comments. For me, it's not ready yet.
| } | ||
| } | ||
|
|
||
| public class LicenseInfo { |
There was a problem hiding this comment.
what about distribution property in pom?
| return releaseNotes; | ||
| } | ||
|
|
||
| public LicenseInfo getLicenseInfo() { |
There was a problem hiding this comment.
How to now configure a few licenses? E.g. one open source and one commercial?
Very first draft (#755).
This pr extends shipkit configuration in a way that we have to configure the license used (incl url now).
This will end up in a pom like
The downside of this approach is that we still have to configure the license used by gradle bintray plugin, e.g.:
We could add this one also to shipkit config and do the configuration in our gradle plugin. As a result we'd have the license config in one place.
Note: this is a breaking change and will cause builds without a shipkit.licenseInfo configuration to fail: