Skip to content

Commit

Permalink
Merge pull request #351 from rspieldenner/gradle4dot4
Browse files Browse the repository at this point in the history
Update to work with gradle 4.4
  • Loading branch information
johnrengelman authored Dec 11, 2017
2 parents 022e3eb + c185881 commit 0fbc748
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class ShadowApplicationPlugin implements Plugin<Project> {
Sync installTask = project.tasks.getByName(SHADOW_INSTALL_TASK_NAME)
installTask.doFirst { Sync task ->
if (task.destinationDir.directory) {
if (!new File(task.destinationDir, 'lib').directory || !new File(task.destinationDir, 'bin').directory) {
if (task.destinationDir.listFiles().size() != 0 && (!new File(task.destinationDir, 'lib').directory || !new File(task.destinationDir, 'bin').directory)) {
throw new GradleException("The specified installation directory '${task.destinationDir}' is neither empty nor does it contain an installation for '${pluginConvention.applicationName}'.\n" +
"If you really want to install to this directory, delete it and run the install task again.\n" +
"Alternatively, choose a different installation directory."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class ShadowPluginSpec extends PluginSpecification {
assert output.exists()

where:
version << ['3.0', '3.1', '3.2', '3.3', '3.4', '3.5', '4.0', '4.1', '4.2', '4.3']
version << ['3.0', '3.1', '3.2', '3.3', '3.4', '3.5', '4.0', '4.1', '4.2', '4.3', '4.4']
}

def 'Error in Gradle versions < 3.0'() {
Expand Down

0 comments on commit 0fbc748

Please sign in to comment.