Skip to content

Commit

Permalink
Merge pull request #85 from xtext/newWrapper
Browse files Browse the repository at this point in the history
made plugin compatible with gradle 3.5 #84
  • Loading branch information
oehme committed Jun 9, 2017
2 parents 1afe1da + b239995 commit 2e2d66e
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 2e2d66e

Please sign in to comment.