Skip to content

Modernize build #428

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

Merged
merged 10 commits into from
Aug 9, 2019
Merged

Modernize build #428

merged 10 commits into from
Aug 9, 2019

Conversation

ZacSweers
Copy link
Contributor

This brings the build up to a modern version of gradle, and several plugins/configurations along with it

Note that everything here Just Works, but the modern gradle publish plugin uses an env/system property approach for credentials now vs the custom handling that was in place before. Just requires changing the env name currently being used, and is commented in code

@nedtwigg
Copy link
Member

nedtwigg commented Aug 7, 2019

Wow!!! Thanks a ton!

@ZacSweers
Copy link
Contributor Author

ZacSweers commented Aug 7, 2019 via email

Copy link
Member

@jbduncan jbduncan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if all references to compile should also be changed to implementation (or api from the java-library plugin if needed) as well.

@ZacSweers @nedtwigg Thoughts? :)

@ZacSweers
Copy link
Contributor Author

ZacSweers commented Aug 7, 2019 via email

@@ -11,6 +11,7 @@ buildscript {
classpath "org.ajoberstar:gradle-git-publish:${VER_GRADLE_GIT}"
classpath "ch.raffael.pegdown-doclet:pegdown-doclet:${VER_PEGDOWN_DOCLET}"
classpath "gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:${VER_SPOTBUGS_PLUGIN}"
classpath "com.google.guava:guava:27.1-jre" // Force newer version for spotbugs
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this should hopefully not be necessary anymore after Gradle 5.6 is released, which has a lot of work to properly not expose these dependencies on its classpath

@nedtwigg
Copy link
Member

nedtwigg commented Aug 9, 2019

I started to go through and do the api/implementation stuff. It's clear that'll take some discussion, so I'm going to merge this now so that anybody working on PRs can get the benefit of it while we work out those details. I don't think it's premature to merge this now, since this is clearly better than it was before, even without the full api/implementation changes.

@nedtwigg nedtwigg merged commit babc574 into diffplug:master Aug 9, 2019
@ZacSweers ZacSweers deleted the z/modernizeBuild branch August 9, 2019 04:17
@jbduncan
Copy link
Member

jbduncan commented Aug 9, 2019

Sounds good to me, @nedtwigg. 👍

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