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