Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Fix Gradle 1.x incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alicederyn committed Sep 4, 2015
1 parent c34bdd4 commit 74fcf5b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To use it, add the following to your top-level build.gradle file:
```gradle
plugins {
id 'org.inferred.processors' version '1.0'
id 'org.inferred.processors' version '1.0.1'
}
```

Expand Down Expand Up @@ -57,7 +57,7 @@ buildscript {
}
}
dependencies {
classpath 'gradle.plugin.org.inferred:gradle-processors:1.0'
classpath 'gradle.plugin.org.inferred:gradle-processors:1.0.1'
}
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies {
}

group = 'org.inferred'
version = '1.0'
version = '1.0.1'

pluginBundle {
website = 'https://github.com/palantir/gradle-processors'
Expand Down
4 changes: 3 additions & 1 deletion src/main/groovy/org/inferred/gradle/ProcessorsPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import org.gradle.api.NamedDomainObjectCollection
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaPlugin
import org.gradle.api.specs.Spec
import org.gradle.plugins.ide.eclipse.EclipsePlugin
import org.gradle.plugins.ide.idea.IdeaPlugin

Expand All @@ -35,7 +36,8 @@ class ProcessorsPlugin implements Plugin<Project> {
project.compileJava.dependsOn project.task('processorPath', {
doLast {
def config = project.configurations.getAt('processor').resolvedConfiguration
def path = project.files(config.getFiles({ true })).getAsPath()
def path = project.files(config.getFiles(
{ d -> true } as Spec<Object>)).getAsPath()
project.compileJava.options.compilerArgs += ["-processorpath", path]
}
})
Expand Down

0 comments on commit 74fcf5b

Please sign in to comment.