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

Migrated to new Shipkit plugins #36

Merged
merged 1 commit into from
Jan 21, 2021
Merged

Conversation

mockitoguy
Copy link
Contributor

@mockitoguy mockitoguy commented Jan 12, 2021

This change is fully backwards compatible, please review!

  • enables concurrent releases
  • avoids unnecessary version bump commits
  • enables using higher versions of Gradle ("org.shipkit.java" plugin is deprecated)
  • removed read-only token from checked-in files (even though it is read read-only, it should not be exposed to unexpected users/bots)

Tested by:

    - enables concurrent releases
 	- avoid unnecessary version bump commits
 	- enables using higher version of Gradle
 	- more info: https://github.com/mockito/shipkit/blob/master/docs/design-specs/future-shipkit.md
 - removed read-only token from checked-in files (even though it is read read-only, it should not be exposed to unexpected users/bots)
@mockitoguy
Copy link
Contributor Author

Friendly ping!

@wmoustafa
Copy link
Contributor

Thanks @mockitoguy for this patch! I see some Maven integration configurations being added. Does this change anything compared to our previous workflow for publishing artifacts? So far publishing Maven artifacts had to be manually triggered.

@mockitoguy
Copy link
Contributor Author

So far publishing Maven artifacts had to be manually triggered.

@wmoustafa, are you referring to publishing to Maven Central? Answer: publishing to Maven Central is not changed by this PR - you still need to trigger this manually.

This PR keeps your current workflow but updates the plugins. The old org.shipkit.java plugin is archived and no longer maintained.

@wmoustafa
Copy link
Contributor

Thanks @mockitoguy!

@wmoustafa wmoustafa merged commit 6432dde into linkedin:master Jan 21, 2021
@kxu1026
Copy link
Contributor

kxu1026 commented Feb 1, 2021

This change caused an issue. All jars' .asc files are missing in published package. Right now, we cannot publish the package to Maven center anymore since v1.0.20

@kxu1026
Copy link
Contributor

kxu1026 commented Feb 1, 2021

@mockitoguy Szczepan, do you know how can we quickly fix the 'missing .asc files' issue?

@mockitoguy
Copy link
Contributor Author

I will take a look tomorrow morning. Sorry about the issue. (If you are blocked you can revert my change)

@mockitoguy
Copy link
Contributor Author

@kxu1026, have you tried to publish to Maven Central? What happens?

The "asc" files are created on the server side by Bintray. For some reason Bintray no longer creates those files. I'm not sure why. The plugin change is not causing this - if you revert to the old shipkit I suspect the result will be the same.

@wmoustafa
Copy link
Contributor

@mockitoguy I have reverted this change in #44, and the files can be generated. Please let us know if there is a way to use the new plugin while maintaining the artifact signing files.

@mockitoguy mockitoguy deleted the sf branch February 7, 2021 18:37
@mockitoguy mockitoguy restored the sf branch February 7, 2021 18:37
@mockitoguy
Copy link
Contributor Author

Hey @wmoustafa, thank you for fixing the problem and sorry for this issue!

We will need to update the plugins by May because JFrog is sunsetting Bintray product. When I have some cycles, I'll look into it.

@wmoustafa
Copy link
Contributor

Thanks @mockitoguy! Which artifact repository will Shipkit integrate with instead of Bintray?

@wmoustafa
Copy link
Contributor

@mockitoguy, Friendly ping about the future of Shipkit. Do we know which repository it will publish to going forward?

@mockitoguy
Copy link
Contributor Author

Hey! TLDR; we'll publish directly to Maven Central (Sonatype OSSRH)

New Shipkit plugins are decoupled from repository hosting solution. This means that it's much easier to configure Shipkit to work with any repo. This PR attempted to migrate to the new Shipkit plugins but we hit the issue with *asc files. I should be able to look into linkedIn/coral sometime in Feb.

@wmoustafa
Copy link
Contributor

Thanks @mockitoguy! Since we are approaching the deadline, I am wondering if we the new plugin is ready, or should we depend on manual/self publishing of artifacts to Maven Central?

@wmoustafa
Copy link
Contributor

@mockitoguy, friendly ping.

@mockitoguy
Copy link
Contributor Author

Hey, @wmoustafa, I have a demo/reference project that performs publications to Maven Central on every change: https://github.com/shipkit/shipkit-demo So the Gradle plugins fully support this use case right now.

Are you OK to publish every change to Maven Central? I noticed that a subset of Coral versions are published to Maven Central.

@wmoustafa
Copy link
Contributor

Thanks @mockitoguy! Publishing on every change is okay. I have been working on adapting the legacy Shipkit plugin integration in Coral so that it publishes to Maven Central instead by following this Shipkit guide. I have published this approach in #51. It would be great to have your feedback on this on this patch while we work on integrating the demo above.

@mockitoguy
Copy link
Contributor Author

@wmoustafa, OK to migrate from Travis CI -> GitHub Actions? Actions are faster, better and future proof. Also, I found it difficult to keep PGP key in Travis env variables (Travis had issues parsing PGP key value). It will be simpler to migrate off Bintray if we also migrate from Travis ;-)

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.

3 participants