Skip to content

Commit db9659e

Browse files
github-actions[bot]BrennanConroyakoeplingerwtgodbe
authored
[release/9.0] Update gradle (#64980)
* Update gradle * update jdk * not specific ex * fixup * fixup * Use dnceng AzDO feed for maven (#64962) * Use dnceng AzDO feed for maven This fixes CFSClean errors. * Upgrade spotless-plugin-gradle to fix error with latest gradle --------- Co-authored-by: William Godbe <wigodbe@microsoft.com> * Bump gson --------- Co-authored-by: Brennan Conroy <brecon@microsoft.com> Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com> Co-authored-by: William Godbe <wigodbe@microsoft.com>
1 parent ba494be commit db9659e

File tree

13 files changed

+240
-170
lines changed

13 files changed

+240
-170
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: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
buildscript {
2-
repositories {
3-
maven {
4-
url "https://plugins.gradle.org/m2/"
5-
}
6-
}
72
dependencies {
8-
classpath "com.diffplug.spotless:spotless-plugin-gradle:6.6.1"
3+
classpath "com.diffplug.spotless:spotless-plugin-gradle:8.1.0"
94
}
105
}
116

@@ -19,15 +14,11 @@ allprojects {
1914
apply plugin: "com.diffplug.spotless"
2015

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

2419
java {
2520
sourceCompatibility = 1.9
2621
}
27-
28-
repositories {
29-
mavenCentral()
30-
}
3122
}
3223

3324
spotless {
@@ -50,7 +41,7 @@ spotless {
5041
replace 'Not enough space after do', 'do{', 'do {'
5142
replaceRegex 'Too much space after if', 'if +\\(', 'if ('
5243
trimTrailingWhitespace()
53-
indentWithSpaces(4)
44+
leadingTabsToSpaces(4)
5445
removeUnusedImports() // removes any unused imports
5546
}
5647
}

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)