aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorZipeng WU <zipeng.wu@sonarsource.com>2022-12-06 16:28:20 +0100
committersonartech <sonartech@sonarsource.com>2022-12-07 20:02:57 +0000
commit1ae0c4c5978f26f90645f618477fa1b0c40ae198 (patch)
tree761b4df89904150821e1bb28a4571472818895c0 /plugins
parent53038a77043dedd1021c6338ae2cad23ee33199d (diff)
downloadsonarqube-1ae0c4c5978f26f90645f618477fa1b0c40ae198.tar.gz
sonarqube-1ae0c4c5978f26f90645f618477fa1b0c40ae198.zip
[NO-JIRA] Education plugin should not use internal api
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-education-plugin/build.gradle4
-rw-r--r--plugins/sonar-education-plugin/src/main/java/org/sonar/education/EducationRulesDefinition.java2
2 files changed, 5 insertions, 1 deletions
diff --git a/plugins/sonar-education-plugin/build.gradle b/plugins/sonar-education-plugin/build.gradle
index 236efe4fd99..e43e3ad934a 100644
--- a/plugins/sonar-education-plugin/build.gradle
+++ b/plugins/sonar-education-plugin/build.gradle
@@ -4,6 +4,7 @@ configurations {
dependencies {
compileOnlyApi 'org.sonarsource.api.plugin:sonar-plugin-api'
+ implementation 'commons-io:commons-io'
testImplementation 'junit:junit'
testImplementation 'org.assertj:assertj-core'
@@ -23,6 +24,9 @@ jar {
'Plugin-Name': 'Education'
)
}
+ into('META-INF/lib') {
+ from configurations.runtimeClasspath
+ }
}
artifactoryPublish.skip = false
diff --git a/plugins/sonar-education-plugin/src/main/java/org/sonar/education/EducationRulesDefinition.java b/plugins/sonar-education-plugin/src/main/java/org/sonar/education/EducationRulesDefinition.java
index 8b3c03b28a4..8df0a45363b 100644
--- a/plugins/sonar-education-plugin/src/main/java/org/sonar/education/EducationRulesDefinition.java
+++ b/plugins/sonar-education-plugin/src/main/java/org/sonar/education/EducationRulesDefinition.java
@@ -20,7 +20,7 @@
package org.sonar.education;
import java.nio.charset.StandardCharsets;
-import org.sonar.api.internal.apachecommons.io.IOUtils;
+import org.apache.commons.io.IOUtils;
import org.sonar.api.server.rule.RuleDescriptionSection;
import org.sonar.api.server.rule.RulesDefinition;
import org.sonar.education.sensors.EducationPrinciplesSensor;