|
1 | 1 | /******************************************************************************* |
2 | | - * Copyright (c) 2017, 2023 IBM Corporation and others. |
| 2 | + * Copyright (c) 2017, 2024 IBM Corporation and others. |
3 | 3 | * All rights reserved. This program and the accompanying materials |
4 | 4 | * are made available under the terms of the Eclipse Public License 2.0 |
5 | 5 | * which accompanies this distribution, and is available at |
@@ -369,8 +369,10 @@ def gaAndBetaAndNoShipPublicFeatures() { |
369 | 369 |
|
370 | 370 | def webProfile8Features() { project.file("profiles/webProfile8/features.xml").readLines() } |
371 | 371 | def webProfile10Features() { project.file("profiles/webProfile10/features.xml").readLines() } |
| 372 | +def webProfile11Features() { project.file("profiles/webProfile11/features.xml").readLines() } |
372 | 373 | def javaee8Features() { project.file("profiles/javaee8/features.xml").readLines() } |
373 | 374 | def jakartaee10Features() { project.file("profiles/jakartaee10/features.xml").readLines() } |
| 375 | +def jakartaee11Features() { project.file("profiles/jakartaee11/features.xml").readLines() } |
374 | 376 | def microProfile4Features() { project.file("profiles/microProfile4/features.xml").readLines() } |
375 | 377 | def microProfile6Features() { project.file("profiles/microProfile6/features.xml").readLines() } |
376 | 378 |
|
@@ -559,6 +561,44 @@ if (isAutomatedBuild && !isIFIXBuild) { |
559 | 561 | } |
560 | 562 | } |
561 | 563 |
|
| 564 | + //GA |
| 565 | + task packageOpenLibertyWebProfile11(type: PackageLibertyWithFeatures) { |
| 566 | + dependsOn parent.subprojects.assemble |
| 567 | + dependsOn ':com.ibm.websphere.appserver.features:publishFeatureResources' |
| 568 | + withFeatures this.&webProfile11Features |
| 569 | + packageServerConflict = "com.ibm.websphere.appserver.sessionStore,com.ibm.websphere.appserver.jdbc" |
| 570 | + outputTo new File(packageDir, "webProfile11") |
| 571 | + doLast { |
| 572 | + copy { |
| 573 | + from "$packageDir/webProfile11/wlp/templates/servers/webProfile11/server.xml" |
| 574 | + into "$packageDir/webProfile11/wlp/templates/servers/defaultServer" |
| 575 | + } |
| 576 | + copy { |
| 577 | + from "$packageDir/webProfile11/wlp/templates/clients/jakartaeeClient11/client.xml" |
| 578 | + into "$packageDir/webProfile11/wlp/templates/clients/defaultClient" |
| 579 | + } |
| 580 | + } |
| 581 | + } |
| 582 | + |
| 583 | + //GA |
| 584 | + task packageOpenLibertyJakartaee11(type: PackageLibertyWithFeatures) { |
| 585 | + dependsOn parent.subprojects.assemble |
| 586 | + dependsOn ':com.ibm.websphere.appserver.features:publishFeatureResources' |
| 587 | + withFeatures this.&jakartaee11Features |
| 588 | + packageServerConflict = "com.ibm.websphere.appserver.sessionStore,com.ibm.websphere.appserver.jdbc" |
| 589 | + outputTo new File(packageDir, "jakartaee11") |
| 590 | + doLast { |
| 591 | + copy { |
| 592 | + from "$packageDir/jakartaee11/wlp/templates/servers/jakartaee11/server.xml" |
| 593 | + into "$packageDir/jakartaee11/wlp/templates/servers/defaultServer" |
| 594 | + } |
| 595 | + copy { |
| 596 | + from "$packageDir/jakartaee11/wlp/templates/clients/jakartaeeClient11/client.xml" |
| 597 | + into "$packageDir/jakartaee11/wlp/templates/clients/defaultClient" |
| 598 | + } |
| 599 | + } |
| 600 | + } |
| 601 | + |
562 | 602 | //GA |
563 | 603 | task packageOpenLibertyMicroProfile4(type: PackageLibertyWithFeatures) { |
564 | 604 | doFirst { |
@@ -765,6 +805,46 @@ if (isAutomatedBuild && !isIFIXBuild) { |
765 | 805 | } |
766 | 806 | publish.dependsOn cleanupOpenLibertyJakartaee10Package |
767 | 807 |
|
| 808 | + // GA: Includes only features listed in profiles/webProfile11/features.xml |
| 809 | + task zipOpenLibertyWebProfile11(type: Zip) { |
| 810 | + dependsOn packageOpenLibertyWebProfile11 |
| 811 | + dependsOn genChecksums |
| 812 | + archiveBaseName = 'openliberty-webProfile11' |
| 813 | + from(packageOpenLibertyWebProfile11) |
| 814 | + destinationDirectory = distsDirectory |
| 815 | + archiveVersion = releaseVersion |
| 816 | + doLast { |
| 817 | + rootProject.userProps.setProperty('zipopenliberty.webprofile11.archivename', archivePath.toString()) |
| 818 | + rootProject.storeProps() |
| 819 | + } |
| 820 | + } |
| 821 | + |
| 822 | + task cleanupOpenLibertyWebProfile11Package(type: Delete) { |
| 823 | + dependsOn zipOpenLibertyWebProfile11 |
| 824 | + delete(packageOpenLibertyWebProfile11) |
| 825 | + } |
| 826 | + publish.dependsOn cleanupOpenLibertyWebProfile11Package |
| 827 | + |
| 828 | + // GA: Includes only features listed in profiles/jakartaee11/features.xml |
| 829 | + task zipOpenLibertyJakartaee11(type: Zip) { |
| 830 | + dependsOn packageOpenLibertyJakartaee11 |
| 831 | + dependsOn genChecksums |
| 832 | + archiveBaseName = 'openliberty-jakartaee11' |
| 833 | + from(packageOpenLibertyJakartaee11) |
| 834 | + destinationDirectory = distsDirectory |
| 835 | + archiveVersion = releaseVersion |
| 836 | + doLast { |
| 837 | + rootProject.userProps.setProperty('zipopenliberty.jakartaee11.archivename', archivePath.toString()) |
| 838 | + rootProject.storeProps() |
| 839 | + } |
| 840 | + } |
| 841 | + |
| 842 | + task cleanupOpenLibertyJakartaee11Package(type: Delete) { |
| 843 | + dependsOn zipOpenLibertyJakartaee11 |
| 844 | + delete(packageOpenLibertyJakartaee11) |
| 845 | + } |
| 846 | + publish.dependsOn cleanupOpenLibertyJakartaee11Package |
| 847 | + |
768 | 848 | // GA: Includes only features listed in profiles/microProfile4/features.xml |
769 | 849 | task zipOpenLibertyMicroProfile4(type: Zip) { |
770 | 850 | dependsOn packageOpenLibertyMicroProfile4 |
@@ -835,6 +915,8 @@ if (isAutomatedBuild && !isIFIXBuild) { |
835 | 915 | dependsOn cleanupOpenLibertyJavaee8Package |
836 | 916 | dependsOn cleanupOpenLibertyJakartaee10Package |
837 | 917 | dependsOn cleanupOpenLibertyWebProfile10Package |
| 918 | + dependsOn cleanupOpenLibertyJakartaee11Package |
| 919 | + dependsOn cleanupOpenLibertyWebProfile11Package |
838 | 920 | dependsOn cleanupOpenLibertyMicroProfile4Package |
839 | 921 | dependsOn cleanupOpenLibertyMicroProfile6Package |
840 | 922 | dependsOn cleanupOpenLibertyBetaPackage |
|
0 commit comments