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.2KB

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