<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <RootNamespace>ZB.MOM.WW.OtOpcUa.Cluster</RootNamespace>
        <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="Akka.Hosting"/>
        <PackageReference Include="Akka.Cluster"/>
        <PackageReference Include="Akka.Cluster.Hosting"/>
        <PackageReference Include="Akka.Cluster.Tools"/>
        <PackageReference Include="Akka.Logger.Serilog"/>
        <PackageReference Include="Akka.Remote.Hosting"/>
        <PackageReference Include="Microsoft.Extensions.Hosting"/>
        <PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions"/>
    </ItemGroup>

    <ItemGroup>
        <!-- Security pin: OpenTelemetry.Api is pulled transitively at 1.9.0, which carries
             GHSA-g94r-2vxg-569j (header-parse memory DoS, Moderate). Force the patched 1.15.3
             (the meta + ProviderBuilderExtensions move in lockstep). Pinning on this low-level
             project lifts the whole server stack — Runtime / ControlPlane / AdminUI and their
             test projects inherit 1.15.3 via project reference (highest-version-wins). -->
        <PackageReference Include="OpenTelemetry"/>
        <PackageReference Include="OpenTelemetry.Api"/>
        <PackageReference Include="OpenTelemetry.Api.ProviderBuilderExtensions"/>
    </ItemGroup>

    <ItemGroup>
        <ProjectReference Include="..\ZB.MOM.WW.OtOpcUa.Commons\ZB.MOM.WW.OtOpcUa.Commons.csproj"/>
    </ItemGroup>

    <ItemGroup>
        <EmbeddedResource Include="Resources\akka.conf"/>
    </ItemGroup>

</Project>
