Skip to content

Commit

Permalink
Bump Scanner for .NET to 6.0.0.81631 for ITs (#8439)
Browse files Browse the repository at this point in the history
Co-authored-by: Costin Zaharia <costin.zaharia@sonarsource.com>
  • Loading branch information
2 people authored and matemoln committed Dec 13, 2023
1 parent b36349a commit 6fbad5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 37 deletions.
37 changes: 1 addition & 36 deletions its/pom.xml
Expand Up @@ -20,22 +20,14 @@
</organization>

<properties>
<scannerMsbuild.version>5.15.0.80890</scannerMsbuild.version>
<surefire.argLine>-server</surefire.argLine>
</properties>

<dependencies>
<dependency>
<groupId>org.sonarsource.orchestrator</groupId>
<artifactId>sonar-orchestrator-junit5</artifactId>
<version>4.4.0.1640</version>
</dependency>
<dependency>
<groupId>org.sonarsource.scanner.msbuild</groupId>
<artifactId>sonar-scanner-msbuild</artifactId>
<version>${scannerMsbuild.version}</version>
<type>zip</type>
<classifier>net46</classifier>
<version>4.6.0.1748</version>
</dependency>
<dependency>
<groupId>org.sonarsource.sonarqube</groupId>
Expand Down Expand Up @@ -70,36 +62,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.2</version>
<configuration>
<systemProperties>
<scannerMsbuild.version>${scannerMsbuild.version}</scannerMsbuild.version>
</systemProperties>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.6.1</version>
<executions>
<execution>
<id>get-scanner-2.1</id>
<phase>initialize</phase>
<goals>
<goal>get</goal>
</goals>
<configuration>
<artifactId>sonar-scanner-msbuild</artifactId>
<groupId>org.sonarsource.scanner.msbuild</groupId>
<packaging>zip</packaging>
<version>2.1.0.0</version>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
2 changes: 1 addition & 1 deletion its/src/test/java/com/sonar/it/shared/TestUtils.java
Expand Up @@ -156,7 +156,7 @@ private static String getProjectBaseDir(Path projectDir, String subProjectName)
private static Build<ScannerForMSBuild> newScanner(Path projectDir) {
// We need to set the fallback version to run from inside the IDE when the property isn't set
return ScannerForMSBuild.create(projectDir.toFile())
.setScannerVersion(System.getProperty("scannerMsbuild.version", "5.15.0.80890"))
.setScannerVersion(ScannerForMSBuild.LATEST_RELEASE)

// In order to be able to run tests on Azure pipelines, the AGENT_BUILDDIRECTORY environment variable
// needs to be set to the analyzed project directory.
Expand Down

0 comments on commit 6fbad5a

Please sign in to comment.