diff options
author | Lukasz Jarocki <lukasz.jarocki@sonarsource.com> | 2022-07-20 14:08:09 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-07-21 20:03:05 +0000 |
commit | b65c752c9a177e2401037dbc822a4362470be650 (patch) | |
tree | a2af58a9399a0e9e8a9311b1219e6dc4168fc519 /plugins/sonar-education-plugin/build.gradle | |
parent | 0a7d6f7245e753feb25bceae733fd659591b8f81 (diff) | |
download | sonarqube-b65c752c9a177e2401037dbc822a4362470be650.tar.gz sonarqube-b65c752c9a177e2401037dbc822a4362470be650.zip |
SONAR-16610 added example plugin to test education topics in SonarQube
Diffstat (limited to 'plugins/sonar-education-plugin/build.gradle')
-rw-r--r-- | plugins/sonar-education-plugin/build.gradle | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/plugins/sonar-education-plugin/build.gradle b/plugins/sonar-education-plugin/build.gradle new file mode 100644 index 00000000000..71bad6499f1 --- /dev/null +++ b/plugins/sonar-education-plugin/build.gradle @@ -0,0 +1,43 @@ +configurations { + testImplementation.extendsFrom(compileOnly) +} + +dependencies { + compileOnly 'org.sonarsource.api.plugin:sonar-plugin-api' + + testCompile 'junit:junit' + testCompile 'org.assertj:assertj-core' + testCompile 'org.mockito:mockito-core' + testCompile project(':sonar-plugin-api-impl') +} + +jar { + manifest { + attributes( + 'Plugin-Key': 'education', + 'Plugin-Version': project.version, + 'Plugin-Class': 'org.sonar.education.EducationPlugin', + 'Plugin-ChildFirstClassLoader': 'false', + 'Sonar-Version': project.version, + 'SonarLint-Supported': 'true', + 'Plugin-Name': 'Education' + ) + } + into('META-INF/lib') { + from configurations.compileClasspath + } +} + +artifactoryPublish.skip = false + +publishing { + publications { + mavenJava(MavenPublication) { + from components.java + if (release) { + artifact sourcesJar + artifact javadocJar + } + } + } +} |