Skip to content

Commit

Permalink
made plugin compatible with gradle 3.5 #84
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Dietrich <[email protected]>
  • Loading branch information
cdietrich committed Jun 9, 2017
1 parent 1afe1da commit b239995
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
import org.gradle.api.execution.TaskExecutionGraphListener
import org.gradle.api.plugins.BasePlugin
import org.gradle.api.plugins.JavaBasePlugin
import org.gradle.api.plugins.JavaPlugin
import org.gradle.api.plugins.JavaPluginConvention
import org.gradle.api.tasks.testing.Test
Expand All @@ -23,7 +24,6 @@ import org.xtext.gradle.idea.tasks.IdeaExtension
import org.xtext.gradle.idea.tasks.RunIdea

import static extension org.xtext.gradle.idea.tasks.GradleExtensions.*
import org.gradle.api.plugins.JavaBasePlugin

class IdeaDevelopmentPlugin implements Plugin<Project> {
public static val IDEA_DEVELOPMENT_EXTENSION_NAME = "ideaDevelopment"
Expand Down Expand Up @@ -170,7 +170,8 @@ class IdeaDevelopmentPlugin implements Plugin<Project> {
plusConfigurations.add(ideaProvided)

val fileReferenceFactory = new FileReferenceFactory
file.whenMerged.add [ Classpath it |

file.whenMerged [ Classpath it |
entries.filter(Library).filter[idea.ideaCoreLibs.contains(library.file)].forEach [
sourcePath = fileReferenceFactory.fromFile(idea.sourcesZip)
]
Expand Down

0 comments on commit b239995

Please sign in to comment.