-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.gradle.kts
67 lines (58 loc) · 1.34 KB
/
build.gradle.kts
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
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
plugins {
java
jacoco
alias(libs.plugins.intelliJPlatform)
alias(libs.plugins.sonarqube)
}
group = "ir.msdehghan"
version = "1.0.0"
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
dependencies {
testImplementation(libs.junit)
intellijPlatform {
intellijIdeaCommunity("2024.3")
bundledPlugins("org.jetbrains.plugins.yaml", "com.intellij.modules.json")
testFramework(TestFrameworkType.Platform)
}
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
intellijPlatform {
pluginConfiguration {
ideaVersion {
sinceBuild = "243"
}
intellijPlatform {
buildSearchableOptions = false
pluginVerification {
ides {
recommended()
}
}
}
}
}
sonar {
properties {
property("sonar.projectKey", "MSDehghan_AnsiblePlugin")
property("sonar.organization", "msdehghan")
property("sonar.host.url", "https://sonarcloud.io")
}
}
tasks {
jacocoTestReport {
dependsOn(test)
reports {
xml.required.set(true)
}
}
sonar.get().dependsOn(jacocoTestReport)
}