You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2017/07/18 13:09:29 UTC

[37/43] tinkerpop git commit: TINKERPOP-1552 Polish up nuget deploy to work with NuGet.Config

TINKERPOP-1552 Polish up nuget deploy to work with NuGet.Config


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/6457bb95
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/6457bb95
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/6457bb95

Branch: refs/heads/tp32
Commit: 6457bb95581d937ff8b2e6404bbd3ad961f88e8b
Parents: 25fd472
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Wed Jun 28 11:45:17 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed Jun 28 15:13:12 2017 -0400

----------------------------------------------------------------------
 .gitignore                                         |  2 ++
 .../dev/developer/development-environment.asciidoc | 17 +++++++++++++++--
 gremlin-dotnet/src/pom.xml                         |  7 ++++++-
 pom.xml                                            |  1 +
 4 files changed, 24 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/6457bb95/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index fe469b0..0109f82 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,3 +30,5 @@ tools/
 .vscode/
 .vs/
 *nupkg
+NuGet.Config
+nuget.exe

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/6457bb95/docs/src/dev/developer/development-environment.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/dev/developer/development-environment.asciidoc b/docs/src/dev/developer/development-environment.asciidoc
index f56bcae..240d901 100644
--- a/docs/src/dev/developer/development-environment.asciidoc
+++ b/docs/src/dev/developer/development-environment.asciidoc
@@ -120,8 +120,21 @@ The `.glv` file need not have any contents and is ignored by Git. A standard 
 `gremlin-dotnet` in full.
 
 For those who will release TinkerPop, it is also necessary to install link:http://www.mono-project.com/[Mono]. The
-release process is known to work with 5.0.1, so it is best to probably install that version if possible. See release
-documentation for more information on configuration for release.
+release process is known to work with 5.0.1, so it is best to probably install that version. Release managers should
+probably also do an install of link:https://dist.nuget.org/win-x86-commandline/v3.4.4/nuget.exe[nuget 3.4.4] as it
+will help with environmental setup. To get an environment ready to deploy to NuGet, it is necessary to have a
+NuGet API key (PMC members who have NuGet accounts can help with that). The API key should be added to `NuGet.Config`
+with the following:
+
+[source,text]
+----
+mono nuget.exe setApiKey [your-api-key]
+----
+
+This should update `~/.config/NuGet/NuGet.Config` a file with an entry containing the encrypted API key. On
+`mvn deploy`, this file will be referenced on the automated `nuget push`.
+
+See release documentation for more information on configuration for release.
 
 [[release-environment]]
 Release Environment

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/6457bb95/gremlin-dotnet/src/pom.xml
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/pom.xml b/gremlin-dotnet/src/pom.xml
index 8f9007e..86a56af 100644
--- a/gremlin-dotnet/src/pom.xml
+++ b/gremlin-dotnet/src/pom.xml
@@ -146,8 +146,13 @@ limitations under the License.
                                                 </exec>
                                             </else>
                                         </if>
+
+                                        <!--
+                                        until https://github.com/NuGet/Home/issues/4095 we have to have to specify
+                                        the "ConfigFile" option to nuget.
+                                        -->
                                         <exec dir="Gremlin.Net/bin" executable="mono" failonerror="true">
-                                            <arg line="nuget.exe push Gremlin.Net.3.2.6-beta1.nupkg -Source https://staging.nuget.org/api/v2/package"/>
+                                            <arg line="nuget.exe push Gremlin.Net.3.2.6-beta1.nupkg -Source https://staging.nuget.org/api/v2/package -ConfigFile ${user.home}/.config/NuGet/NuGet.Config"/>
                                         </exec>
                                     </tasks>
                                 </configuration>

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/6457bb95/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 36d8d32..327a0db 100644
--- a/pom.xml
+++ b/pom.xml
@@ -319,6 +319,7 @@ limitations under the License.
                         <exclude>**/*.user</exclude>
                         <exclude>**/*.csproj</exclude>
                         <exclude>**/.vs/**</exclude>
+                        <exclude>**/NuGet.Config</exclude>
                     </excludes>
                     <licenses>
                         <license implementation="org.apache.rat.analysis.license.ApacheSoftwareLicense20"/>