This is an automated email from the ASF dual-hosted git repository. jleroux pushed a commit to branch release18.12 in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
commit 0ba2011f26d561e08683cc5cb521dfa68a93fa0c Author: Jacques Le Roux <[email protected]> AuthorDate: Mon Jan 1 18:02:06 2024 +0100 Improved: Replace SvnCheckout in Gradle (OFBIZ-12868 Comments out the pullPluginSource and pullAllPluginsSource Gradle tasks and updates the documentation to use the pullPluginSource and pullAllPluginsSource OS scripts Conflicts handled by hand in README.adoc --- README.adoc | 24 ++++---- .../datamodel/data/demo/AccountingDemoData.xml | 69 +++------------------- build.gradle | 4 +- 3 files changed, 22 insertions(+), 75 deletions(-) diff --git a/README.adoc b/README.adoc index cfe775a3d5..b0a32349bb 100644 --- a/README.adoc +++ b/README.adoc @@ -18,6 +18,7 @@ under the License. //// [[apache-ofbiz]] = Apache OFBiz® +The Apache OFBiz Project image:https://img.shields.io/badge/License-Apache%202.0-blue.svg[link=http://www.apache.org/licenses/LICENSE-2.0] image:https://img.shields.io/badge/Version-release18.12-green.svg[link=https://github.com/apache/ofbiz-framework/tree/release18.12] @@ -678,23 +679,24 @@ If you need username and password to access the custom repository: === Pull an official plugin from source control Download an official plugin from source control and place it in the plugins directory. -In addition, this task also executes the "install" task if it is defined for the plugin being downloaded. +It's able to handle branches switches -This task is mostly useful when working on the trunk branch as it pulls in the -latest version of a plugin. +MS Windows: `pullPluginSource example` + +Unix-like OS: `./pullPluginSource.sh example` -`gradlew pullPluginSource -PpluginId=ecommerce` - -________________________________________________________________________________________ [[pull-all-official-plugins-from-source-control]] === Pull all official plugins from source control Download all officially supported plugins from source control (currently -subversion) and place them in /plugins. +git) and place them in /plugins. +It's able to handle branches switches + WARNING! This task deletes the /plugins directory and replaces it with the official plugins. -`gradlew pullAllPluginsSource` +MS Windows: `pullAllPluginsSource` + +Unix-like OS: `./pullAllPluginsSource.sh` + This task makes it easy to download and develop officially supported plugins. It is mostly used by developers or individuals working on the trunk branch. We do @@ -794,9 +796,9 @@ as a replacement for both "special-purpose" and "hot-deploy". If you need to load the components in the plugins directory in a specific order place a component-load.xml file in the plugins directory listing the order. -To check out a plugin from source control use the *pullPluginSource* Gradle -task. To check out all plugins from source control use the -*pullAllPluginsSource*. *Beware* this deletes a previously existing plugins +To check out a plugin from source control use the Windows or Unix-like *pullPluginSource* script. +To check out all plugins from source control use the +*pullAllPluginsSource* script. *Beware* this deletes a previously existing plugins directory. [[running-gradle-tasks-without-an-internet-connection]] diff --git a/applications/datamodel/data/demo/AccountingDemoData.xml b/applications/datamodel/data/demo/AccountingDemoData.xml index 9e0516cc44..35ef12e287 100644 --- a/applications/datamodel/data/demo/AccountingDemoData.xml +++ b/applications/datamodel/data/demo/AccountingDemoData.xml @@ -847,56 +847,13 @@ under the License. <VarianceReasonGlAccount organizationPartyId="Company" varianceReasonId="VAR_INTEGR" glAccountId="514000"/> <VarianceReasonGlAccount organizationPartyId="Company" varianceReasonId="VAR_SAMPLE" glAccountId="625000"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4900" periodTypeId="FISCAL_YEAR" fromDate="2009-01-01 00:00:00.000" thruDate="2010-01-01 00:00:00.000" isClosed="N" periodNum="1" periodName="FY2009"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6010" periodTypeId="FISCAL_YEAR" fromDate="2010-01-01 00:00:00.000" thruDate="2011-01-01 00:00:00.000" isClosed="N" periodNum="2" periodName="FY2010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6015" periodTypeId="FISCAL_YEAR" fromDate="2011-01-01 00:00:00.000" thruDate="2012-01-01 00:00:00.000" isClosed="N" periodNum="3" periodName="FY2011"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5200" periodTypeId="FISCAL_YEAR" fromDate="2012-01-01 00:00:00.000" thruDate="2013-01-01 00:00:00.000" isClosed="N" periodNum="4" periodName="FY2012"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5300" periodTypeId="FISCAL_YEAR" fromDate="2013-01-01 00:00:00.000" thruDate="2014-01-01 00:00:00.000" isClosed="N" periodNum="5" periodName="FY2013"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5400" periodTypeId="FISCAL_YEAR" fromDate="2014-01-01 00:00:00.000" thruDate="2015-01-01 00:00:00.000" isClosed="N" periodNum="6" periodName="FY2014"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5500" periodTypeId="FISCAL_YEAR" fromDate="2015-01-01 00:00:00.000" thruDate="2016-01-01 00:00:00.000" isClosed="N" periodNum="7" periodName="FY2015"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5600" periodTypeId="FISCAL_YEAR" fromDate="2016-01-01 00:00:00.000" thruDate="2017-01-01 00:00:00.000" isClosed="N" periodNum="8" periodName="FY2016"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5700" periodTypeId="FISCAL_YEAR" fromDate="2017-01-01 00:00:00.000" thruDate="2018-01-01 00:00:00.000" isClosed="N" periodNum="9" periodName="FY2017"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5800" periodTypeId="FISCAL_YEAR" fromDate="2018-01-01 00:00:00.000" thruDate="2019-01-01 00:00:00.000" isClosed="N" periodNum="10" periodName="FY2018"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5900" periodTypeId="FISCAL_YEAR" fromDate="2019-01-01 00:00:00.000" thruDate="2020-01-01 00:00:00.000" isClosed="N" periodNum="11" periodName="FY2019"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6000" periodTypeId="FISCAL_YEAR" fromDate="2020-01-01 00:00:00.000" thruDate="2021-01-01 00:00:00.000" isClosed="N" periodNum="12" periodName="FY2020"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6100" periodTypeId="FISCAL_YEAR" fromDate="2021-01-01 00:00:00.000" thruDate="2022-01-01 00:00:00.000" isClosed="N" periodNum="13" periodName="FY2021"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6200" periodTypeId="FISCAL_YEAR" fromDate="2022-01-01 00:00:00.000" thruDate="2023-01-01 00:00:00.000" isClosed="N" periodNum="14" periodName="FY2022"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6300" periodTypeId="FISCAL_YEAR" fromDate="2023-01-01 00:00:00.000" thruDate="2024-01-01 00:00:00.000" isClosed="N" periodNum="15" periodName="FY2023"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6400" periodTypeId="FISCAL_YEAR" fromDate="2024-01-01 00:00:00.000" thruDate="2025-01-01 00:00:00.000" isClosed="N" periodNum="15" periodName="FY2024"/> - - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4921" periodTypeId="FISCAL_QUARTER" fromDate="2009-01-01 00:00:00.000" thruDate="2009-04-01 00:00:00.000" isClosed="N" periodNum="1" periodName="2009/Q1" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4922" periodTypeId="FISCAL_QUARTER" fromDate="2009-04-01 00:00:00.000" thruDate="2009-07-01 00:00:00.000" isClosed="N" periodNum="2" periodName="2009/Q2" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4923" periodTypeId="FISCAL_QUARTER" fromDate="2009-07-01 00:00:00.000" thruDate="2009-10-01 00:00:00.000" isClosed="N" periodNum="3" periodName="2009/Q3" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4924" periodTypeId="FISCAL_QUARTER" fromDate="2009-10-01 00:00:00.000" thruDate="2010-01-01 00:00:00.000" isClosed="N" periodNum="4" periodName="2009/Q4" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4901" periodTypeId="FISCAL_MONTH" fromDate="2009-01-01 00:00:00.000" thruDate="2009-02-01 00:00:00.000" isClosed="N" periodNum="1" periodName="2009/M01" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4902" periodTypeId="FISCAL_MONTH" fromDate="2009-02-01 00:00:00.000" thruDate="2009-03-01 00:00:00.000" isClosed="N" periodNum="2" periodName="2009/M02" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4903" periodTypeId="FISCAL_MONTH" fromDate="2009-03-01 00:00:00.000" thruDate="2009-04-01 00:00:00.000" isClosed="N" periodNum="3" periodName="2009/M03" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4904" periodTypeId="FISCAL_MONTH" fromDate="2009-04-01 00:00:00.000" thruDate="2009-05-01 00:00:00.000" isClosed="N" periodNum="4" periodName="2009/M04" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4905" periodTypeId="FISCAL_MONTH" fromDate="2009-05-01 00:00:00.000" thruDate="2009-06-01 00:00:00.000" isClosed="N" periodNum="5" periodName="2009/M05" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4906" periodTypeId="FISCAL_MONTH" fromDate="2009-06-01 00:00:00.000" thruDate="2009-07-01 00:00:00.000" isClosed="N" periodNum="6" periodName="2009/M06" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4907" periodTypeId="FISCAL_MONTH" fromDate="2009-07-01 00:00:00.000" thruDate="2009-08-01 00:00:00.000" isClosed="N" periodNum="7" periodName="2009/M07" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4908" periodTypeId="FISCAL_MONTH" fromDate="2009-08-01 00:00:00.000" thruDate="2009-09-01 00:00:00.000" isClosed="N" periodNum="8" periodName="2009/M08" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4909" periodTypeId="FISCAL_MONTH" fromDate="2009-09-01 00:00:00.000" thruDate="2009-10-01 00:00:00.000" isClosed="N" periodNum="9" periodName="2009/M09" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4910" periodTypeId="FISCAL_MONTH" fromDate="2009-10-01 00:00:00.000" thruDate="2009-11-01 00:00:00.000" isClosed="N" periodNum="10" periodName="2009/M10" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4911" periodTypeId="FISCAL_MONTH" fromDate="2009-11-01 00:00:00.000" thruDate="2009-12-01 00:00:00.000" isClosed="N" periodNum="11" periodName="2009/M11" parentPeriodId="4900"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="4912" periodTypeId="FISCAL_MONTH" fromDate="2009-12-01 00:00:00.000" thruDate="2010-01-01 00:00:00.000" isClosed="N" periodNum="12" periodName="2009/M12" parentPeriodId="4900"/> - - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6011" periodTypeId="FISCAL_QUARTER" fromDate="2010-01-01 00:00:00.000" thruDate="2010-04-01 00:00:00.0" isClosed="N" periodNum="1" periodName="2010/Q1" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6012" periodTypeId="FISCAL_QUARTER" fromDate="2010-04-01 00:00:00.000" thruDate="2010-07-01 00:00:00.0" isClosed="N" periodNum="2" periodName="2010/Q2" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6013" periodTypeId="FISCAL_QUARTER" fromDate="2010-07-01 00:00:00.000" thruDate="2010-10-01 00:00:00.0" isClosed="N" periodNum="3" periodName="2010/Q3" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6014" periodTypeId="FISCAL_QUARTER" fromDate="2010-10-01 00:00:00.000" thruDate="2011-01-01 00:00:00.0" isClosed="N" periodNum="4" periodName="2010/Q4" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5001" periodTypeId="FISCAL_MONTH" fromDate="2010-01-01 00:00:00.0" thruDate="2010-02-01 00:00:00.0" isClosed="N" periodNum="1" periodName="2010/M01" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5002" periodTypeId="FISCAL_MONTH" fromDate="2010-02-01 00:00:00.0" thruDate="2010-03-01 00:00:00.0" isClosed="N" periodNum="2" periodName="2010/M02" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5003" periodTypeId="FISCAL_MONTH" fromDate="2010-03-01 00:00:00.0" thruDate="2010-04-01 00:00:00.0" isClosed="N" periodNum="3" periodName="2010/M03" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5004" periodTypeId="FISCAL_MONTH" fromDate="2010-04-01 00:00:00.0" thruDate="2010-05-01 00:00:00.0" isClosed="N" periodNum="4" periodName="2010/M04" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5005" periodTypeId="FISCAL_MONTH" fromDate="2010-05-01 00:00:00.0" thruDate="2010-06-01 00:00:00.0" isClosed="N" periodNum="5" periodName="2010/M05" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5006" periodTypeId="FISCAL_MONTH" fromDate="2010-06-01 00:00:00.0" thruDate="2010-07-01 00:00:00.0" isClosed="N" periodNum="6" periodName="2010/M06" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5007" periodTypeId="FISCAL_MONTH" fromDate="2010-07-01 00:00:00.0" thruDate="2010-08-01 00:00:00.0" isClosed="N" periodNum="7" periodName="2010/M07" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5008" periodTypeId="FISCAL_MONTH" fromDate="2010-08-01 00:00:00.0" thruDate="2010-09-01 00:00:00.0" isClosed="N" periodNum="8" periodName="2010/M08" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5009" periodTypeId="FISCAL_MONTH" fromDate="2010-09-01 00:00:00.0" thruDate="2010-10-01 00:00:00.0" isClosed="N" periodNum="9" periodName="2010/M09" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5010" periodTypeId="FISCAL_MONTH" fromDate="2010-10-01 00:00:00.0" thruDate="2010-11-01 00:00:00.0" isClosed="N" periodNum="10" periodName="2010/M10" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5011" periodTypeId="FISCAL_MONTH" fromDate="2010-11-01 00:00:00.0" thruDate="2010-12-01 00:00:00.0" isClosed="N" periodNum="11" periodName="2010/M11" parentPeriodId="6010"/> - <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="5012" periodTypeId="FISCAL_MONTH" fromDate="2010-12-01 00:00:00.0" thruDate="2011-01-01 00:00:00.0" isClosed="N" periodNum="12" periodName="2010/M12" parentPeriodId="6010"/> + <!-- Some Sample Time Periods, two Years with Quarters --> + <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6010" periodTypeId="FISCAL_YEAR" fromDate="2010-01-01 00:00:00.000" thruDate="2011-01-01 23:59:59.000" isClosed="N" periodNum="1" periodName="2010"/> + <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6011" periodTypeId="FISCAL_QUARTER" fromDate="2010-01-01 00:00:00.000" thruDate="2010-04-01 23:59:59.000" isClosed="N" periodNum="2" periodName="2010/Q1" parentPeriodId="6010"/> + <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6012" periodTypeId="FISCAL_QUARTER" fromDate="2010-04-01 00:00:00.000" thruDate="2010-07-01 23:59:59.000" isClosed="N" periodNum="3" periodName="2010/Q2" parentPeriodId="6010"/> + <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6013" periodTypeId="FISCAL_QUARTER" fromDate="2010-07-01 00:00:00.000" thruDate="2010-10-01 23:59:59.000" isClosed="N" periodNum="4" periodName="2010/Q3" parentPeriodId="6010"/> + <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6014" periodTypeId="FISCAL_QUARTER" fromDate="2010-10-01 00:00:00.000" thruDate="2011-01-01 23:59:59.000" isClosed="N" periodNum="5" periodName="2010/Q4" parentPeriodId="6010"/> + <CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6015" periodTypeId="FISCAL_YEAR" fromDate="2011-01-01 00:00:00.000" thruDate="2030-01-01 23:59:59.000" isClosed="N" periodNum="1" periodName="2011-2030"/> <!-- to convert demo invoice --> <UomConversionDated uomId="USD" uomIdTo="EUR" fromDate="2001-01-01 00:00:00.0" conversionFactor="0.7"/> @@ -1035,14 +992,6 @@ under the License. <TaxAuthority taxAuthGeoId="ON" taxAuthPartyId="ON_TAXMAN" includeTaxInPrice="Y"/> <TaxAuthorityGlAccount taxAuthGeoId="ON" taxAuthPartyId="ON_TAXMAN" organizationPartyId="Company" glAccountId="224209"/> - <!-- China TaxAuthority defs --> - <Party partyId="CHN_STA" partyTypeId="PARTY_GROUP" preferredCurrencyUomId="CNY" statusId="PARTY_ENABLED" createdDate="2009-01-01 00:00:00.000"/> - <PartyGroup partyId="CHN_STA" groupName="State Taxation Administration"/> - <PartyRole partyId="CHN_STA" roleTypeId="TAX_AUTHORITY"/> - <TaxAuthority taxAuthGeoId="CHN" taxAuthPartyId="CHN_STA" includeTaxInPrice="N" requireTaxIdForExemption="Y" - taxIdFormatPattern=""/> - <TaxAuthorityGlAccount taxAuthGeoId="CHN" taxAuthPartyId="CHN_STA" organizationPartyId="Company" glAccountId="224209"/> - <!-- Party TaxAuthority info for Company --> <!-- some interesting information at: http://www.taxadmin.org/fta/rate/tax_stru.html --> <PartyTaxAuthInfo partyId="Company" taxAuthGeoId="_NA_" taxAuthPartyId="_NA_" fromDate="2001-05-13 00:00:00.001" isNexus="Y"/> @@ -1652,8 +1601,4 @@ under the License. inventoryItemId="9030" inventoryItemTypeId="NON_SERIAL_INV_ITEM" productId="MAT_B_COST" ownerPartyId="Company" currencyUomId="USD" unitCost="7.0"/> <InventoryItemDetail inventoryItemId="9030" inventoryItemDetailSeqId="0001" effectiveDate="2001-05-13 12:00:00.0" availableToPromiseDiff="20" quantityOnHandDiff="20" accountingQuantityDiff="20"/> - <!-- defaut template screen use for Company --> - <CustomScreen customScreenId="DEFAULT_INV_TPL" customScreenTypeId="CST_INVOICE_TPL" customScreenName="DefaultInvoicePDF" customScreenLocation="component://accounting/widget/AccountingPrintScreens.xml"/> - <PartyPrefDocTypeTpl partyPrefDocTypeTplId="InvTplInvoice" partyId="Company" fromDate="2001-05-13 00:00:00" invoiceTypeId="INVOICE" customScreenId="DEFAULT_INV_TPL"/> - </entity-engine-xml> diff --git a/build.gradle b/build.gradle index 06cc546a2e..5469b8c358 100644 --- a/build.gradle +++ b/build.gradle @@ -964,7 +964,7 @@ task pullPlugin(group: ofbizPlugin, description: 'Download and install a plugin } } } - +/* The pullPluginSource and pullPluginSource task are now replaced by the OS scripts pullPluginSource and pullAllPluginsSource task pullPluginSource(group: ofbizPlugin, description: 'Download and install a plugin from source control') { if (project.hasProperty('pluginId')) { @@ -1008,7 +1008,7 @@ task pullAllPluginsSource(group: ofbizPlugin, doLast { gradlewSubprocess(['installAllPlugins']) } -} +}*/ // ========== Clean up tasks ========== task cleanCatalina(group: cleanupGroup, description: 'Clean Catalina data in runtime/catalina/work') {

