|  | @@ -6,28 +6,26 @@
 | 
	
		
			
				|  |  |   * Side Public License, v 1.
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +import de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin
 | 
	
		
			
				|  |  |  import com.avast.gradle.dockercompose.tasks.ComposePull
 | 
	
		
			
				|  |  |  import com.fasterxml.jackson.databind.JsonNode
 | 
	
		
			
				|  |  |  import com.fasterxml.jackson.databind.ObjectMapper
 | 
	
		
			
				|  |  | -import com.github.jengelman.gradle.plugins.shadow.ShadowPlugin
 | 
	
		
			
				|  |  | -import de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin
 | 
	
		
			
				|  |  | -import org.elasticsearch.gradle.internal.BuildPlugin
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  import org.elasticsearch.gradle.Version
 | 
	
		
			
				|  |  | -import org.elasticsearch.gradle.VersionProperties
 | 
	
		
			
				|  |  | -import org.elasticsearch.gradle.internal.BwcVersions
 | 
	
		
			
				|  |  | +import org.elasticsearch.gradle.internal.BaseInternalPluginBuildPlugin
 | 
	
		
			
				|  |  | +import org.elasticsearch.gradle.internal.ResolveAllDependencies
 | 
	
		
			
				|  |  |  import org.elasticsearch.gradle.internal.info.BuildParams
 | 
	
		
			
				|  |  | -import org.elasticsearch.gradle.plugin.PluginBuildPlugin
 | 
	
		
			
				|  |  | +import org.elasticsearch.gradle.util.GradleUtils
 | 
	
		
			
				|  |  |  import org.gradle.plugins.ide.eclipse.model.AccessRule
 | 
	
		
			
				|  |  | +import org.gradle.plugins.ide.eclipse.model.ProjectDependency
 | 
	
		
			
				|  |  |  import org.gradle.util.DistributionLocator
 | 
	
		
			
				|  |  |  import org.gradle.util.GradleVersion
 | 
	
		
			
				|  |  | -import org.elasticsearch.gradle.util.GradleUtils
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -import static org.elasticsearch.gradle.util.GradleUtils.maybeConfigure
 | 
	
		
			
				|  |  | -import org.gradle.plugins.ide.eclipse.model.ProjectDependency
 | 
	
		
			
				|  |  | -import org.elasticsearch.gradle.internal.BaseInternalPluginBuildPlugin
 | 
	
		
			
				|  |  | -import org.elasticsearch.gradle.internal.ResolveAllDependencies
 | 
	
		
			
				|  |  |  import java.nio.file.Files
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  import static java.nio.file.StandardCopyOption.REPLACE_EXISTING
 | 
	
		
			
				|  |  | +import static org.elasticsearch.gradle.util.GradleUtils.maybeConfigure
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  plugins {
 | 
	
		
			
				|  |  |    id 'lifecycle-base'
 | 
	
	
		
			
				|  | @@ -208,14 +206,15 @@ allprojects {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -  def checkPart1 = tasks.register('checkPart1')
 | 
	
		
			
				|  |  | -  def checkPart2 = tasks.register('checkPart2')
 | 
	
		
			
				|  |  | -  def checkPart3 = tasks.register('checkPart3')
 | 
	
		
			
				|  |  |    plugins.withId('lifecycle-base') {
 | 
	
		
			
				|  |  |      if (project.path.startsWith(":x-pack:")) {
 | 
	
		
			
				|  |  | -      checkPart2.configure { dependsOn 'check' }
 | 
	
		
			
				|  |  | +      if (project.path.contains("security") || project.path.contains(":ml")) {
 | 
	
		
			
				|  |  | +        tasks.register('checkPart3') { dependsOn 'check' }
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +        tasks.register('checkPart2') { dependsOn 'check' }
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |      } else {
 | 
	
		
			
				|  |  | -      checkPart1.configure { dependsOn 'check' }
 | 
	
		
			
				|  |  | +      tasks.register('checkPart1') { dependsOn 'check' }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  
 |