Skip to content

Commit

Permalink
Kitura/Kitura#148 Remove passing dependencies as a parameter
Browse files Browse the repository at this point in the history
Adding dependencies one by one after the package is created
  • Loading branch information
vadimeisenbergibm committed Feb 23, 2016
1 parent 2a915f9 commit 559fe9f
Showing 1 changed file with 16 additions and 26 deletions.
42 changes: 16 additions & 26 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,22 @@ let package = Package(
name: "CouchDBSample",
dependencies: [.Target(name: "CouchDB")]),
],
testDependencies: [
//.Package(url: "[email protected]:IBM-Swift/Kitura-TestFramework.git", majorVersion: 0)
.Package(url: "https://github.com/IBM-Swift/Kitura-TestFramework.git", versions: Version(0,2,0)..<Version(0,3,0))
])

// Ideally, we should only need to specify Kitura-router (or Kitura-net) and SwiftyJSON
// as dependencies. For now, due to what seems to be a defect in SPM,
// we are specifying these other dependencies.
dependencies: [
//.Package(url: "[email protected]:IBM-Swift/LoggerAPI.git", majorVersion: 0),
.Package(url: "https://github.com/IBM-Swift/LoggerAPI.git", versions: Version(0,2,0)..<Version(0,3,0)),
//.Package(url: "[email protected]:IBM-Swift/HeliumLogger.git", majorVersion: 0),
.Package(url: "https://github.com/IBM-Swift/HeliumLogger.git", versions: Version(0,2,0)..<Version(0,3,0)),
//.Package(url: "[email protected]:IBM-Swift/BlueSocket.git", majorVersion: 0),
.Package(url: "https://github.com/IBM-Swift/BlueSocket.git", majorVersion: 0),
//.Package(url: "[email protected]:IBM-Swift/Kitura-sys.git", majorVersion: 0),
.Package(url: "https://github.com/IBM-Swift/Kitura-sys.git", versions: Version(0,2,0)..<Version(0,3,0)),
//.Package(url: "[email protected]:IBM-Swift/Kitura-net.git", majorVersion: 0),
.Package(url: "https://github.com/IBM-Swift/Kitura-net.git", versions: Version(0,2,0)..<Version(0,3,0)),
//.Package(url: "[email protected]:IBM-Swift/Kitura-router.git", majorVersion: 0),
.Package(url: "https://github.com/IBM-Swift/Kitura-router.git", versions: Version(0,2,0)..<Version(0,3,0)),
//.Package(url: "[email protected]:IBM-Swift/Kitura-Pcre2.git", majorVersion: 0),
.Package(url: "https://github.com/IBM-Swift/Kitura-Pcre2.git", versions: Version(0,2,0)..<Version(0,3,0)),
//.Package(url: "[email protected]:IBM-Swift/Kitura-CurlHelpers.git", majorVersion: 0),
.Package(url: "https://github.com/IBM-Swift/Kitura-CurlHelpers.git", versions: Version(0,2,0)..<Version(0,3,0)),
//.Package(url: "[email protected]:IBM-Swift/Kitura-HttpParserHelper.git", majorVersion: 0),
.Package(url: "https://github.com/IBM-Swift/Kitura-HttpParserHelper.git", versions: Version(0,2,0)..<Version(0,3,0)),
.Package(url: swiftyJsonUrl, majorVersion: swiftyJsonVersion)
],
testDependencies: [
//.Package(url: "[email protected]:IBM-Swift/Kitura-TestFramework.git", majorVersion: 0)
.Package(url: "https://github.com/IBM-Swift/Kitura-TestFramework.git", versions: Version(0,2,0)..<Version(0,3,0))
]
)

package.dependencies.append(.Package(url: "https://github.com/IBM-Swift/LoggerAPI.git", versions: Version(0,2,0)..<Version(0,3,0)))
package.dependencies.append(.Package(url: "https://github.com/IBM-Swift/HeliumLogger.git", versions: Version(0,2,0)..<Version(0,3,0)))
package.dependencies.append(.Package(url: "https://github.com/IBM-Swift/BlueSocket.git", majorVersion: 0))
package.dependencies.append(.Package(url: "https://github.com/IBM-Swift/Kitura-sys.git", versions: Version(0,2,0)..<Version(0,3,0)))
package.dependencies.append(.Package(url: "https://github.com/IBM-Swift/Kitura-net.git", versions: Version(0,2,0)..<Version(0,3,0)))
package.dependencies.append(.Package(url: "https://github.com/IBM-Swift/Kitura-router.git", versions: Version(0,2,0)..<Version(0,3,0)))
package.dependencies.append(.Package(url: "https://github.com/IBM-Swift/Kitura-Pcre2.git", versions: Version(0,2,0)..<Version(0,3,0)))
package.dependencies.append(.Package(url: "https://github.com/IBM-Swift/Kitura-CurlHelpers.git", versions: Version(0,2,0)..<Version(0,3,0)))
package.dependencies.append(.Package(url: "https://github.com/IBM-Swift/Kitura-HttpParserHelper.git", versions: Version(0,2,0)..<Version(0,3,0)))
package.dependencies.append(.Package(url: swiftyJsonUrl, majorVersion: swiftyJsonVersion))

0 comments on commit 559fe9f

Please sign in to comment.