GithubHelp home page GithubHelp logo

linkedin / play-parseq Goto Github PK

View Code? Open in Web Editor NEW
17.0 9.0 12.0 1.19 MB

Play-ParSeq is a Play module which seamlessly integrates ParSeq with Play Framework

License: Apache License 2.0

Scala 63.02% Java 36.63% Shell 0.36%
parseq play-framework

play-parseq's People

Contributors

bbarkley avatar benmccann avatar chenfanggm avatar franklinyinanding avatar miracle2121 avatar mockitoguy avatar shipkit-org avatar syzboy avatar zackthehuman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

play-parseq's Issues

Enable cross-building for Scala 2.13

Hi folks, I have a Play application that is on Scala 2.13 and I'm not able to use play-parseq because it only builds artifacts for 2.11 and 2.12. It appears that the 2.12 artifact is not compatible with 2.13 due to differences in how scala.Serializable is implemented (there are likely more issues, that's just one example).

I'm happy to send a PR if we're open to expanding the cross-building versions to include 2.13.

Not sync with Maven Central

The artifacts are not showing in Maven Central. Contacted with Sonatype, they are not seeing traces on oss.sonatype.org. See here.

Publish to Maven Central

Now we've successfully published to Bintray. We need to include the project with JCenter then sync with Maven Central.

Fully automated releases

Problem statement

Let's automate the releases of play-parseq. Goals:

  • releases to Maven Central to streamline consumption by the community (and to create more engaged community)
  • release notes generation
  • example LinkedIn OS project that has full release automation

Solution options

  1. Automate SBT build
  2. Migrate to Gradle and automate with Gradle plugins
  3. Add Gradle for releases, delegate to SBT

Discussion (with @FranklinYinanDing):

  • ad1) SBT is a dead. At LinkedIn we actively migrate to Gradle. SBT automation will duplicate Gradle automation we use in other projects.
  • ad2) Migrate to Gradle is ideal but adds extra effort.
  • ad3) Good pragmatic approach. We can get the releases automated without committing to full SBT->Gradle migration. We demonstrate how Gradle can wrap foreign build tool to automate releases. Risk exists that Gradle-SBT layer gets complicated and hard to maintain (if that happens we'll do option 2).

Implementation

I suggest to start using Shipkit Gradle plugins (http://shipkit.org) that Mockito community leverages to implement automated releases.

Suggested design

  • Enable Travis CI
  • Use and configure Shipkit Gradle plugins
    • Gradle will delegate to SBT to run build
    • Every PR merged to master will produce a new version in Maven Central
    • Documentation and release notes are automatically generated

Milestone 1

Automated releases to JCenter (very visible public repo)

Milestone 2

Automated releases to Maven Central, easy local testing.

  • Convenient local testing (easy way to build local snapshot) - @mockitoguy
  • Maven Central releases
    • - request Maven Central releases for "com.linkedIn.play-parseq" libraries - #18
  • LinkedIn Artifactory releases (optional)

Thoughts / feedback?

Exciting!!! Let's get the releases fully automated and provide an example for other LinkedIn projects ๐Ÿ—ก

Enable Travis CI job

Once we get admin rights to the project, let's setup Travis CI. I will provide travis config in PR #10 but it would be great if someone from the core team enabled Travis CI. This way you'll learning how to use Travis!

Not fully imported in JCenter

After successfully released, the artifacts are not fully imported in JCenter. Only one artifact play-parseq_2.12 got imported. See here.

Create 'com.linkedin.play-parseq' project in Maven Central

To start publishing to Maven Central we need to follow the official guide:

http://central.sonatype.org/pages/ossrh-guide.html

@FranklinYinanDing, it's best if you or one of the team members do it. This way you'll learn the process and can manage/maintain it long term. I can help. The link above should get you a good start. Once you created project for Maven Central, you can generate key+password and we will use to configure Shipkit to automatically publish to Maven Central.

Travis CI timeout when publishing

Travis CI timed out when publishing.

@FranklinYinanDing, can you make following local test on clean checkout of play-parseq?

export BINTRAY_API_KEY=your-secret
./gradlew bintrayUpload -PdryRun
./gradlew bintrayUpload

Above should work and should publish to LinkedIn Bintray test repo (https://bintray.com/linkedin/test-repo/play-parseq).

Once we get Bintray publications working we can:

  • delete v.0.8.1 tag & push
  • revert v.0.8.1 code push performed by Shipkit & push
  • trigger Travis to build new version

Once we get Travis to automatically publish without problems we can:

  • clean up the repo again (remove tag and automated commit)
  • change the 'test-repo' to 'maven' in shipkit.gradle & push
  • observe how Travis builds new version and ships to JCenter :D

Then, let's work on Maven Central releases.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.