Skip to content

Commit

Permalink
Fix bad type signature for android gradle plugin (fixes #370)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Jun 7, 2015
1 parent 4a7fd1a commit 38b20e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion jsonschema2pojo-gradle-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@
</dependencies>

<build>
<sourceDirectory>${project.basedir}/src/main/groovy</sourceDirectory>
<testSourceDirectory>${project.basedir}/src/test/groovy</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>1.4</version>
<version>1.5</version>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -96,6 +98,11 @@
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>codenarc-maven-plugin</artifactId>
<version>0.22-1</version>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class GenerateJsonSchemaTask extends DefaultTask {
variant.javaCompile.dependsOn(this)
}

if (!configuration.sourceFiles.hasNext()) {
if (!configuration.sourceFiles.iterator().hasNext()) {
configuration.sourceFiles = project.files(
android.sourceSets.main.resources.srcDirs.collect {
"${it}/json"
Expand Down

0 comments on commit 38b20e9

Please sign in to comment.