Skip to content

Commit

Permalink
Package each module as a Nuget package.
Browse files Browse the repository at this point in the history
  • Loading branch information
zosrothko committed Mar 19, 2018
1 parent 1835a74 commit a285ef1
Show file tree
Hide file tree
Showing 23 changed files with 569 additions and 17 deletions.
25 changes: 25 additions & 0 deletions CppParser/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,28 @@ model {
}
}
task poco { dependsOn "assemble" }

nugetSpec {
def String vers = commonNuspecMetadata.find { it.key == "version" }.value;
nuspec = [
metadata: commonNuspecMetadata + [
id: "${commonNuspecPrefix}.${project.name}.vs150",
title: "Poco ${project.name}",
dependencies: [
{ dependency(id: "${commonNuspecPrefix}.Foundation.vs150", version: "${vers}") }
]
],
files: [
{ file(src: "$rootDir\\bin\\Poco${project.name}.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}.*", target: "build\\native\\lib64") },
{ file(src: "$rootDir\\bin\\Poco${project.name}d.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}d.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}d.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}d.*", target: "build\\native\\lib64") },
{ file(src: "$projectDir\\include\\**", target: "build\\native\\inc") }
]
]
}
task pack { dependsOn "poco"; dependsOn "nugetPack" }
24 changes: 24 additions & 0 deletions CppUnit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,28 @@ model {
}
task poco { dependsOn "assemble" }

nugetSpec {
def String vers = commonNuspecMetadata.find { it.key == "version" }.value;
nuspec = [
metadata: commonNuspecMetadata + [
id: "${commonNuspecPrefix}.${project.name}.vs150",
title: "Poco ${project.name}",
dependencies: [
{ dependency(id: "${commonNuspecPrefix}.Foundation.vs150", version: "${vers}") }
]
],
files: [
{ file(src: "$rootDir\\bin\\Poco${project.name}.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}.*", target: "build\\native\\lib64") },
{ file(src: "$rootDir\\bin\\Poco${project.name}d.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}d.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}d.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}d.*", target: "build\\native\\lib64") },
{ file(src: "$projectDir\\include\\**", target: "build\\native\\inc") }
]
]
}
task pack { dependsOn "poco"; dependsOn "nugetPack" }

24 changes: 24 additions & 0 deletions Crypto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,27 @@ model {
}
task poco { dependsOn "assemble" }

nugetSpec {
def String vers = commonNuspecMetadata.find { it.key == "version" }.value;
nuspec = [
metadata: commonNuspecMetadata + [
id: "${commonNuspecPrefix}.${project.name}.vs150",
title: "Poco ${project.name}",
dependencies: [
{ dependency(id: "${commonNuspecPrefix}.Foundation.vs150", version: "${vers}") }
]
],
files: [
{ file(src: "$rootDir\\bin\\Poco${project.name}.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}.*", target: "build\\native\\lib64") },
{ file(src: "$rootDir\\bin\\Poco${project.name}d.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}d.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}d.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}d.*", target: "build\\native\\lib64") },
{ file(src: "$projectDir\\include\\**", target: "build\\native\\inc") }
]
]
}
task pack { dependsOn "poco"; dependsOn "nugetPack" }
24 changes: 24 additions & 0 deletions Encodings/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,27 @@ model {
}
task poco { dependsOn "assemble" }

nugetSpec {
def String vers = commonNuspecMetadata.find { it.key == "version" }.value;
nuspec = [
metadata: commonNuspecMetadata + [
id: "${commonNuspecPrefix}.${project.name}.vs150",
title: "Poco ${project.name}",
dependencies: [
{ dependency(id: "${commonNuspecPrefix}.Foundation.vs150", version: "${vers}") }
]
],
files: [
{ file(src: "$rootDir\\bin\\Poco${project.name}.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}.*", target: "build\\native\\lib64") },
{ file(src: "$rootDir\\bin\\Poco${project.name}d.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}d.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}d.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}d.*", target: "build\\native\\lib64") },
{ file(src: "$projectDir\\include\\**", target: "build\\native\\inc") }
]
]
}
task pack { dependsOn "poco"; dependsOn "nugetPack" }
24 changes: 24 additions & 0 deletions Foundation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,27 @@ model {
}
task poco { dependsOn "assemble" }

