generated from Apodini/Template-Repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
64 lines (56 loc) · 2.45 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// swift-tools-version:5.6
//
// This source file is part of the Apodini open source project
//
// SPDX-FileCopyrightText: 2022 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]>
//
// SPDX-License-Identifier: MIT
//
import PackageDescription
let package = Package(
name: "ApodiniMigratorValidationUtil",
platforms: [
.macOS(.v12)
],
products: [
.library(name: "ApodiniMigratorValidation", targets: ["ApodiniMigratorValidation"]),
.executable(name: "ApodiniMigratorValidationUtil", targets: ["ApodiniMigratorValidationUtil"])
],
dependencies: [
.package(url: "https://github.com/mattpolzin/OpenAPIKit.git", from: "3.0.0-alpha.4"),
.package(url: "https://github.com/Apodini/ApodiniMigrator", from: "0.3.0"),
.package(url: "https://github.com/RougeWare/Swift-SemVer", from: "3.0.0-Beta.5"),
// we use <1.0.0 argument parser as migrator (and Apodini) aren't updated yet (there are some issues to resolve)!
.package(url: "https://github.com/apple/swift-argument-parser", from: "0.4.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.2"),
// testing runtime crashes
.package(url: "https://github.com/norio-nomura/XCTAssertCrash.git", from: "0.2.0")
],
targets: [
.target(
name: "ApodiniMigratorValidation",
dependencies: [
.product(name: "SemVer", package: "Swift-SemVer"),
.product(name: "OpenAPIKit30", package: "OpenAPIKit"),
.product(name: "ApodiniMigratorCore", package: "ApodiniMigrator"),
.product(name: "ApodiniMigratorCompare", package: "ApodiniMigrator"),
.product(name: "Logging", package: "swift-log")
]
),
.executableTarget(
name: "ApodiniMigratorValidationUtil",
dependencies: [
.target(name: "ApodiniMigratorValidation"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Logging", package: "swift-log")
]
),
.testTarget(
name: "ApodiniMigratorValidationTests",
dependencies: [
.target(name: "ApodiniMigratorValidation"),
.product(name: "XCTAssertCrash", package: "XCTAssertCrash", condition: .when(platforms: [.macOS]))
]
)
]
)