Skip to content

Commit ab4650e

Browse files
SLVSROS-23 Update dependencies (#56)
* Rename shadow-scans workflow to be consistent with the rest SQIDE repos * Update SonarSource/ci-github-actions/build-maven to 1.3.9 * Update junit to 5.14.1 * Update assertj to 3.27.6 * Update mockito-core to 5.20.0 * Update gson to 2.13.2 * Update logback to 1.5.21 * Update sonar dependencies * Update version to 1.1
1 parent ebbb6d7 commit ab4650e

File tree

5 files changed

+32
-24
lines changed

5 files changed

+32
-24
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
2525
with:
2626
version: 2025.7.12
27-
- uses: SonarSource/ci-github-actions/build-maven@master
27+
- uses: SonarSource/ci-github-actions/build-maven@c25d440672c0f21574eda6cad861163cc07a0def # v1.3.9
2828
with:
2929
deploy-pull-request: true
3030
artifactory-reader-role: private-reader

.github/workflows/unified-dogfooding.yml renamed to .github/workflows/shadow-scans.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Unified Dogfooding scans
1+
name: Shadow scans
22
on:
33
schedule:
44
# Run the workflow every day at 04:00 UTC
@@ -17,7 +17,7 @@ jobs:
1717
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
1818
with:
1919
version: 2025.7.12
20-
- uses: SonarSource/ci-github-actions/build-maven@master
20+
- uses: SonarSource/ci-github-actions/build-maven@c25d440672c0f21574eda6cad861163cc07a0def # v1.3.9
2121
with:
2222
run-shadow-scans: true
2323
artifactory-reader-role: private-reader

pom.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>org.sonarsource.sonarlint.visualstudio.roslyn</groupId>
1313
<artifactId>sonarqube-ide-visualstudio-roslyn-parent</artifactId>
14-
<version>1.0-SNAPSHOT</version>
14+
<version>1.1-SNAPSHOT</version>
1515
<packaging>pom</packaging>
1616

1717
<name>SonarQube Ide VisualStudio Roslyn Parent</name>
@@ -41,8 +41,7 @@
4141
<properties>
4242
<gitRepositoryName>sonarqube-ide-visualstudio-roslyn</gitRepositoryName>
4343
<artifactsToPublish>${project.groupId}:sonarqube-ide-visualstudio-roslyn-plugin:jar</artifactsToPublish>
44-
<junit.version>5.9.1</junit.version>
45-
<sonarlint-core.version>10.24.0.81415</sonarlint-core.version>
44+
<junit.version>5.14.1</junit.version>
4645
<jdk.min.version>11</jdk.min.version>
4746
<license.name>GNU LGPL v3</license.name>
4847
<maven.compiler.release>17</maven.compiler.release>
@@ -73,13 +72,13 @@
7372
<dependency>
7473
<groupId>org.assertj</groupId>
7574
<artifactId>assertj-core</artifactId>
76-
<version>3.23.1</version>
75+
<version>3.27.6</version>
7776
<scope>test</scope>
7877
</dependency>
7978
<dependency>
8079
<groupId>org.mockito</groupId>
8180
<artifactId>mockito-core</artifactId>
82-
<version>4.8.0</version>
81+
<version>5.20.0</version>
8382
<scope>test</scope>
8483
</dependency>
8584
</dependencies>

sonarqube-ide-visualstudio-roslyn-plugin/pom.xml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.sonarsource.sonarlint.visualstudio.roslyn</groupId>
88
<artifactId>sonarqube-ide-visualstudio-roslyn-parent</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>1.1-SNAPSHOT</version>
1010
</parent>
1111

1212
<artifactId>sonarqube-ide-visualstudio-roslyn-plugin</artifactId>
@@ -17,9 +17,9 @@
1717

1818
<properties>
1919
<!-- The following properties should match the pom.xml of sonar-dotnet for the given analyzer version -->
20-
<sonar.analyzer.commons>2.18.0.3393</sonar.analyzer.commons>
21-
<sonar.version>12.0.0.2960</sonar.version>
22-
<sonar.api.impl.version>25.6.0.109173</sonar.api.impl.version>
20+
<sonar.analyzer.commons>2.21.0.4626</sonar.analyzer.commons>
21+
<sonar.version>13.4.2.4284</sonar.version>
22+
<sonar.api.impl.version>25.11.0.114957</sonar.api.impl.version>
2323

2424
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
2525
<sonarAnalyzer.directory>${project.build.directory}/analyzer</sonarAnalyzer.directory>
@@ -35,12 +35,6 @@
3535
<version>${sonar.version}</version>
3636
<scope>provided</scope>
3737
</dependency>
38-
<dependency>
39-
<groupId>org.sonarsource.sonarlint.core</groupId>
40-
<artifactId>sonarlint-plugin-api</artifactId>
41-
<version>${sonarlint-core.version}</version>
42-
<scope>provided</scope>
43-
</dependency>
4438
<dependency>
4539
<groupId>com.google.code.findbugs</groupId>
4640
<artifactId>jsr305</artifactId>
@@ -57,7 +51,7 @@
5751
<dependency>
5852
<groupId>com.google.code.gson</groupId>
5953
<artifactId>gson</artifactId>
60-
<version>2.13.1</version>
54+
<version>2.13.2</version>
6155
</dependency>
6256

6357
<!-- test dependencies -->
@@ -82,7 +76,7 @@
8276
<dependency>
8377
<groupId>ch.qos.logback</groupId>
8478
<artifactId>logback-classic</artifactId>
85-
<version>1.5.19</version>
79+
<version>1.5.21</version>
8680
<scope>test</scope>
8781
</dependency>
8882
<dependency>

sonarqube-ide-visualstudio-roslyn-plugin/src/test/java/org/sonarsource/sonarlint/visualstudio/roslyn/MockSonarLintIssue.java

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
*/
2020
package org.sonarsource.sonarlint.visualstudio.roslyn;
2121

22+
import java.util.ArrayList;
23+
import java.util.Collection;
24+
import java.util.List;
25+
import javax.annotation.Nullable;
2226
import org.sonar.api.batch.fs.InputFile;
2327
import org.sonar.api.batch.fs.TextRange;
2428
import org.sonar.api.batch.rule.Severity;
@@ -31,10 +35,6 @@
3135
import org.sonar.api.issue.impact.SoftwareQuality;
3236
import org.sonar.api.rule.RuleKey;
3337

34-
import javax.annotation.Nullable;
35-
import java.util.ArrayList;
36-
import java.util.List;
37-
3838
// copied from https://github.com/SonarSource/sonarlint-omnisharp/blob/3c584bb30ff7bece45e7399699befa30c58b3605/omnisharp-plugin/src/test/java/org/sonarsource/sonarlint/omnisharp/OmnisharpSensorTests.java#L562
3939
public class MockSonarLintIssue implements NewIssue {
4040

@@ -105,6 +105,21 @@ public NewIssue setCodeVariants(@Nullable Iterable<String> iterable) {
105105
return null;
106106
}
107107

108+
@Override
109+
public NewIssue addInternalTag(@Nullable String s) {
110+
throw new UnsupportedOperationException("InternalTags are not supported by SonarQube for IDE.");
111+
}
112+
113+
@Override
114+
public NewIssue addInternalTags(@Nullable Collection<String> collection) {
115+
throw new UnsupportedOperationException("InternalTags are not supported by SonarQube for IDE.");
116+
}
117+
118+
@Override
119+
public NewIssue setInternalTags(@Nullable Collection<String> collection) {
120+
throw new UnsupportedOperationException("InternalTags are not supported by SonarQube for IDE.");
121+
}
122+
108123
@Override
109124
public MockSonarLintQuickFix newQuickFix() {
110125
return new MockSonarLintQuickFix();

0 commit comments

Comments
 (0)