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

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