-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathbuild.gradle
40 lines (35 loc) · 1.24 KB
/
build.gradle
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
36
37
38
39
40
plugins {
id "java-library"
id "org.sonarqube" version "6.0.1.5171"
id 'com.github.spotbugs' version '6.1.3'
id "com.diffplug.spotless" version "7.0.2"
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
}
sonar {
properties {
property "sonar.projectKey", "microsoft_kiota-java"
property "sonar.organization", "microsoft"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.coverage.jacoco.xmlReportPaths", "${project.projectDir}/components/**/reports/jacoco/test/jacocoTestReport.xml"
}
}
subprojects {
apply plugin: 'org.sonarqube'
}
repositories {
mavenCentral()
}
nexusPublishing {
repositories {
sonatype {
if (project.rootProject.file('local.properties').exists()) {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
username = properties.getProperty('sonatypeUsername')
password = properties.getProperty('sonatypePassword')
}
}
}
}
group = project.property('mavenGroupId')
version = "${mavenMajorVersion}.${mavenMinorVersion}.${mavenPatchVersion}${mavenCentralSnapshotArtifactSuffix}"