Skip to content

Commit

Permalink
Prepare for RTM (#539)
Browse files Browse the repository at this point in the history
* Prepare for RTM

* Tweaks

* Update to raven6 (#540)

* Simplify

* Revert to raven5
andreasohlund authored Mar 1, 2024
1 parent c1a2fae commit 8f7c278
Showing 10 changed files with 19 additions and 104 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -34,7 +34,6 @@ jobs:
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 8.0.x
dotnet-quality: 'preview'
- name: Build
run: dotnet build src --configuration Release
- name: Azure login
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@ jobs:
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 8.0.x
dotnet-quality: 'preview'
- name: Build
run: dotnet build src --configuration Release
- name: Sign NuGet packages
Original file line number Diff line number Diff line change
@@ -97,11 +97,7 @@ public async Task Cleanup()

static DocumentStore GetInitializedDocumentStore(string defaultDatabase)
{
var url = Environment.GetEnvironmentVariable("RavenSingleNodeUrl");
if (url == null)
{
throw new Exception("RavenDB URL must be specified in an environment variable named RavenSingleNodeUrl.");
}
var url = Environment.GetEnvironmentVariable("RavenSingleNodeUrl") ?? throw new Exception("RavenDB URL must be specified in an environment variable named RavenSingleNodeUrl.");

var documentStore = new DocumentStore
{
Original file line number Diff line number Diff line change
@@ -9,9 +9,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NServiceBus.AcceptanceTesting" Version="9.0.0-alpha.4" />
<PackageReference Include="NServiceBus.Gateway.AcceptanceTests.Sources" Version="5.0.0-alpha.1" />
<PackageReference Include="RavenDB.Client" Version="5.4.110" />
<PackageReference Include="NServiceBus.AcceptanceTesting" Version="9.0.0" />
<PackageReference Include="NServiceBus.Gateway.AcceptanceTests.Sources" Version="5.0.0" />
<PackageReference Include="RavenDB.Client" Version="5.4.116" />
</ItemGroup>

<ItemGroup>
Original file line number Diff line number Diff line change
@@ -9,9 +9,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NServiceBus.AcceptanceTesting" Version="9.0.0-alpha.4" />
<PackageReference Include="NServiceBus.Gateway.AcceptanceTests.Sources" Version="5.0.0-alpha.1" />
<PackageReference Include="RavenDB.Client" Version="5.4.110" />
<PackageReference Include="NServiceBus.AcceptanceTesting" Version="9.0.0" />
<PackageReference Include="NServiceBus.Gateway.AcceptanceTests.Sources" Version="5.0.0" />
<PackageReference Include="RavenDB.Client" Version="5.4.116" />
</ItemGroup>

<ItemGroup>
2 changes: 1 addition & 1 deletion src/NServiceBus.Gateway.RavenDB.Tests/API/APIApprovals.cs
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ public void ApproveNServiceBusGatewayRavenDB()
{
var publicApi = typeof(RavenGatewayDeduplicationConfiguration).Assembly.GeneratePublicApi(new ApiGeneratorOptions
{
ExcludeAttributes = new[] { "System.Runtime.Versioning.TargetFrameworkAttribute", "System.Reflection.AssemblyMetadataAttribute" }
ExcludeAttributes = ["System.Runtime.Versioning.TargetFrameworkAttribute", "System.Reflection.AssemblyMetadataAttribute"]
});
Approver.Verify(publicApi);
}
Original file line number Diff line number Diff line change
@@ -2,20 +2,18 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\NServiceBus.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\NServiceBus.Gateway.RavenDB\NServiceBus.Gateway.RavenDB.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="NServiceBus" Version="9.0.0-alpha.4" />
<PackageReference Include="NServiceBus.Gateway" Version="5.0.0-alpha.1" />
<PackageReference Include="NServiceBus" Version="9.0.0" />
<PackageReference Include="NServiceBus.Gateway" Version="5.0.0" />
<PackageReference Include="Particular.Approvals" Version="1.0.0" />
<PackageReference Include="PublicApiGenerator" Version="11.1.0" />
<PackageReference Include="RavenDB.Client" Version="5.4.110" />
<PackageReference Include="RavenDB.Client" Version="5.4.116" />
</ItemGroup>

<ItemGroup>
Original file line number Diff line number Diff line change
@@ -3,14 +3,17 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(SolutionDir)NServiceBus.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>..\NServiceBus.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NServiceBus" Version="9.0.0-alpha.4" />
<PackageReference Include="NServiceBus.Gateway" Version="5.0.0-alpha.1" />
<PackageReference Include="NServiceBus" Version="[9.0.0, 10.0.0)" />
<PackageReference Include="NServiceBus.Gateway" Version="[5.0.0, 6.0.0)" />
<PackageReference Include="RavenDB.Client" Version="[5.4.116, 6.0.0)" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Particular.Packaging" Version="4.1.0" PrivateAssets="All" />
<PackageReference Include="RavenDB.Client" Version="[5.4.102, 6.0.0)" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ public class RavenGatewayDeduplicationConfiguration : GatewayDeduplicationConfig
/// </summary>
public RavenGatewayDeduplicationConfiguration(Func<IServiceProvider, IReadOnlySettings, IDocumentStore> documentStoreFactory)
{
Guard.AgainstNull(nameof(documentStoreFactory), documentStoreFactory);
ArgumentNullException.ThrowIfNull(documentStoreFactory);

this.documentStoreFactory = documentStoreFactory;
}
80 changes: 0 additions & 80 deletions src/NServiceBus.Gateway.RavenDB/Utils/Guard.cs

This file was deleted.

0 comments on commit 8f7c278

Please sign in to comment.