Created
April 14, 2015 03:44
-
-
Save ojacobson/4a354fca9fd6bb030587 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit f3d6bcc227f14770b3d72f094f5b00f3939a6d8f | |
Author: Owen Jacobson <[email protected]> | |
Date: Mon Apr 13 23:36:41 2015 -0400 | |
Add a magic linebreak to build.gradle. | |
Removing this line break causes Gradle to believe that the `publications` | |
section is being applied _after_ the Bintray plugin accesses the publications. | |
As this is illegal, it fails the build: | |
FAILURE: Build failed with an exception. | |
* Where: | |
Build file '/Users/owen/Development/login-box.com/dropwizard-mybatis/build.gradle' line: 69 | |
* What went wrong: | |
A problem occurred evaluating root project 'dropwizard-mybatis'. | |
> Cannot configure the 'publishing' extension after it has been accessed. | |
That a line break, which is notionally meaningless, could alter the build | |
outcome strongly suggests that there's a hash order somewhere that happened to | |
come out exactly wrong, but I don't have good evidence for that hypothesis. | |
This commit is purely based on observed behaviour and guesswork. | |
diff --git a/build.gradle b/build.gradle | |
index fd006db..0cdc649 100644 | |
--- a/build.gradle | |
+++ b/build.gradle | |
@@ -83,6 +83,7 @@ bintray { | |
publications = ['mavenJava'] | |
+ | |
pkg { | |
userOrg = 'login-box' | |
repo = isSnapshot ? 'snapshots' : 'releases' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment