Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
<add key="Temp DiffPlex Feed" value="https://www.myget.org/F/diffplex-temp/api/v3/index.json" />
<add key="Temp DiffPlex Feed" value="https://www.myget.org/F/diffplex-temp/api/v3/index.json" />
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
</packageSources>
</configuration>
49 changes: 12 additions & 37 deletions build/scripts/Releasing.fsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#I @"../../packages/build/FAKE/tools"
#I @"../../packages/build/FSharp.Data/lib/net40"
#r @"FakeLib.dll"
#r @"FSharp.Data.dll"
#load @"Paths.fsx"
#load @"Projects.fsx"
#load @"Versioning.fsx"
Expand All @@ -15,9 +13,6 @@ open Versioning
open Building
open FSharp.Data

// TODO: Use a complete project.json skeleton
type ProjectJson = JsonProvider<"../../src/Nest/project.json">

type Release() =
static let nugetPack = fun (projectName: ProjectName) ->
let name = projectName.Nuget;
Expand All @@ -40,36 +35,6 @@ type Release() =
traceFAKE "%s" dir
MoveFile Paths.NugetOutput nugetOutFile

static let updateVersion project =
CreateDir Paths.NugetOutput
use file = File.Open (project, FileMode.Open)
let doc = ProjectJson.Load file

let newDoc = ProjectJson.Root(
doc.Authors,
doc.Owners,
doc.ProjectUrl,
doc.LicenseUrl,
doc.RequireLicenseAcceptance,
doc.IconUrl,
doc.Summary,
doc.Description,
doc.Title,
doc.Tags,
doc.Repository,
doc.Copyright,
Versioning.FileVersion,
doc.CompilationOptions,
doc.Configurations,
doc.Dependencies,
doc.Commands,
doc.Frameworks)

file.Close ()
File.Delete project
use writer = new StreamWriter(File.Open (project, FileMode.Create))
newDoc.JsonValue.WriteTo(writer, JsonSaveOptions.None)

static member PackAll() =
DotNetProject.All
|> Seq.map (fun p -> p.ProjectName)
Expand All @@ -80,7 +45,7 @@ type Release() =
++ "src/Elasticsearch.Net/project.json"

// update versions
projects |> Seq.iter updateVersion
Versioning.PatchProjectJsons()

// build nuget packages
projects
Expand Down Expand Up @@ -117,7 +82,6 @@ type Release() =
System.Text.Encoding.UTF8
nuspec


// Include PDB for each target framework
let frameworkDirs = (sprintf "%s/lib" unzippedDir |> directoryInfo).GetDirectories()
for frameworkDir in frameworkDirs do
Expand All @@ -132,6 +96,8 @@ type Release() =
ZipHelper.Zip unzippedDir package !!(sprintf "%s/**/*.*" unzippedDir)
DeleteDir unzippedDir

if (directoryExists Paths.NugetOutput = false) then CreateDir Paths.NugetOutput

// move to nuget output
MoveFile Paths.NugetOutput package
)
Expand All @@ -143,4 +109,13 @@ type Release() =
match success with
| 0 -> traceFAKE "publish to myget succeeded" |> ignore
| _ -> failwith "publish to myget failed" |> ignore
)

static member PatchReleaseNotes() =
!! "src/**/project.json"
|> Seq.iter(fun f ->
RegexReplaceInFileWithEncoding
"\"releaseNotes\"\\s?:\\s?\".*\""
(sprintf "\"releaseNotes\": \"See https://github.com/elastic/elasticsearch-net/releases/tag/%s\"" Versioning.FileVersion)
(new System.Text.UTF8Encoding(false)) f
)
3 changes: 2 additions & 1 deletion build/scripts/Targets.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ Target "Version" <| fun _ ->
Versioning.PatchProjectJsons()

Target "Release" <| fun _ ->
Release.PackAllDnx()
Release.PatchReleaseNotes()
Release.PackAllDnx()
Sign.ValidateNugetDllAreSignedCorrectly()
Versioning.ValidateArtifacts()

Expand Down

This file was deleted.

78 changes: 0 additions & 78 deletions docs/asciidoc/Aggregations/WritingAggregations.doc.asciidoc

This file was deleted.

This file was deleted.

Loading