@@ -1275,6 +1275,38 @@ project(':core') {
1275
1275
from(project(' :tools:tools-api' ). configurations. runtimeClasspath) { into(" libs/" ) }
1276
1276
duplicatesStrategy ' exclude'
1277
1277
}
1278
+
1279
+ // AutoMQ inject start
1280
+ tasks. create(name : " releaseE2ETar" , dependsOn : [configurations. archives. artifacts, ' copyDependantTestLibs' ], type : Tar ) {
1281
+ def prefix = project. findProperty(' prefix' ) ?: ' '
1282
+ archiveBaseName = " ${ prefix} kafka"
1283
+
1284
+ into " ${ prefix} kafka-${ archiveVersion.get()} "
1285
+ compression = Compression . GZIP
1286
+ from(project. file(" $rootDir /bin" )) { into " bin/" }
1287
+ from(project. file(" $rootDir /config" )) { into " config/" }
1288
+ from(project. file(" $rootDir /licenses" )) { into " licenses/" }
1289
+ from(project. file(" $rootDir /docker/docker-compose.yaml" )) { into " docker/" }
1290
+ from(project. file(" $rootDir /docker/telemetry" )) { into " docker/telemetry/" }
1291
+ from(project. file(" $rootDir /LICENSE" )) { into " " }
1292
+ from " $rootDir /NOTICE-binary" rename {String filename -> filename. replace(" -binary" , " " )}
1293
+ from(configurations. runtimeClasspath) { into(" libs/" ) }
1294
+ from(configurations. archives. artifacts. files) { into(" libs/" ) }
1295
+ from(project. siteDocsTar) { into(" site-docs/" ) }
1296
+
1297
+ // Include main and test jars from all subprojects
1298
+ rootProject. subprojects. each { subproject ->
1299
+ if (subproject. tasks. findByName(' jar' )) {
1300
+ from(subproject. tasks. named(' jar' )) { into(' libs/' ) }
1301
+ }
1302
+ if (subproject. tasks. findByName(' testJar' )) {
1303
+ from(subproject. tasks. named(' testJar' )) { into(' libs/' ) }
1304
+ }
1305
+ from(subproject. configurations. runtimeClasspath) { into(' libs/' ) }
1306
+ }
1307
+ duplicatesStrategy ' exclude'
1308
+ }
1309
+ // AutoMQ inject end
1278
1310
1279
1311
jar {
1280
1312
dependsOn(' copyDependantLibs' )
0 commit comments