|
1 | | -// swift-tools-version:3.1 |
2 | | - |
| 1 | +// swift-tools-version:4.0 |
3 | 2 | import PackageDescription |
4 | 3 |
|
5 | 4 | let package = Package( |
6 | 5 | name: "Hexaville", |
7 | | - targets: [ |
8 | | - Target(name: "HexavilleCore"), |
9 | | - Target(name: "Hexaville", dependencies: ["HexavilleCore"]) |
| 6 | + products: [ |
| 7 | + .library(name: "HexavilleCore", targets: ["HexavilleCore"]), |
| 8 | + .executable(name: "hexaville", targets: ["Hexaville"]) |
10 | 9 | ], |
11 | 10 | dependencies: [ |
12 | | - .Package(url: "https://github.com/swift-aws/s3.git", majorVersion: 0, minor: 3), |
13 | | - .Package(url: "https://github.com/swift-aws/lambda.git", majorVersion: 0, minor: 3), |
14 | | - .Package(url: "https://github.com/swift-aws/iam.git", majorVersion: 0, minor: 3), |
15 | | - .Package(url: "https://github.com/swift-aws/apigateway.git", majorVersion: 0, minor: 3), |
16 | | - .Package(url: "https://github.com/IBM-Swift/SwiftyJSON.git", majorVersion: 16), |
17 | | - .Package(url: "https://github.com/jakeheis/SwiftCLI.git", majorVersion: 3, minor: 1), |
18 | | - .Package(url: "https://github.com/behrang/YamlSwift.git", majorVersion: 3) |
| 11 | + .package(url: "https://github.com/swift-aws/s3.git", .upToNextMajor(from: "1.1.6")), |
| 12 | + .package(url: "https://github.com/swift-aws/lambda.git", .upToNextMajor(from: "1.1.6")), |
| 13 | + .package(url: "https://github.com/swift-aws/iam.git", .upToNextMajor(from: "1.1.6")), |
| 14 | + .package(url: "https://github.com/swift-aws/apigateway.git", .upToNextMajor(from: "1.1.6")), |
| 15 | + .package(url: "https://github.com/IBM-Swift/SwiftyJSON.git", .upToNextMajor(from: "17.0.1")), |
| 16 | + .package(url: "https://github.com/jakeheis/SwiftCLI.git", .upToNextMajor(from: "5.0.0")), |
| 17 | + .package(url: "https://github.com/behrang/YamlSwift.git", .upToNextMajor(from: "3.4.3")) |
| 18 | + ], |
| 19 | + targets: [ |
| 20 | + .target(name: "HexavilleCore", dependencies: [ |
| 21 | + "SwiftAWSS3", |
| 22 | + "SwiftAWSLambda", |
| 23 | + "SwiftAWSIam", |
| 24 | + "SwiftAWSApigateway", |
| 25 | + "SwiftyJSON", |
| 26 | + "SwiftCLI", |
| 27 | + "Yaml", |
| 28 | + ]), |
| 29 | + .target(name: "Hexaville", dependencies: ["HexavilleCore"]), |
| 30 | + .testTarget(name: "HexavilleTests", dependencies: ["HexavilleCore"]) |
19 | 31 | ] |
20 | 32 | ) |
0 commit comments