-
Notifications
You must be signed in to change notification settings - Fork 211
Gradle upgrade hint #116
Gradle upgrade hint #116
Conversation
Can one of the admins review this PR? |
// detected Gradle 3.3 or smaller | ||
// show message for required gradle upgrade | ||
// details: https://github.com/novoda/bintray-release/issues/112 | ||
System.err.println(""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% sure but if we know that it will going ti fail anyways. Instead of printing, we can also do throw new GradleException
with this message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem with failing in configuration phase is that you can't even upgrade with ./gradlew wrapper --gradle-version 3.5
because it will fail, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgrade not possible with GradleException
Pascals-MBP:android-base pascalwelsch$ ./gradlew wrapper --gradle-version 3.5 --distribution-type allThe JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':library'.
>
**************************************
WARNING: Gradle 3.3 not supported by bintray-release plugin. Update required!
The bintray-release plugin doesn't support version of Gradle below 3.4 for Android libraries. Please upgrade to Gradle 3.4 or later.
The last bintray-release plugin supporting Gradle 3.3 is 'com.novoda:bintray-release:4.0'
Upgrade Gradle:
./gradlew wrapper --gradle-version 3.5 --distribution-type all
The bintray-release plugin can't create a Publication for your Android Library with Gradle 3.3!
**************************************
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 0.655 secs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha 😂 never thought about that. Very true.
@hal9002 ok to test |
Anything left which prevent to merge it? 🤔 |
@StefMa I was waiting for another review maybe. But I think it is simple enough. Let's 🚢 it. |
based on top of #115
Adds a warning when this plugin will be used with an unsupported Gradle version instead of a hard crash.
Example with Gradle 3.3:
Before
Now
./gradlew clean
works without error but prints message./gradlew clean bundleRelease bintrayUpload
prints message but can't publish a release