-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathbuild.gradle.kts
79 lines (71 loc) · 2.36 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
68
69
70
71
72
73
74
75
76
77
78
79
buildscript {
repositories {
mavenCentral()
maven("https://www.jetbrains.com/intellij-repository/releases")
}
}
plugins {
id("org.jetbrains.intellij") version "1.17.4"
id("jacoco")
id("com.diffplug.spotless") version "7.0.1"
id("idea")
id("java")
id("com.github.ben-manes.versions") version "0.51.0"
}
intellij {
//Bundled plugin dependencies
plugins.set(listOf("yaml", "com.intellij.java", "org.jetbrains.plugins.yaml"))
pluginName.set("intellij-swagger")
version.set("2022.3") // Recommended to use the lowest supported version to compile against
}
group = "org.zalando.intellij"
version = if (project.version != Project.DEFAULT_VERSION) project.version else "SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
maven("https://www.jetbrains.com/intellij-repository/releases")
}
dependencies {
implementation(platform("com.fasterxml.jackson:jackson-bom:2.18.2"))
implementation("commons-io:commons-io:2.18.0")
implementation("com.google.code.gson:gson:2.11.0")
implementation("com.google.guava:guava:33.4.0-jre")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml")
implementation("com.fasterxml.jackson.core:jackson-core")
implementation("com.fasterxml.jackson.core:jackson-databind")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.4")
testImplementation("org.mockito:mockito-core:5.15.2")
}
tasks {
jacocoTestReport {
dependsOn(test) // tests are required to run before generating the report
reports {
xml.required.set(true)
html.required.set(true)
}
}
test {
finalizedBy(jacocoTestReport) // report is always generated after tests run
reports {
junitXml.required.set(false)
html.required.set(true)
}
}
publishPlugin {
channels.set(listOf(project.findProperty("jetbrainsReleaseChannel")?.toString()))
token.set(System.getenv("JETBRAINS_HUB_TOKEN"))
}
patchPluginXml {
untilBuild.set("") // null will add until-build to the plugin.xml
version.set(project.version.toString())
changeNotes.set(project.findProperty("changeNotes")?.toString())
}
}
spotless {
java {
googleJavaFormat()
}
}