-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
80 lines (72 loc) · 2.19 KB
/
build.gradle
File metadata and controls
80 lines (72 loc) · 2.19 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
plugins {
id "com.github.ben-manes.versions" version "0.29.0"
id "com.gradle.plugin-publish" version "0.12.0"
id "groovy"
id "idea"
id "jacoco"
id "java-gradle-plugin"
id "nu.studer.credentials" version "2.1"
id "org.jetbrains.gradle.plugin.idea-ext" version "0.10"
id "org.sonarqube" version "3.0"
}
def organization = "hiberbee"
group "com.${organization}.gradle"
version "0.4.0"
idea {
module {
outputDir project.buildDir
downloadJavadoc false
downloadSources true
inheritOutputDirs true
excludeDirs += files(".gradle", ".idea", ".scannerwork", "gradle")
generatedSourceDirs += files(
"${project.buildDir}/generated/sources/annotationProcessor/java/main",
"${project.buildDir}/generated/sources/annotationProcessor/java/test"
)
}
}
sonarqube {
properties {
property "sonar.login", System.getenv("SONAR_TOKEN")
property "sonar.organization", organization
property "sonar.projectKey", project.name
property "sonar.projectName", project.name
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.binaries", "${project.buildDir}/libs"
property "sonar.groovy.libraries", "${project.buildDir}/classes/java/main"
property "sonar.groovy.test.libraries", "${project.buildDir}/classes/java/test"
property "sonar.coverage.jacoco.xmlReportPaths", "${project.buildDir}/reports/jacoco/test/*.xml"
}
}
repositories {
mavenCentral()
mavenLocal()
}
test {
useJUnitPlatform()
}
gradlePlugin {
plugins {
ansiblePlugin {
id = "com.hiberbee.gradle.plugin.ansible"
implementationClass = "com.hiberbee.gradle.plugin.AnsiblePlugin"
}
}
}
pluginBundle {
website = "https://github.com/hiberbee/gradle-plugin-ansible"
vcsUrl = "https://github.com/hiberbee/gradle-plugin-ansible"
description = "Plugin allows to create and configure Ansible tasks with Gradle"
tags = ["ansible", "configuration-management"]
plugins {
ansiblePlugin {
displayName = "Ansible Gradle plugin"
}
}
}
dependencies {
compile localGroovy()
implementation gradleApi()
testImplementation "org.junit.jupiter:junit-jupiter:5.7.0-RC1"
testImplementation "org.junit.jupiter:junit-jupiter-engine:5.7.0-RC1"
}