-
Notifications
You must be signed in to change notification settings - Fork 6
/
Package.swift
49 lines (48 loc) · 1.54 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
49
// swift-tools-version:5.8
import PackageDescription
let package = Package(
name: "SwiftPackageAcknowledgement",
platforms: [.macOS(.v10_15)],
products: [
.executable(name: "spm-ack", targets: [
"Models",
"SwiftPackageAcknowledgement"
])
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0"),
.package(url: "https://github.com/teufelaudio/FoundationExtensions", from: "0.6.2")
],
targets: [
.target(
name: "Helper",
dependencies: [
.product(name: "FoundationExtensions", package: "FoundationExtensions")
]
),
.executableTarget(
name: "SwiftPackageAcknowledgement",
dependencies: [
"Helper",
"Models",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "FoundationExtensions", package: "FoundationExtensions")
]
),
.target(
name: "Models",
dependencies: [
"Helper",
.product(name: "FoundationExtensions", package: "FoundationExtensions")
]
),
.testTarget(
name: "SwiftPackageAcknowledgementTests",
dependencies: ["Models"],
resources: [
.copy("Resources/SwiftPackagePackageResolved.json"),
.copy("Resources/XCWorkspacePackageResolved.json"),
]
)
]
)