nugetSpec {
def String vers = commonNuspecMetadata.find { it.key == "version" }.value;
nuspec = [
metadata: commonNuspecMetadata + [
id: "${commonNuspecPrefix}.${project.name}.vs150",
title: "Poco ${project.name}",
dependencies: [
]
],
files: [
{ file(src: "$rootDir\\packaging\\Windows\\NuGet\\Pocoproject.Poco.targets", target: "build\\native") },
{ file(src: "$rootDir\\bin\\Poco${project.name}.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}.*", target: "build\\native\\lib64") },
{ file(src: "$rootDir\\bin\\Poco${project.name}d.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}d.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}d.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}d.*", target: "build\\native\\lib64") },
{ file(src: "$projectDir\\include\\**", target: "build\\native\\inc") }
]
]
}
task pack { dependsOn "poco"; dependsOn "nugetPack" }
24 changes: 24 additions & 0 deletions JSON/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,27 @@ model {
}
task poco { dependsOn "assemble" }

nugetSpec {
def String vers = commonNuspecMetadata.find { it.key == "version" }.value;
nuspec = [
metadata: commonNuspecMetadata + [
id: "${commonNuspecPrefix}.${project.name}.vs150",
title: "Poco ${project.name}",
dependencies: [
{ dependency(id: "${commonNuspecPrefix}.Foundation.vs150", version: "${vers}") }
]
],
files: [
{ file(src: "$rootDir\\bin\\Poco${project.name}.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}.*", target: "build\\native\\lib64") },
{ file(src: "$rootDir\\bin\\Poco${project.name}d.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}d.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}d.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}d.*", target: "build\\native\\lib64") },
{ file(src: "$projectDir\\include\\**", target: "build\\native\\inc") }
]
]
}
task pack { dependsOn "poco"; dependsOn "nugetPack" }
24 changes: 24 additions & 0 deletions MongoDB/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,28 @@ model {
}
task poco { dependsOn "assemble" }

nugetSpec {
def String vers = commonNuspecMetadata.find { it.key == "version" }.value;
nuspec = [
metadata: commonNuspecMetadata + [
id: "${commonNuspecPrefix}.${project.name}.vs150",
title: "Poco ${project.name}",
dependencies: [
{ dependency(id: "${commonNuspecPrefix}.Net.vs150", version: "${vers}") }
]
],
files: [
{ file(src: "$rootDir\\bin\\Poco${project.name}.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}.*", target: "build\\native\\lib64") },
{ file(src: "$rootDir\\bin\\Poco${project.name}d.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}d.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}d.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}d.*", target: "build\\native\\lib64") },
{ file(src: "$projectDir\\include\\**", target: "build\\native\\inc") }
]
]
}
task pack { dependsOn "poco"; dependsOn "nugetPack" }

24 changes: 24 additions & 0 deletions Net/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,28 @@ model {
}
task poco { dependsOn "assemble" }

nugetSpec {
def String vers = commonNuspecMetadata.find { it.key == "version" }.value;
nuspec = [
metadata: commonNuspecMetadata + [
id: "${commonNuspecPrefix}.${project.name}.vs150",
title: "Poco ${project.name}",
dependencies: [
{ dependency(id: "${commonNuspecPrefix}.Foundation.vs150", version: "${vers}") }
]
],
files: [
{ file(src: "$rootDir\\bin\\Poco${project.name}.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}.*", target: "build\\native\\lib64") },
{ file(src: "$rootDir\\bin\\Poco${project.name}d.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}d.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}d.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}d.*", target: "build\\native\\lib64") },
{ file(src: "$projectDir\\include\\**", target: "build\\native\\inc") }
]
]
}
task pack { dependsOn "poco"; dependsOn "nugetPack" }

27 changes: 27 additions & 0 deletions NetSSL_OpenSSL/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,31 @@ model {
}
task poco { dependsOn "assemble" }

nugetSpec {
def String vers = commonNuspecMetadata.find { it.key == "version" }.value;
nuspec = [
metadata: commonNuspecMetadata + [
id: "${commonNuspecPrefix}.${project.name}.vs150",
title: "Poco ${project.name}",
dependencies: [
{ dependency(id: "${commonNuspecPrefix}.Net.vs150", version: "${vers}") },
{ dependency(id: "${commonNuspecPrefix}.Crypto.vs150", version: "${vers}") },
{ dependency(id: "${commonNuspecPrefix}.Util.vs150", version: "${vers}") },
{ dependency(id: "${commonNuspecPrefix}.Foundation.vs150", version: "${vers}") }
]
],
files: [
{ file(src: "$rootDir\\bin\\Poco${project.name}.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}.*", target: "build\\native\\lib64") },
{ file(src: "$rootDir\\bin\\Poco${project.name}d.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}d.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}d.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}d.*", target: "build\\native\\lib64") },
{ file(src: "$projectDir\\include\\**", target: "build\\native\\inc") }
]
]
}
task pack { dependsOn "poco"; dependsOn "nugetPack" }

25 changes: 25 additions & 0 deletions NetSSL_Win/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,28 @@ model {
}
}
task poco { dependsOn "assemble" }

