diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2023-01-23 15:29:16 -0600 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-02-02 20:03:39 +0000 |
commit | 2a867fa579517222177bd14eb6e2d8d0b5cf287e (patch) | |
tree | c6d91cd3a653a8aae5a98682d8100598c189cdb9 /sonar-core | |
parent | bbf23d6ad4ee140edbc02825d699a849ab47305a (diff) | |
download | sonarqube-2a867fa579517222177bd14eb6e2d8d0b5cf287e.tar.gz sonarqube-2a867fa579517222177bd14eb6e2d8d0b5cf287e.zip |
SONAR-17706 Drop support for projects still using modules in SonarQube server
Diffstat (limited to 'sonar-core')
4 files changed, 11 insertions, 8 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java b/sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java index b5fbcd596ef..22ddb56748c 100644 --- a/sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java +++ b/sonar-core/src/main/java/org/sonar/core/component/DefaultResourceTypes.java @@ -19,11 +19,11 @@ */ package org.sonar.core.component; -import org.sonar.api.scanner.ScannerSide; import org.sonar.api.ce.ComputeEngineSide; import org.sonar.api.resources.Qualifiers; import org.sonar.api.resources.ResourceType; import org.sonar.api.resources.ResourceTypeTree; +import org.sonar.api.scanner.ScannerSide; import org.sonar.api.server.ServerSide; @ScannerSide @@ -61,8 +61,7 @@ public final class DefaultResourceTypes { .hasSourceCode() .build()) - .addRelations(Qualifiers.PROJECT, Qualifiers.MODULE) - .addRelations(Qualifiers.MODULE, Qualifiers.DIRECTORY) + .addRelations(Qualifiers.PROJECT, Qualifiers.DIRECTORY) .addRelations(Qualifiers.DIRECTORY, Qualifiers.FILE, Qualifiers.UNIT_TEST_FILE) .build(); diff --git a/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java b/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java index 90e0b4c2a98..b53d41fa78a 100644 --- a/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java +++ b/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java @@ -31,7 +31,10 @@ import org.sonar.api.resources.Qualifiers; import org.sonar.core.extension.PluginRiskConsent; import static java.util.Arrays.asList; -import static org.sonar.api.PropertyType.*; +import static org.sonar.api.PropertyType.BOOLEAN; +import static org.sonar.api.PropertyType.SINGLE_SELECT_LIST; +import static org.sonar.api.PropertyType.STRING; +import static org.sonar.api.PropertyType.TEXT; import static org.sonar.core.extension.PluginRiskConsent.NOT_ACCEPTED; public class CorePropertyDefinitions { @@ -73,7 +76,8 @@ public class CorePropertyDefinitions { .build(), PropertyDefinition.builder(CoreProperties.SERVER_BASE_URL) .name("Server base URL") - .description("HTTP(S) URL of this SonarQube server, such as <i>https://yourhost.yourdomain/sonar</i>. This value is used outside SonarQube itself, e.g. for PR decoration, emails, etc.") + .description( + "HTTP(S) URL of this SonarQube server, such as <i>https://yourhost.yourdomain/sonar</i>. This value is used outside SonarQube itself, e.g. for PR decoration, emails, etc.") .category(CoreProperties.CATEGORY_GENERAL) .build(), PropertyDefinition.builder(SONAR_PROJECTCREATION_MAINBRANCHNAME) @@ -196,7 +200,7 @@ public class CorePropertyDefinitions { .name("Duplication Exclusions") .description("Patterns used to exclude some source files from the duplication detection mechanism. " + "See below to know how to use wildcards to specify this property.") - .onQualifiers(Qualifiers.PROJECT, Qualifiers.MODULE) + .onQualifiers(Qualifiers.PROJECT) .category(CoreProperties.CATEGORY_EXCLUSIONS) .subCategory(CoreProperties.SUBCATEGORY_DUPLICATIONS_EXCLUSIONS) .multiValues(true) diff --git a/sonar-core/src/main/java/org/sonar/core/config/ExclusionProperties.java b/sonar-core/src/main/java/org/sonar/core/config/ExclusionProperties.java index b948a8cfbed..efe7d03ca38 100644 --- a/sonar-core/src/main/java/org/sonar/core/config/ExclusionProperties.java +++ b/sonar-core/src/main/java/org/sonar/core/config/ExclusionProperties.java @@ -41,7 +41,7 @@ public class ExclusionProperties { .subCategory(CoreProperties.SUBCATEGORY_COVERAGE_EXCLUSIONS) .type(PropertyType.STRING) .multiValues(true) - .onQualifiers(Qualifiers.PROJECT, Qualifiers.MODULE) + .onQualifiers(Qualifiers.PROJECT) .build(), // FILES diff --git a/sonar-core/src/test/java/org/sonar/core/component/DefaultResourceTypesTest.java b/sonar-core/src/test/java/org/sonar/core/component/DefaultResourceTypesTest.java index a1280ca20fc..6658a35c768 100644 --- a/sonar-core/src/test/java/org/sonar/core/component/DefaultResourceTypesTest.java +++ b/sonar-core/src/test/java/org/sonar/core/component/DefaultResourceTypesTest.java @@ -31,6 +31,6 @@ public class DefaultResourceTypesTest { ResourceTypeTree tree = DefaultResourceTypes.get(); assertThat(tree.getTypes()).hasSize(5); - assertThat(tree.getChildren(Qualifiers.PROJECT)).containsExactly(Qualifiers.MODULE); + assertThat(tree.getChildren(Qualifiers.PROJECT)).containsExactly(Qualifiers.DIRECTORY); } } |