aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-markdown/build.gradle
blob: 7bd7025a437a358821c9961ea6476b9cbe1d11e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
sonar {
  properties {
    property 'sonar.projectName', "${projectTitle} :: Markdown"
  }
}

dependencies {
  // please keep list ordered

  api 'commons-lang:commons-lang'
  api 'org.codehaus.sonar:sonar-channel'

  testImplementation 'ch.qos.logback:logback-classic'
  testImplementation 'junit:junit'
  testImplementation 'org.assertj:assertj-core'
}

artifactoryPublish.skip = false

// Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17
tasks.withType(JavaCompile) {
  options.release = 11
}

publishing {
  publications {
    mavenJava(MavenPublication) {
      from components.java
      if (release) {
        artifact sourcesJar
        artifact javadocJar
      }
    }
  }
}