nugetSpec {
def String vers = commonNuspecMetadata.find { it.key == "version" }.value;
nuspec = [
metadata: commonNuspecMetadata + [
id: "${commonNuspecPrefix}.${project.name}.vs150",
title: "Poco ${project.name}",
dependencies: [
{ dependency(id: "${commonNuspecPrefix}.Foundation.vs150", version: "${vers}") }
]
],
files: [
{ file(src: "$rootDir\\bin\\Poco${project.name}.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}.*", target: "build\\native\\lib64") },
{ file(src: "$rootDir\\bin\\Poco${project.name}d.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}d.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}d.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}d.*", target: "build\\native\\lib64") },
{ file(src: "$projectDir\\include\\**", target: "build\\native\\inc") }
]
]
}
task pack { dependsOn "poco"; dependsOn "nugetPack" }
27 changes: 27 additions & 0 deletions PDF/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,30 @@ project(":PDF") {
}
task poco { dependsOn "assemble" }

nugetSpec {
def String vers = commonNuspecMetadata.find { it.key == "version" }.value;
nuspec = [
metadata: commonNuspecMetadata + [
id: "${commonNuspecPrefix}.${project.name}.vs150",
title: "Poco ${project.name}",
dependencies: [
{ dependency(id: "${commonNuspecPrefix}.XML.vs150", version: "${vers}") },
{ dependency(id: "${commonNuspecPrefix}.JSON.vs150", version: "${vers}") },
{ dependency(id: "${commonNuspecPrefix}.Util.vs150", version: "${vers}") },
{ dependency(id: "${commonNuspecPrefix}.Foundation.vs150", version: "${vers}") }
]
],
files: [
{ file(src: "$rootDir\\bin\\Poco${project.name}.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}.*", target: "build\\native\\lib64") },
{ file(src: "$rootDir\\bin\\Poco${project.name}d.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}d.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}d.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}d.*", target: "build\\native\\lib64") },
{ file(src: "$projectDir\\include\\**", target: "build\\native\\inc") }
]
]
}
task pack { dependsOn "poco"; dependsOn "nugetPack" }
27 changes: 27 additions & 0 deletions PageCompiler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,31 @@ model {
}
task poco { dependsOn "assemble" }

nugetSpec {
def String vers = commonNuspecMetadata.find { it.key == "version" }.value;
nuspec = [
metadata: commonNuspecMetadata + [
id: "${commonNuspecPrefix}.${project.name}.vs150",
title: "Poco ${project.name}",
dependencies: [
{ dependency(id: "${commonNuspecPrefix}.Net.vs150", version: "${vers}") },
{ dependency(id: "${commonNuspecPrefix}.Util.vs150", version: "${vers}") },
{ dependency(id: "${commonNuspecPrefix}.XML.vs150", version: "${vers}") },
{ dependency(id: "${commonNuspecPrefix}.JSON.vs150", version: "${vers}") },
{ dependency(id: "${commonNuspecPrefix}.Foundation.vs150", version: "${vers}") }
]
],
files: [
{ file(src: "$rootDir\\bin\\Poco${project.name}.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}.*", target: "build\\native\\lib64") },
{ file(src: "$rootDir\\bin\\Poco${project.name}d.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}d.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}d.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}d.*", target: "build\\native\\lib64") },
]
]
}
task pack { dependsOn "poco"; dependsOn "nugetPack" }

24 changes: 24 additions & 0 deletions Redis/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,28 @@ model {
}
task poco { dependsOn "assemble" }

nugetSpec {
def String vers = commonNuspecMetadata.find { it.key == "version" }.value;
nuspec = [
metadata: commonNuspecMetadata + [
id: "${commonNuspecPrefix}.${project.name}.vs150",
title: "Poco ${project.name}",
dependencies: [
{ dependency(id: "${commonNuspecPrefix}.Net.vs150", version: "${vers}") }
]
],
files: [
{ file(src: "$rootDir\\bin\\Poco${project.name}.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}.*", target: "build\\native\\lib64") },
{ file(src: "$rootDir\\bin\\Poco${project.name}d.*", target: "build\\native\\bin") },
{ file(src: "$rootDir\\lib\\Poco${project.name}d.*", target: "build\\native\\lib") },
{ file(src: "$rootDir\\bin64\\Poco${project.name}d.*", target: "build\\native\\bin64") },
{ file(src: "$rootDir\\lib64\\Poco${project.name}d.*", target: "build\\native\\lib64") },
{ file(src: "$projectDir\\include\\**", target: "build\\native\\inc") }
]
]
}
task pack { dependsOn "poco"; dependsOn "nugetPack" }

Loading

0 comments on commit a285ef1

Please sign in to comment.