Skip to content

Commit e4764b8

Browse files
committed
Merge branch 'develop' into develop.next
2 parents 6316fb5 + a7949ce commit e4764b8

File tree

70 files changed

+4079
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+4079
-152
lines changed

.azure-pipelines/sign-for-dev-release.yml

Lines changed: 67 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extends:
1919
name: 1ES_JavaTooling_Pool
2020
image: 1ES_JavaTooling_Ubuntu-2004
2121
os: linux
22+
timeoutInMinutes: 360
2223
sdl:
2324
sourceAnalysisPool:
2425
name: 1ES_JavaTooling_Pool
@@ -31,21 +32,40 @@ extends:
3132
jobs:
3233
- job: Job_1
3334
displayName: Build and Sign Azure Plugin for IntelliJ
35+
timeoutInMinutes: 360
3436
templateContext:
3537
outputs:
3638
- output: pipelineArtifact
3739
artifactName: drop
38-
targetPath: $(build.artifactstagingdirectory)
40+
targetPath: $(build.artifactstagingdirectory)/drop
3941
displayName: "Publish Artifact: drop"
4042
steps:
4143
- checkout: self
4244
fetchTags: false
43-
- task: JavaToolInstaller@0
44-
displayName: Use Java 17
45+
- task: Bash@3
46+
displayName: Prepare JDK environment
4547
inputs:
46-
versionSpec: "17"
47-
jdkArchitectureOption: x64
48-
jdkSourceOption: PreInstalled
48+
targetType: inline
49+
script: |
50+
# Create a directory for the JDK
51+
mkdir -p $HOME/java
52+
cd $HOME/java
53+
54+
# Download Adoptium/Temurin JDK 17.0.7
55+
echo "Downloading Java 17.0.7..."
56+
wget -q https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.7%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.7_7.tar.gz
57+
58+
# Extract the archive
59+
echo "Extracting Java 17.0.7..."
60+
tar -xzf OpenJDK17U-jdk_x64_linux_hotspot_17.0.7_7.tar.gz
61+
rm OpenJDK17U-jdk_x64_linux_hotspot_17.0.7_7.tar.gz
62+
63+
# Set JAVA_HOME and add to PATH
64+
export JAVA_HOME=$HOME/java/jdk-17.0.7+7
65+
export PATH=$JAVA_HOME/bin:$PATH
66+
67+
echo "##vso[task.setvariable variable=JAVA_HOME]$JAVA_HOME"
68+
echo "##vso[task.setvariable variable=PATH]$PATH"
4969
- task: Bash@3
5070
displayName: Build Toolkit Libs@$(TOOLKIT_BRANCH)
5171
inputs:
@@ -90,54 +110,60 @@ extends:
90110
cp ./PluginsAndFeatures/azure-toolkit-for-intellij/build/distributions/*.zip ./artifacts/intellij/azure-toolkit-for-intellij.zip
91111
unzip ./artifacts/intellij/azure-toolkit-for-intellij.zip -d ./artifacts/intellij/folder
92112
rm ./artifacts/intellij/azure-toolkit-for-intellij.zip
93-
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
94-
displayName: Sign IntelliJ
95-
condition: and(succeeded(), ne(variables['DisableCodeSign'], 'true'))
113+
- task: UsePythonVersion@0
114+
displayName: 'Use Python 3.11.x'
115+
inputs:
116+
versionSpec: 3.11.x
117+
- task: UseDotNet@2
118+
displayName: 'Use .NET Core 3.1.x'
96119
inputs:
97-
ConnectedServiceName: 'ESRP-Release-Test'
98-
AppRegistrationClientId: '1992ee18-e9d2-42d6-ab20-94dd947a44b6'
99-
AppRegistrationTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47'
100-
AuthAKVName: 'vscjavaci'
101-
AuthCertName: 'vscjava-esrprelease-auth'
102-
AuthSignCertName: 'VSCJava-CodeSign'
103-
FolderPath: artifacts/intellij/folder
104-
Pattern: azure-intellij-*.jar, azure-toolkit-*.jar, azuretools-core-*.jar,azure-explorer-common-*.jar,hdinsight-node-common-*.jar, azure-sdk-reference-book.jar
105-
signConfigType: inlineSignParams
106-
inlineOperation: |-
107-
[
108-
{
109-
"KeyCode" : "$(KEY_CODE)",
110-
"OperationCode" : "JavaSign",
111-
"Parameters" : {
112-
"SigAlg" : "SHA256withRSA",
113-
"Timestamp" : "-tsa http://sha256timestamp.ws.digicert.com/sha256/timestamp"
114-
},
115-
"ToolName" : "sign",
116-
"ToolVersion" : "1.0"
117-
},
118-
{
119-
"KeyCode" : "$(KEY_CODE)",
120-
"OperationCode" : "JavaVerify",
121-
"Parameters" : {},
122-
"ToolName" : "sign",
123-
"ToolVersion" : "1.0"
124-
}
125-
]
120+
packageType: 'sdk'
121+
version: '3.1.x'
122+
- task: MicroBuildSigningPlugin@4
123+
displayName: 'Install Signing Plugin'
124+
inputs:
125+
signType: real
126+
azureSubscription: 'MicroBuild Signing Task (MSEng)'
127+
feedSource: 'https://mseng.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json'
128+
env:
129+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
130+
- task: CmdLine@2
131+
displayName: Sign jars
132+
timeoutInMinutes: 240
133+
inputs:
134+
script: |
135+
ABSOLUTE_PATH="$(pwd)"
136+
# Generate the signing-filelist.xml file
137+
echo '<?xml version="1.0" encoding="utf-8" ?>' > signing-filelist.xml
138+
echo '<filelist>' >> signing-filelist.xml
139+
echo ' <certificate certnumbers="100010171">' >> signing-filelist.xml
140+
141+
find . -type f -name "azure-intellij-*.jar" -o -name "azure-toolkit-ide-*.jar" -o -name "azuretools-core-*.jar" -o -name "azure-explorer-common-*.jar" -o -name "hdinsight-node-common-*.jar" -o -name "azure-sdk-reference-book.jar" | while read -r file; do
142+
clean_file="${file#./}"
143+
abs_path="$ABSOLUTE_PATH/$clean_file"
144+
echo " <file srcpath=\"$abs_path\" dstpath=\"$abs_path\"></file>" >> signing-filelist.xml
145+
done
146+
147+
echo ' </certificate>' >> signing-filelist.xml
148+
echo '</filelist>' >> signing-filelist.xml
149+
150+
dotnet "$MBSIGN_APPFOLDER/DDSignFiles.dll" -- /filelist:signing-filelist.xml
151+
rm signing-filelist.xml
152+
workingDirectory: 'artifacts/intellij/folder/azure-toolkit-for-intellij/lib'
126153
- task: Bash@3
127154
displayName: Repackage
128155
inputs:
129156
targetType: inline
130157
script: |
131158
# Write your commands here
132-
133159
(cd ./artifacts/intellij/folder && zip -r ../../azure-toolkit-for-intellij-$(Build.BuildNumber).zip ./azure-toolkit-for-intellij/)
134160
- task: CopyFiles@2
135161
displayName: "Copy Files to: $(build.artifactstagingdirectory)"
136162
inputs:
137163
SourceFolder: $(system.defaultworkingdirectory)/artifacts
138164
Contents: "*.zip"
139-
TargetFolder: $(build.artifactstagingdirectory)
165+
TargetFolder: $(build.artifactstagingdirectory)/drop
140166
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
141167
displayName: "Manifest Generator "
142168
inputs:
143-
BuildDropPath: $(build.artifactstagingdirectory)
169+
BuildDropPath: $(build.artifactstagingdirectory)/drop

.azure-pipelines/sign-for-stable-release.yml

Lines changed: 67 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extends:
1919
name: 1ES_JavaTooling_Pool
2020
image: 1ES_JavaTooling_Ubuntu-2004
2121
os: linux
22+
timeoutInMinutes: 360
2223
sdl:
2324
sourceAnalysisPool:
2425
name: 1ES_JavaTooling_Pool
@@ -31,21 +32,40 @@ extends:
3132
jobs:
3233
- job: Job_1
3334
displayName: Build and Sign Azure Plugin for IntelliJ
35+
timeoutInMinutes: 360
3436
templateContext:
3537
outputs:
3638
- output: pipelineArtifact
3739
artifactName: drop
38-
targetPath: $(build.artifactstagingdirectory)
40+
targetPath: $(build.artifactstagingdirectory)/drop
3941
displayName: "Publish Artifact: drop"
4042
steps:
4143
- checkout: self
4244
fetchTags: false
43-
- task: JavaToolInstaller@0
44-
displayName: Use Java 17
45+
- task: Bash@3
46+
displayName: Prepare JDK environment
4547
inputs:
46-
versionSpec: "17"
47-
jdkArchitectureOption: x64
48-
jdkSourceOption: PreInstalled
48+
targetType: inline
49+
script: |
50+
# Create a directory for the JDK
51+
mkdir -p $HOME/java
52+
cd $HOME/java
53+
54+
# Download Adoptium/Temurin JDK 17.0.7
55+
echo "Downloading Java 17.0.7..."
56+
wget -q https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.7%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.7_7.tar.gz
57+
58+
# Extract the archive
59+
echo "Extracting Java 17.0.7..."
60+
tar -xzf OpenJDK17U-jdk_x64_linux_hotspot_17.0.7_7.tar.gz
61+
rm OpenJDK17U-jdk_x64_linux_hotspot_17.0.7_7.tar.gz
62+
63+
# Set JAVA_HOME and add to PATH
64+
export JAVA_HOME=$HOME/java/jdk-17.0.7+7
65+
export PATH=$JAVA_HOME/bin:$PATH
66+
67+
echo "##vso[task.setvariable variable=JAVA_HOME]$JAVA_HOME"
68+
echo "##vso[task.setvariable variable=PATH]$PATH"
4969
- task: Bash@3
5070
displayName: Build Utils
5171
inputs:
@@ -66,54 +86,60 @@ extends:
6686
cp ./PluginsAndFeatures/azure-toolkit-for-intellij/build/distributions/*.zip ./artifacts/intellij/azure-toolkit-for-intellij.zip
6787
unzip ./artifacts/intellij/azure-toolkit-for-intellij.zip -d ./artifacts/intellij/folder
6888
rm ./artifacts/intellij/azure-toolkit-for-intellij.zip
69-
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
70-
displayName: Sign IntelliJ
71-
condition: and(succeeded(), ne(variables['DisableCodeSign'], 'true'))
89+
- task: UsePythonVersion@0
90+
displayName: 'Use Python 3.11.x'
91+
inputs:
92+
versionSpec: 3.11.x
93+
- task: UseDotNet@2
94+
displayName: 'Use .NET Core 3.1.x'
7295
inputs:
73-
ConnectedServiceName: 'ESRP-Release-Test'
74-
AppRegistrationClientId: '1992ee18-e9d2-42d6-ab20-94dd947a44b6'
75-
AppRegistrationTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47'
76-
AuthAKVName: 'vscjavaci'
77-
AuthCertName: 'vscjava-esrprelease-auth'
78-
AuthSignCertName: 'VSCJava-CodeSign'
79-
FolderPath: artifacts/intellij/folder
80-
Pattern: azure-toolkit-for-intellij.jar, azure-intellij-plugin-*.jar, azure-intellij-resource-connector-*.jar, azure-toolkit-ide-*.jar, azuretools-core-*.jar,azure-explorer-common-*.jar,hdinsight-node-common-*.jar, azure-sdk-reference-book.jar
81-
signConfigType: inlineSignParams
82-
inlineOperation: |-
83-
[
84-
{
85-
"KeyCode" : "$(KEY_CODE)",
86-
"OperationCode" : "JavaSign",
87-
"Parameters" : {
88-
"SigAlg" : "SHA256withRSA",
89-
"Timestamp" : "-tsa http://sha256timestamp.ws.digicert.com/sha256/timestamp"
90-
},
91-
"ToolName" : "sign",
92-
"ToolVersion" : "1.0"
93-
},
94-
{
95-
"KeyCode" : "$(KEY_CODE)",
96-
"OperationCode" : "JavaVerify",
97-
"Parameters" : {},
98-
"ToolName" : "sign",
99-
"ToolVersion" : "1.0"
100-
}
101-
]
96+
packageType: 'sdk'
97+
version: '3.1.x'
98+
- task: MicroBuildSigningPlugin@4
99+
displayName: 'Install Signing Plugin'
100+
inputs:
101+
signType: real
102+
azureSubscription: 'MicroBuild Signing Task (MSEng)'
103+
feedSource: 'https://mseng.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json'
104+
env:
105+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
106+
- task: CmdLine@2
107+
displayName: Sign jars
108+
timeoutInMinutes: 240
109+
inputs:
110+
script: |
111+
ABSOLUTE_PATH="$(pwd)"
112+
# Generate the signing-filelist.xml file
113+
echo '<?xml version="1.0" encoding="utf-8" ?>' > signing-filelist.xml
114+
echo '<filelist>' >> signing-filelist.xml
115+
echo ' <certificate certnumbers="100010171">' >> signing-filelist.xml
116+
117+
find . -type f -name "azure-intellij-*.jar" -o -name "azure-toolkit-ide-*.jar" -o -name "azuretools-core-*.jar" -o -name "azure-explorer-common-*.jar" -o -name "hdinsight-node-common-*.jar" -o -name "azure-sdk-reference-book.jar" | while read -r file; do
118+
clean_file="${file#./}"
119+
abs_path="$ABSOLUTE_PATH/$clean_file"
120+
echo " <file srcpath=\"$abs_path\" dstpath=\"$abs_path\"></file>" >> signing-filelist.xml
121+
done
122+
123+
echo ' </certificate>' >> signing-filelist.xml
124+
echo '</filelist>' >> signing-filelist.xml
125+
126+
dotnet "$MBSIGN_APPFOLDER/DDSignFiles.dll" -- /filelist:signing-filelist.xml
127+
rm signing-filelist.xml
128+
workingDirectory: 'artifacts/intellij/folder/azure-toolkit-for-intellij/lib'
102129
- task: Bash@3
103130
displayName: Repackage
104131
inputs:
105132
targetType: inline
106133
script: |
107134
# Write your commands here
108-
109135
(cd ./artifacts/intellij/folder && zip -r ../../azure-toolkit-for-intellij-$(Build.BuildNumber).zip ./azure-toolkit-for-intellij/)
110136
- task: CopyFiles@2
111137
displayName: "Copy Files to: $(build.artifactstagingdirectory)"
112138
inputs:
113139
SourceFolder: $(system.defaultworkingdirectory)/artifacts
114140
Contents: "*.zip"
115-
TargetFolder: $(build.artifactstagingdirectory)
141+
TargetFolder: $(build.artifactstagingdirectory)/drop
116142
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
117143
displayName: "Manifest Generator "
118144
inputs:
119-
BuildDropPath: $(build.artifactstagingdirectory)
145+
BuildDropPath: $(build.artifactstagingdirectory)/drop

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
All notable changes to "Azure Toolkit for IntelliJ IDEA" will be documented in this file.
44

55
- [Change Log](#change-log)
6+
- [3.95.0](#3950)
7+
- [3.94.0](#3940)
68
- [3.93.0](#3930)
79
- [3.92.0](#3920)
810
- [3.91.0](#3910)
@@ -115,6 +117,13 @@ All notable changes to "Azure Toolkit for IntelliJ IDEA" will be documented in t
115117
- [3.0.7](#307)
116118
- [3.0.6](#306)
117119

120+
## 3.95.0
121+
- Update function cdn uri
122+
- Integrate rule sets for flagging and making better Azure SDK usage
123+
124+
## 3.94.0
125+
- Fix some known issues.
126+
118127
## 3.93.0
119128
- Support IntelliJ 2024.3 Beta
120129
- Support Azure Cloud Shell (Thanks for @rafaelldi)

PluginsAndFeatures/AddLibrary/AzureLibraries/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<parent>
2828
<groupId>com.microsoft.azuretools</groupId>
2929
<artifactId>utils</artifactId>
30-
<version>3.94.0-SNAPSHOT</version>
30+
<version>3.95.0</version>
3131
</parent>
3232
<groupId>com.microsoft.azuretools</groupId>
3333
<artifactId>com.microsoft.azuretools.sdk.lib</artifactId>
@@ -39,9 +39,9 @@
3939
</organization>
4040

4141
<properties>
42-
<azuretool.version>3.94.0-SNAPSHOT</azuretool.version>
42+
<azuretool.version>3.95.0</azuretool.version>
4343
<azuretool.sdk.version>3.32.0.qualifier</azuretool.sdk.version>
44-
<azure.toolkit-lib.version>0.51.0</azure.toolkit-lib.version>
44+
<azure.toolkit-lib.version>0.52.2</azure.toolkit-lib.version>
4545
</properties>
4646
<dependencyManagement>
4747
<dependencies>

PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.appservice/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ Export-Package: com.microsoft.azuretools.appservice,
4343
com.microsoft.azuretools.appservice.handlers,
4444
com.microsoft.azuretools.appservice.ui
4545
Bundle-ClassPath: .,
46-
target/lib/azure-toolkit-ide-appservice-lib-0.51.0.jar
46+
target/lib/azure-toolkit-ide-appservice-lib-0.52.2.jar

PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.appservice/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<dependency>
1414
<groupId>com.microsoft.azure</groupId>
1515
<artifactId>azure-toolkit-ide-appservice-lib</artifactId>
16-
<version>0.51.0</version>
16+
<version>0.52.2</version>
1717
</dependency>
1818
</dependencies>
1919
<repositories>

PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.springcloud/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Require-Bundle: org.eclipse.ui,
2323
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
2424
Bundle-ActivationPolicy: lazy
2525
Bundle-ClassPath: .,
26-
target/lib/azure-toolkit-ide-springcloud-lib-0.51.0.jar
26+
target/lib/azure-toolkit-ide-springcloud-lib-0.52.2.jar
2727
Import-Package: com.microsoft.azuretools.core.actions,
2828
org.eclipse.core.expressions,
2929
org.eclipse.jface.text.hyperlink,

PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.springcloud/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<dependency>
1414
<groupId>com.microsoft.azure</groupId>
1515
<artifactId>azure-toolkit-ide-springcloud-lib</artifactId>
16-
<version>0.51.0</version>
16+
<version>0.52.2</version>
1717
</dependency>
1818
</dependencies>
1919
<build>

PluginsAndFeatures/azure-toolkit-for-intellij/.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)