generated from Apodini/Template-Repository
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
48 lines (44 loc) · 1.67 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// swift-tools-version:5.5
//
// This source file is part of the Apodini open source project
//
// SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]>
//
// SPDX-License-Identifier: MIT
//
import PackageDescription
let package = Package(
name: "ApodiniObservePrometheus",
platforms: [
.macOS(.v11)
],
products: [
.library(name: "ApodiniObservePrometheus", targets: ["ApodiniObservePrometheus"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/Apodini/Apodini.git", .upToNextMinor(from: "0.9.0")),
.package(url: "https://github.com/apple/swift-metrics.git", .upToNextMinor(from: "2.2.0")),
.package(url: "https://github.com/MrLotU/SwiftPrometheus.git", from: "1.0.0-alpha")
],
targets: [
.target(
name: "ApodiniObservePrometheus",
dependencies: [
.product(name: "Apodini", package: "Apodini"),
.product(name: "ApodiniObserve", package: "Apodini"),
.product(name: "Metrics", package: "swift-metrics"),
.product(name: "SwiftPrometheus", package: "SwiftPrometheus")
]
),
.testTarget(
name: "ApodiniObservePrometheusTests",
dependencies: [
.target(name: "ApodiniObservePrometheus"),
.product(name: "XCTApodiniObserve", package: "Apodini"),
.product(name: "XCTApodini", package: "Apodini"),
.product(name: "ApodiniHTTP", package: "Apodini")
]
)
]
)