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:05 UTC
[28/50] [abbrv] 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/e72aaae7
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/e72aaae7
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/e72aaae7
Branch: refs/heads/master
Commit: e72aaae7f8d89ac15e5a056c337a89ab20b55d5f
Parents: 0b2f83d
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Wed Jun 28 11:45:17 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Jul 13 13:46:49 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/e72aaae7/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index b16e11b..c9a8ee8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,3 +29,5 @@ tools/
.vscode/
.vs/
*nupkg
+NuGet.Config
+nuget.exe
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e72aaae7/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 26428c1..6e3d350 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/e72aaae7/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/e72aaae7/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index a31c912..8c81199 100644
--- a/pom.xml
+++ b/pom.xml
@@ -328,6 +328,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"/>