You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. configurations {
  2. testImplementation.extendsFrom(compileOnlyApi)
  3. }
  4. dependencies {
  5. compileOnlyApi 'org.sonarsource.api.plugin:sonar-plugin-api'
  6. testImplementation 'junit:junit'
  7. testImplementation 'org.assertj:assertj-core'
  8. testImplementation 'org.mockito:mockito-core'
  9. testImplementation project(':sonar-plugin-api-impl')
  10. }
  11. jar {
  12. manifest {
  13. attributes(
  14. 'Plugin-Key': 'education',
  15. 'Plugin-Version': project.version,
  16. 'Plugin-Class': 'org.sonar.education.EducationPlugin',
  17. 'Plugin-ChildFirstClassLoader': 'false',
  18. 'Sonar-Version': project.version,
  19. 'SonarLint-Supported': 'true',
  20. 'Plugin-Name': 'Education'
  21. )
  22. }
  23. into('META-INF/lib') {
  24. from configurations.compileClasspath
  25. }
  26. }
  27. artifactoryPublish.skip = false
  28. publishing {
  29. publications {
  30. mavenJava(MavenPublication) {
  31. from components.java
  32. if (release) {
  33. artifact sourcesJar
  34. artifact javadocJar
  35. }
  36. }
  37. }
  38. }