File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
build-tools/src/main/java/org/elasticsearch/gradle Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,10 @@ public class DistributionDownloadPlugin implements Plugin<Project> {
42
42
private static final String FAKE_SNAPSHOT_IVY_GROUP = "elasticsearch-distribution-snapshot" ;
43
43
private static final String DOWNLOAD_REPO_NAME = "elasticsearch-downloads" ;
44
44
private static final String SNAPSHOT_REPO_NAME = "elasticsearch-snapshots" ;
45
- public static final String DISTRO_EXTRACTED_CONFIG_PREFIX = "es_distro_extracted_" ;
46
- public static final String DISTRO_CONFIG_PREFIX = "es_distro_file_" ;
45
+
46
+ public static final String ES_DISTRO_CONFIG_PREFIX = "es_distro_" ;
47
+ public static final String DISTRO_EXTRACTED_CONFIG_PREFIX = ES_DISTRO_CONFIG_PREFIX + "extracted_" ;
48
+ public static final String DISTRO_CONFIG_PREFIX = ES_DISTRO_CONFIG_PREFIX + "file_" ;
47
49
48
50
private final ObjectFactory objectFactory ;
49
51
private NamedDomainObjectContainer <ElasticsearchDistribution > distributionsContainer ;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import org.elasticsearch.gradle.internal.info.BuildParams
19
19
import org.elasticsearch.gradle.util.GradleUtils
20
20
import org.gradle.plugins.ide.eclipse.model.AccessRule
21
21
import org.gradle.plugins.ide.eclipse.model.ProjectDependency
22
+ import org.elasticsearch.gradle.DistributionDownloadPlugin
22
23
23
24
import java.nio.file.Files
24
25
@@ -284,11 +285,16 @@ allprojects {
284
285
}
285
286
286
287
tasks. register(' resolveAllDependencies' , ResolveAllDependencies ) {
287
- configs = project. configurations
288
+ def ignoredPrefixes = [DistributionDownloadPlugin . ES_DISTRO_CONFIG_PREFIX , " jdbcDriver" ]
289
+ configs = project. configurations. matching { config -> ignoredPrefixes. any { config. name. startsWith(it) } == false }
288
290
resolveJavaToolChain = true
289
291
if (project. path. contains(" fixture" )) {
290
292
dependsOn tasks. withType(ComposePull )
291
293
}
294
+ if (project. path. contains(" :distribution:docker" )) {
295
+ enabled = false
296
+ }
297
+
292
298
}
293
299
294
300
plugins. withId(' lifecycle-base' ) {
Original file line number Diff line number Diff line change @@ -36,8 +36,3 @@ tasks.named("test").configure { enabled = false }
36
36
tasks. register(' destructivePackagingTest' ) {
37
37
dependsOn ' destructiveDistroTest'
38
38
}
39
-
40
- tasks. named(' resolveAllDependencies' ) {
41
- // avoid resolving all elasticsearch distros
42
- enabled = false
43
- }
You can’t perform that action at this time.
0 commit comments