Skip to content

Commit 4f65857

Browse files
committed
Bump JSON version in preparation for release
1 parent e4cfae0 commit 4f65857

File tree

6 files changed

+21
-24
lines changed

6 files changed

+21
-24
lines changed

build/Elasticsearch.Net.nuspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>Elasticsearch.Net - Elasticsearch .NET low level client</title>
77
<authors>Elastic and contributors</authors>
88
<owners>Elastic</owners>
9-
<licenseUrl>https://github.com/elastic/elasticsearch-net/blob/master/license.txt</licenseUrl>
9+
<license type="file">license.txt</license>
1010
<projectUrl>https://github.com/elastic/elasticsearch-net</projectUrl>
1111
<iconUrl>https://raw.githubusercontent.com/elastic/elasticsearch-net/master/build/nuget-icon.png</iconUrl>
1212
<requireLicenseAcceptance>false</requireLicenseAcceptance>
@@ -21,6 +21,8 @@
2121
</dependencies>
2222
</metadata>
2323
<files>
24+
<file src="..\license.txt" target="" />
25+
2426
<file src="output\Elasticsearch.Net\netstandard2.0\Elasticsearch.Net.dll" target="lib\netstandard2.0"/>
2527
<file src="output\Elasticsearch.Net\netstandard2.0\Elasticsearch.Net.xml" target="lib\netstandard2.0"/>
2628

build/NEST.JsonNetSerializer.nuspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>NEST.JsonNetSerializer - Elasticsearch .NET custom Json.NET serializer</title>
77
<authors>Elastic and contributors</authors>
88
<owners>Elastic</owners>
9-
<licenseUrl>https://github.com/elastic/elasticsearch-net/blob/master/license.txt</licenseUrl>
9+
<license type="file">license.txt</license>
1010
<projectUrl>https://github.com/elastic/elasticsearch-net</projectUrl>
1111
<iconUrl>https://raw.githubusercontent.com/elastic/elasticsearch-net/master/build/nuget-icon.png</iconUrl>
1212
<requireLicenseAcceptance>false</requireLicenseAcceptance>
@@ -23,6 +23,8 @@
2323
</dependencies>
2424
</metadata>
2525
<files>
26+
<file src="..\license.txt" target="" />
27+
2628
<file src="output\Nest.JsonNetSerializer\netstandard2.0\Nest.JsonNetSerializer.dll" target="lib\netstandard2.0"/>
2729
<file src="output\Nest.JsonNetSerializer\netstandard2.0\Nest.JsonNetSerializer.xml" target="lib\netstandard2.0"/>
2830
</files>

build/NEST.nuspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<copyright>2014-$year$ Elasticsearch BV</copyright>
1111

1212
<requireLicenseAcceptance>false</requireLicenseAcceptance>
13-
<licenseUrl>https://github.com/elastic/elasticsearch-net/blob/master/license.txt</licenseUrl>
13+
<license type="file">license.txt</license>
1414
<projectUrl>https://github.com/elastic/elasticsearch-net</projectUrl>
1515
<iconUrl>https://raw.githubusercontent.com/elastic/elasticsearch-net/master/build/nuget-icon.png</iconUrl>
1616

@@ -29,6 +29,8 @@
2929
</dependencies>
3030
</metadata>
3131
<files>
32+
<file src="..\license.txt" target="" />
33+
3234
<file src="output\Nest\net461\Nest.dll" target="lib\net461"/>
3335
<file src="output\Nest\net461\Nest.XML" target="lib\net461"/>
3436

build/scripts/Releasing.fsx

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,8 @@ module Release =
4545
let semanticVersion = SemVerHelper.parse version
4646
sprintf "%i" (semanticVersion.Major + 1)
4747

