Skip to content

Commit 6b29463

Browse files
Update gradle (#64972)
* Update gradle * update jdk * not specific ex * fixup * fixup
1 parent 9b81f37 commit 6b29463

File tree

12 files changed

+221
-159
lines changed

12 files changed

+221
-159
lines changed

eng/helix/content/InstallJdk.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,16 @@ Remove-Item -Force -Recurse $tempDir -ErrorAction Ignore | out-null
4545
mkdir $tempDir -ea Ignore | out-null
4646
mkdir $installDir -ea Ignore | out-null
4747
Write-Host "Starting download of JDK ${JdkVersion}"
48-
& $PSScriptRoot\Download.ps1 "https://netcorenativeassets.blob.core.windows.net/resource-packages/external/windows/java/jdk-${JdkVersion}_windows-x64_bin.zip" $tempDir/jdk.zip
48+
& $PSScriptRoot\Download.ps1 "https://netcorenativeassets.blob.core.windows.net/resource-packages/external/windows/java/microsoft-jdk-${JdkVersion}-windows-x64.zip" $tempDir/jdk.zip
4949
Write-Host "Done downloading JDK ${JdkVersion}"
5050

5151
Add-Type -assembly "System.IO.Compression.FileSystem"
5252
[System.IO.Compression.ZipFile]::ExtractToDirectory("$tempDir/jdk.zip", "$tempDir/jdk/")
5353

5454
Write-Host "Expanded JDK to $tempDir"
5555
Write-Host "Installing JDK to $installDir"
56-
Move-Item "$tempDir/jdk/jdk-${JdkVersion}/*" $installDir
56+
# The name of the file directory within the zip is based on the version, but may contain a +N for build number.
57+
Move-Item "$(Get-ChildItem -Path "$tempDir/jdk" | Select-Object -First 1 -ExpandProperty FullName)/*" $installDir
5758
Write-Host "Done installing JDK to $installDir"
5859
Remove-Item -Force -Recurse $tempDir -ErrorAction Ignore | out-null
5960

eng/helix/content/installjdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fi
2222
echo "PlatformArch: $platformarch"
2323
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2424
output_dir="$DIR/java"
25-
url="https://netcorenativeassets.blob.core.windows.net/resource-packages/external/linux/java/jdk-${java_version}_${platformarch}_bin.tar.gz"
25+
url="https://netcorenativeassets.blob.core.windows.net/resource-packages/external/linux/java/microsoft-jdk-${java_version}_${platformarch}.tar.gz"
2626
echo "Downloading from: $url"
2727
tmp="$(mktemp -d -t install-jdk.XXXXXX)"
2828

eng/targets/Helix.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<ItemGroup Condition="'$(TestDependsOnJava)' == 'true'">
3-
<HelixPreCommand Condition="'$(IsWindowsHelixQueue)' == 'true'" Include="call RunPowershell.cmd InstallJdk.ps1 11.0.3 %25HELIX_CORRELATION_PAYLOAD%25\jdk &amp;&amp; set %22JAVA_HOME=%25HELIX_CORRELATION_PAYLOAD%25\jdk%22" />
4-
<HelixPreCommand Condition="'$(IsWindowsHelixQueue)' != 'true' AND '$(IsMacHelixQueue)' != 'true'" Include="./installjdk.sh 10.0.2 x64 &amp;&amp; if [ &quot;%24JAVA_HOME&quot; = &quot;&quot; ]%3B then export JAVA_HOME=%24PWD/java%3B fi" />
3+
<HelixPreCommand Condition="'$(IsWindowsHelixQueue)' == 'true'" Include="call RunPowershell.cmd InstallJdk.ps1 21.0.5 %25HELIX_CORRELATION_PAYLOAD%25\jdk &amp;&amp; set %22JAVA_HOME=%25HELIX_CORRELATION_PAYLOAD%25\jdk%22" />
4+
<HelixPreCommand Condition="'$(IsWindowsHelixQueue)' != 'true' AND '$(IsMacHelixQueue)' != 'true'" Include="./installjdk.sh 21.0.5 x64 &amp;&amp; if [ &quot;%24JAVA_HOME&quot; = &quot;&quot; ]%3B then export JAVA_HOME=%24PWD/java%3B fi" />
55
</ItemGroup>
66

77
<ItemGroup Condition="'$(TestDependsOnMssql)' == 'true' AND '$(IsWindowsHelixQueue)' == 'true' AND '$(IsArm64HelixQueue)' != 'true'">

src/SignalR/clients/java/signalr/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
buildscript {
22
repositories {
33
maven {
4-
url "https://plugins.gradle.org/m2/"
4+
url = "https://plugins.gradle.org/m2/"
55
}
66
}
77
dependencies {
@@ -19,7 +19,7 @@ allprojects {
1919
apply plugin: "com.diffplug.spotless"
2020

2121
// If we're run from outside MSBuild, just assign a bogus dev version.
22-
version project.findProperty('packageVersion') ?: "99.99.99-dev"
22+
version = project.findProperty('packageVersion') ?: "99.99.99-dev"
2323

2424
java {
2525
sourceCompatibility = 1.9

src/SignalR/clients/java/signalr/core/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
id 'maven-publish'
44
}
55

6-
group 'com.microsoft.signalr'
6+
group = 'com.microsoft.signalr'
77

88
java {
99
withJavadocJar()
@@ -26,7 +26,7 @@ publishing {
2626
release(MavenPublication) {
2727
from components.java
2828

29-
artifactId 'signalr'
29+
artifactId = 'signalr'
3030

3131
pom {
3232
packaging = 'jar'
-12.8 KB
Binary file not shown.
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=5b9c5eb3f9fc2c94abaea57d90bd78747ca117ddbbf96c859d3741181a12bf2a
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
3+
distributionSha256Sum=72f44c9f8ebcb1af43838f45ee5c4aa9c5444898b3468ab3f4af7b6076c5bc3f
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
5+
networkTimeout=10000
6+
validateDistributionUrl=true
57
zipStoreBase=GRADLE_USER_HOME
68
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)