Skip to content

Commit

Permalink
Revert #194
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalbe4 committed Jan 7, 2018
1 parent 420e372 commit d60ffcc
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
currentVersion=1.8.0
currentVersion=1.8.1-SNAPSHOT
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-all.zip
30 changes: 15 additions & 15 deletions src/main/groovy/com/jfrog/bintray/gradle/BintrayExtension.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.jfrog.bintray.gradle

import org.gradle.api.Action
import org.gradle.api.Project
import org.gradle.util.ConfigureUtil

class BintrayExtension {

Expand Down Expand Up @@ -31,13 +31,13 @@ class BintrayExtension {
this.project = project
}

def pkg(Action<? super PackageConfig> action) {
action.execute(pkg)
def pkg(Closure closure) {
ConfigureUtil.configure(closure, pkg)
}

def filesSpec(Action<? super RecordingCopyTask> action) {
filesSpec = project.tasks.create(RecordingCopyTask.NAME, RecordingCopyTask)
action.execute(filesSpec)
def filesSpec(Closure closure) {
filesSpec = project.task(type: RecordingCopyTask, RecordingCopyTask.NAME)
ConfigureUtil.configure(closure, filesSpec)
filesSpec.outputs.upToDateWhen { false }
}

Expand All @@ -58,13 +58,13 @@ class BintrayExtension {
Map attributes

VersionConfig version = new VersionConfig()
def version(Action<? super VersionConfig> action) {
action.execute(version)
def version(Closure closure) {
ConfigureUtil.configure(closure, version)
}

DebianConfig debian = new DebianConfig()
def debian(Action<? super DebianConfig> action) {
action.execute(debian)
def debian(Closure closure) {
ConfigureUtil.configure(closure, debian)
}
}

Expand All @@ -82,13 +82,13 @@ class BintrayExtension {
Map attributes

GpgConfig gpg = new GpgConfig()
def gpg(Action<? super GpgConfig> action) {
action.execute(gpg)
def gpg(Closure closure) {
ConfigureUtil.configure(closure, gpg)
}

MavenCentralSyncConfig mavenCentralSync = new MavenCentralSyncConfig()
def mavenCentralSync(Action<? super MavenCentralSyncConfig> action) {
action.execute(mavenCentralSync)
def mavenCentralSync(Closure closure) {
ConfigureUtil.configure(closure, mavenCentralSync)
}
}

Expand All @@ -103,4 +103,4 @@ class BintrayExtension {
String password
String close
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0-SNAPSHOT"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.1-SNAPSHOT"
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/gradle/projects/fileSpec/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0-SNAPSHOT"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.1-SNAPSHOT"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0-SNAPSHOT"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.1-SNAPSHOT"
}
}

Expand Down

0 comments on commit d60ffcc

Please sign in to comment.