48-
let private addKeyValue (e:Expr<string>) (builder:StringBuilder) =
49-
// the binding for this tuple looks like key/value should
50-
// be round the other way (but it's correct as is)...
51-
let (value,key) =
52-
match e with
53-
| PropertyGet (eo, pi, li) -> (pi.Name, (pi.GetValue(e) |> string))
54-
| ValueWithName (obj,ty,nm) -> ((obj |> string), nm)
55-
| _ -> failwith (sprintf "%A is not a let-bound value. %A" e (e.GetType()))
56-
57-
if (isNotNullOrEmpty value) then builder.AppendFormat("{0}=\"{1}\";", key, value)
58-
else builder
48+
let private addKeyValue (key:string) (value:string) (builder:StringBuilder) =
49+
builder.AppendFormat("{0}=\"{1}\";", key, value)
5950

6051
let private currentVersion = sprintf "%O" <| Versioning.CurrentVersion
6152
let private currentMajorVersion = sprintf "%i" <| Versioning.CurrentVersion.Major
@@ -64,9 +55,9 @@ module Release =
6455

6556
let private props() =
6657
new StringBuilder()
67-
|> addKeyValue <@currentMajorVersion@>
68-
|> addKeyValue <@nextMajorVersion@>
69-
|> addKeyValue <@year@>
58+
|> addKeyValue "currentMajorVersion" currentMajorVersion
59+
|> addKeyValue "nextMajorVersion" nextMajorVersion
60+
|> addKeyValue "year" year
7061

7162
let pack file n properties =
7263
Tooling.Nuget.Exec [ "pack"; file;
@@ -147,8 +138,8 @@ module Release =
147138

148139
let properties =
149140
props()
150-
|> addKeyValue <@jsonDotNetCurrentVersion@>
151-
|> addKeyValue <@jsonDotNetNextVersion@>
141+
|> addKeyValue "jsonDotNetCurrentVersion" jsonDotNetCurrentVersion
142+
|> addKeyValue "jsonDotNetNextVersion" jsonDotNetNextVersion
152143
|> toText
153144
let nugetId = p.NugetId
154145
let nuspec = (sprintf @"build/%s.nuspec" nugetId)

build/scripts/Versioning.fsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module Versioning =
6161
let CurrentAssemblyFileVersion = parse (sprintf "%s.%s.%s.0" (CurrentVersion.Major.ToString()) (CurrentVersion.Minor.ToString()) (CurrentVersion.Patch.ToString()))
6262

6363
let private sn = if isMono then "sn" else Paths.CheckedInTool("sn/sn.exe")
64-
let private oficialToken = "96c599bbe3e70f5d"
64+
let private officialToken = "96c599bbe3e70f5d"
6565

6666
let private validate dll name =
6767
let out = (ExecProcessAndReturnMessages(fun p ->
@@ -72,7 +72,7 @@ module Versioning =
7272
let valid = (out.ExitCode, out.Messages.FindIndex(fun s -> s.Contains("is valid")))
7373
match valid with
7474
| (0, i) when i >= 0 -> trace (sprintf "%s was signed correctly" name)
75-
| (_, _) -> failwithf "{0} was not validly signed"
75+
| (_, _) -> failwithf "%s was not validly signed" name
7676

7777
let out = (ExecProcessAndReturnMessages(fun p ->
7878
p.FileName <- sn
@@ -84,9 +84,9 @@ module Versioning =
8484

8585
let valid = (out.ExitCode, token)
8686
match valid with
87-
| (0, t) when t = oficialToken ->
87+
| (0, t) when t = officialToken ->
8888
trace (sprintf "%s was signed with official key token %s" name t)
89-
| (_, t) -> traceFAKE "%s was not signed with the official token: %s but %s" name oficialToken t
89+
| (_, t) -> traceFAKE "%s was not signed with the official token: %s but %s" name officialToken t
9090

9191
let private validateDllStrongName dll name =
9292
match fileExists dll with

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"sdk": {
33
"version": "2.1.300"
44
},
5-
"version": "6.5.1"
5+
"version": "6.6.0"
66
}

0 commit comments

Comments
 (0)