Skip to content

Commit dc59bf3

Browse files
breskebysarog
authored andcommitted
[Gradle] Avoid usage of archives configuration (elastic#133526) (elastic#133568)
* [Gradle] Avoid usage of archives configuration This will be deprecated in later Gradle versions * Remove unused wiring in distribution project * minor tweak
1 parent 39964d5 commit dc59bf3

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

x-pack/plugin/ml/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ def mlCppVersion(){
106106
(project.version + "-SNAPSHOT") : project.version;
107107
}
108108

109-
artifacts {
110-
// normal es plugins do not publish the jar but we need to since users need it for extensions
111-
archives tasks.named("jar")
109+
110+
tasks.named('assemble').configure {
111+
dependsOn tasks.named('jar')
112112
}
113113

114114
tasks.register("extractNativeLicenses", Copy) {

x-pack/plugin/security/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,10 @@ tasks.named("processTestResources").configure {
167167
from(project(xpackModule('core')).file('src/test/resources'))
168168
}
169169

170-
artifacts {
170+
171+
tasks.named('assemble').configure {
171172
// normal es plugins do not publish the jar but we need to since users need it for extensions
172-
archives tasks.named("jar")
173+
dependsOn tasks.named('jar')
173174
}
174175

175176
tasks.named("dependencyLicenses").configure {

x-pack/rest-resources-zip/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ def restResourcesZip = tasks.register('restResourcesZip', Zip) {
5959
}
6060
}
6161

62-
artifacts {
63-
archives restResourcesZip
62+
tasks.named('assemble').configure {
63+
dependsOn restResourcesZip
6464
}

0 commit comments

Comments
 (0)