@@ -27,7 +27,7 @@ limitations under the License.
27
27
<name >Apache TinkerPop :: Gremlin.Net - Source</name >
28
28
<packaging >${packaging.type} </packaging >
29
29
<properties >
30
- <nugetVersion >4.9.2 </nugetVersion >
30
+ <nugetVersion >6.11.1 </nugetVersion >
31
31
<nugetExe >nuget-${nugetVersion}.exe</nugetExe >
32
32
</properties >
33
33
@@ -155,44 +155,13 @@ limitations under the License.
155
155
<configuration >
156
156
<target >
157
157
<taskdef resource =" net/sf/antcontrib/antcontrib.properties" />
158
- <if >
159
- <!-- docfx sadly requires mono and nuget at this time:
160
- 1. https://github.com/dotnet/docfx/issues/3389 (nuget required for a dll not in mono
161
- 2. https://github.com/dotnet/docfx/issues/718#issuecomment-256700598 (mono workaround) -->
162
- <and >
163
- <available file =" mono" filepath =" ${env.PATH}" />
164
- <available file =" ${nugetExe}" />
165
- </and >
166
- <then >
167
- <if >
168
- <available file =" docfx/docfx.exe" />
169
- <then >
170
- <echo >docfx already downloaded.</echo >
171
- </then >
172
-
173
- <else >
174
- <exec executable =" wget" failonerror =" true" >
175
- <arg line =" https://github.com/dotnet/docfx/releases/download/v2.58/docfx.zip" />
176
- </exec >
177
- <mkdir dir =" docfx" />
178
- <exec executable =" unzip" failonerror =" true" >
179
- <arg line =" docfx.zip -d docfx" />
180
- </exec >
181
- <delete file =" docfx.zip" />
182
- <exec executable =" mono" failonerror =" true" >
183
- <arg line =" ${nugetExe} install -OutputDirectory docfx SQLitePCLRaw.core -ExcludeVersion" />
184
- </exec >
185
- </else >
186
- </if >
187
- <exec executable =" mono" failonerror =" true" >
188
- <arg line =" docfx/docfx.exe" />
189
- </exec >
190
- </then >
191
- <else >
192
- <echo >Skipping docfx generation as mono and nuget are required.</echo >
193
- <echo >nuget must be installed as it would if doing a .NET deployment - see the glv-dotnet-deploy Maven profile for more information.</echo >
194
- </else >
195
- </if >
158
+ <!-- update docfx if necessary -->
159
+ <exec executable =" dotnet" failonerror =" true" >
160
+ <arg line =" dotnet tool restore" />
161
+ </exec >
162
+ <exec executable =" dotnet" failonerror =" true" >
163
+ <arg line =" docfx docfx.json" />
164
+ </exec >
196
165
</target >
197
166
</configuration >
198
167
</execution >
0 commit comments