Skip to content

Commit

Permalink
[SM-142] Rename CommCore to Commercial.Core (#2158)
Browse files Browse the repository at this point in the history
* Rename CommCore to Commercial.Core
  • Loading branch information
Hinton authored Aug 2, 2022
1 parent 038d5e7 commit 1cad026
Show file tree
Hide file tree
Showing 26 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
shell: pwsh

- name: Test Bitwarden solution
run: dotnet test ./bitwarden_license/test/CmmCore.Test --configuration Debug --no-build
run: dotnet test ./bitwarden_license/test/Commercial.Core.Test --configuration Debug --no-build
shell: pwsh


Expand Down
6 changes: 3 additions & 3 deletions LICENSE_FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ Our current software products have the following licenses:

*Bitwarden server:* The main Bitwarden server code is licensed under the AGPL 3.0 license.

*CommCore and SSO integration:* Code for certain new modules that are designed and developed for use by larger
*Commercial.Core and SSO integration:* Code for certain new modules that are designed and developed for use by larger
organizations and enterprise environments is released under the Bitwarden License, a "source available" license. The
Bitwarden License provides users access to product source code for non-production purposes such as development and
testing, but requires a paid subscription for production use of the product, and environments supporting production.
Additionally the Api module by default includes CommCore which is under the Bitwarden License, however this can be
disabled by using `/p:DefineConstants="OSS"` as an argument to `dotnet` while building the module.
Additionally the Api module by default includes Commercial.Core which is under the Bitwarden License, however this can
be disabled by using `/p:DefineConstants="OSS"` as an argument to `dotnet` while building the module.

# Frequently Asked Questions

Expand Down
4 changes: 2 additions & 2 deletions bitwarden-server.sln
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sso", "bitwarden_license\sr
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Icons.Test", "test\Icons.Test\Icons.Test.csproj", "{C7BA2255-C1B1-4789-8BB9-C27540DA6FB8}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CommCore", "bitwarden_license\src\CommCore\CommCore.csproj", "{EDC0D688-D58C-4CE1-AA07-3606AC6874B8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commercial.Core", "bitwarden_license\src\Commercial.Core\Commercial.Core.csproj", "{EDC0D688-D58C-4CE1-AA07-3606AC6874B8}"
ProjectSection(ProjectDependencies) = postProject
{3973D21B-A692-4B60-9B70-3631C057423A} = {3973D21B-A692-4B60-9B70-3631C057423A}
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CommCore.Test", "bitwarden_license\test\CmmCore.Test\CommCore.Test.csproj", "{0E99A21B-684B-4C59-9831-90F775CAB6F7}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commercial.Core.Test", "bitwarden_license\test\Commercial.Core.Test\Commercial.Core.Test.csproj", "{0E99A21B-684B-4C59-9831-90F775CAB6F7}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test - Bitwarden License", "test - Bitwarden License", "{287CFF34-BBDB-4BC4-AF88-1E19A5A4679B}"
EndProject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using Bit.Core.Utilities;
using Microsoft.AspNetCore.DataProtection;

namespace Bit.CommCore.Services
namespace Bit.Commercial.Core.Services
{
public class ProviderService : IProviderService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Bit.CommCore.Services;
using Bit.Commercial.Core.Services;
using Bit.Core.Services;
using Microsoft.Extensions.DependencyInjection;

namespace Bit.CommCore.Utilities
namespace Bit.Commercial.Core.Utilities
{
public static class ServiceCollectionExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using AutoFixture.Xunit2;
using Bit.Core.Enums.Provider;

namespace Bit.CommCore.Test.AutoFixture.ProviderUserFixtures
namespace Bit.Commercial.Core.Test.AutoFixture
{
internal class ProviderUser : ICustomization
{
Expand All @@ -18,7 +18,7 @@ public ProviderUser(ProviderUserStatusType status, ProviderUserType type)

public void Customize(IFixture fixture)
{
fixture.Customize<Core.Entities.Provider.ProviderUser>(composer => composer
fixture.Customize<Bit.Core.Entities.Provider.ProviderUser>(composer => composer
.With(o => o.Type, Type)
.With(o => o.Status, Status));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\CommCore\CommCore.csproj" />
<ProjectReference Include="..\..\src\Commercial.Core\Commercial.Core.csproj" />
<ProjectReference Include="..\..\..\test\Core.Test\Core.Test.csproj" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Bit.CommCore.Services;
using Bit.CommCore.Test.AutoFixture.ProviderUserFixtures;
using Bit.Commercial.Core.Services;
using Bit.Commercial.Core.Test.AutoFixture;
using Bit.Core.Context;
using Bit.Core.Entities;
using Bit.Core.Entities.Provider;
Expand All @@ -19,7 +19,7 @@
using Xunit;
using ProviderUser = Bit.Core.Entities.Provider.ProviderUser;

namespace Bit.CommCore.Test.Services
namespace Bit.Commercial.Core.Test.Services
{
public class ProviderServiceTests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2880,13 +2880,13 @@
"type": "Project",
"dependencies": {
"Azure.Messaging.EventGrid": "4.10.0",
"CommCore": "2022.6.2",
"Commercial.Core": "2022.6.2",
"Core": "2022.6.2",
"SharedWeb": "2022.6.2",
"Swashbuckle.AspNetCore": "6.3.1"
}
},
"commcore": {
"commercial.core": {
"type": "Project",
"dependencies": {
"Core": "2022.6.2"
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/Admin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Choose>
<When Condition="!$(DefineConstants.Contains('OSS'))">
<ItemGroup>
<ProjectReference Include="..\..\bitwarden_license\src\CommCore\CommCore.csproj" />
<ProjectReference Include="..\..\bitwarden_license\src\Commercial.Core\Commercial.Core.csproj" />
</ItemGroup>
</When>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Stripe;

#if !OSS
using Bit.CommCore.Utilities;
using Bit.Commercial.Core.Utilities;
#endif

namespace Bit.Admin
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -3145,7 +3145,7 @@
"NETStandard.Library": "1.6.1"
}
},
"commcore": {
"commercial.core": {
"type": "Project",
"dependencies": {
"Core": "2022.6.2"
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<Choose>
<When Condition="!$(DefineConstants.Contains('OSS'))">
<ItemGroup>
<ProjectReference Include="..\..\bitwarden_license\src\CommCore\CommCore.csproj" />
<ProjectReference Include="..\..\bitwarden_license\src\Commercial.Core\Commercial.Core.csproj" />
</ItemGroup>
</When>
</Choose>
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
using Microsoft.Extensions.DependencyInjection.Extensions;

#if !OSS
using Bit.CommCore.Utilities;
using Bit.Commercial.Core.Utilities;
#endif

namespace Bit.Api
Expand Down
2 changes: 1 addition & 1 deletion src/Api/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2645,7 +2645,7 @@
"NETStandard.Library": "1.6.1"
}
},
"commcore": {
"commercial.core": {
"type": "Project",
"dependencies": {
"Core": "2022.6.2"
Expand Down
4 changes: 2 additions & 2 deletions test/Api.Test/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2873,13 +2873,13 @@
"type": "Project",
"dependencies": {
"Azure.Messaging.EventGrid": "4.10.0",
"CommCore": "2022.6.2",
"Commercial.Core": "2022.6.2",
"Core": "2022.6.2",
"SharedWeb": "2022.6.2",
"Swashbuckle.AspNetCore": "6.3.1"
}
},
"commcore": {
"commercial.core": {
"type": "Project",
"dependencies": {
"Core": "2022.6.2"
Expand Down
4 changes: 2 additions & 2 deletions test/Billing.Test/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -3393,7 +3393,7 @@
"type": "Project",
"dependencies": {
"Azure.Messaging.EventGrid": "4.10.0",
"CommCore": "2022.6.2",
"Commercial.Core": "2022.6.2",
"Core": "2022.6.2",
"SharedWeb": "2022.6.2",
"Swashbuckle.AspNetCore": "6.3.1"
Expand All @@ -3407,7 +3407,7 @@
"SharedWeb": "2022.6.2"
}
},
"commcore": {
"commercial.core": {
"type": "Project",
"dependencies": {
"Core": "2022.6.2"
Expand Down
4 changes: 2 additions & 2 deletions test/Common/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2869,13 +2869,13 @@
"type": "Project",
"dependencies": {
"Azure.Messaging.EventGrid": "4.10.0",
"CommCore": "2022.6.2",
"Commercial.Core": "2022.6.2",
"Core": "2022.6.2",
"SharedWeb": "2022.6.2",
"Swashbuckle.AspNetCore": "6.3.1"
}
},
"commcore": {
"commercial.core": {
"type": "Project",
"dependencies": {
"Core": "2022.6.2"
Expand Down
4 changes: 2 additions & 2 deletions test/Core.Test/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2885,13 +2885,13 @@
"type": "Project",
"dependencies": {
"Azure.Messaging.EventGrid": "4.10.0",
"CommCore": "2022.6.2",
"Commercial.Core": "2022.6.2",
"Core": "2022.6.2",
"SharedWeb": "2022.6.2",
"Swashbuckle.AspNetCore": "6.3.1"
}
},
"commcore": {
"commercial.core": {
"type": "Project",
"dependencies": {
"Core": "2022.6.2"
Expand Down
4 changes: 2 additions & 2 deletions test/Identity.IntegrationTest/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -3010,13 +3010,13 @@
"type": "Project",
"dependencies": {
"Azure.Messaging.EventGrid": "4.10.0",
"CommCore": "2022.6.2",
"Commercial.Core": "2022.6.2",
"Core": "2022.6.2",
"SharedWeb": "2022.6.2",
"Swashbuckle.AspNetCore": "6.3.1"
}
},
"commcore": {
"commercial.core": {
"type": "Project",
"dependencies": {
"Core": "2022.6.2"
Expand Down
4 changes: 2 additions & 2 deletions test/Identity.Test/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2873,13 +2873,13 @@
"type": "Project",
"dependencies": {
"Azure.Messaging.EventGrid": "4.10.0",
"CommCore": "2022.6.2",
"Commercial.Core": "2022.6.2",
"Core": "2022.6.2",
"SharedWeb": "2022.6.2",
"Swashbuckle.AspNetCore": "6.3.1"
}
},
"commcore": {
"commercial.core": {
"type": "Project",
"dependencies": {
"Core": "2022.6.2"
Expand Down
4 changes: 2 additions & 2 deletions test/IntegrationTestCommon/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2996,13 +2996,13 @@
"type": "Project",
"dependencies": {
"Azure.Messaging.EventGrid": "4.10.0",
"CommCore": "2022.6.2",
"Commercial.Core": "2022.6.2",
"Core": "2022.6.2",
"SharedWeb": "2022.6.2",
"Swashbuckle.AspNetCore": "6.3.1"
}
},
"commcore": {
"commercial.core": {
"type": "Project",
"dependencies": {
"Core": "2022.6.2"
Expand Down
4 changes: 2 additions & 2 deletions util/MySqlMigrations/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2662,13 +2662,13 @@
"type": "Project",
"dependencies": {
"Azure.Messaging.EventGrid": "4.10.0",
"CommCore": "2022.6.2",
"Commercial.Core": "2022.6.2",
"Core": "2022.6.2",
"SharedWeb": "2022.6.2",
"Swashbuckle.AspNetCore": "6.3.1"
}
},
"commcore": {
"commercial.core": {
"type": "Project",
"dependencies": {
"Core": "2022.6.2"
Expand Down
4 changes: 2 additions & 2 deletions util/PostgresMigrations/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2662,13 +2662,13 @@
"type": "Project",
"dependencies": {
"Azure.Messaging.EventGrid": "4.10.0",
"CommCore": "2022.6.2",
"Commercial.Core": "2022.6.2",
"Core": "2022.6.2",
"SharedWeb": "2022.6.2",
"Swashbuckle.AspNetCore": "6.3.1"
}
},
"commcore": {
"commercial.core": {
"type": "Project",
"dependencies": {
"Core": "2022.6.2"
Expand Down

0 comments on commit 1cad026

Please sign in to comment.