forked from Salomon88/intellij-performance-toolbox-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
103 lines (90 loc) · 2.93 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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
buildscript {
ext {
issuesBaseUrl = 'https://github.com/Salomon88/intellij-performance-toolbox-plugin/issues'
junitVersion = '5.6.2'
// as Idea bundles with org.apache.xmlbeans:xmlbeans:2.6.0, but poi-ooxml 4.1.2 requires 3.1.0, so downgrading
poiVersion = '3.17'
}
}
plugins {
id 'jacoco'
id 'java'
id 'org.jetbrains.intellij' version '0.4.21'
id 'org.jetbrains.kotlin.jvm' version '1.4.0'
id 'org.sonarqube' version '3.0'
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
wrapper {
gradleVersion = '6.7.1'
}
group 'org.performancetoolbox'
version '1.0.5'
repositories {
mavenCentral()
}
dependencies {
implementation group: 'com.github.chewiebug', name: 'gcviewer', version: '1.36'
implementation group: 'org.apache.poi', name: 'poi', version: "$poiVersion"
implementation group: 'org.apache.poi', name: 'poi-ooxml', version: "$poiVersion"
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: "$junitVersion"
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: "$junitVersion"
}
intellij {
version '2020.1.1'
}
patchPluginXml {
changeNotes """
<b>Changes in version 1.0.5:</b>
<ul>
<li>Support for IntelliJ IDEA 2021.3</li>
</ul>
<b>Changes in version 1.0.4:</b>
<ul>
<li>Small improvements <a href="${issuesBaseUrl}/44">#44</a> and <a href="${issuesBaseUrl}/46">#46</a></li>
</ul>
<b>Changes in version 1.0.3:</b>
<ul>
<li>Fixes <a href="${issuesBaseUrl}/39">#39</a> and <a href="${issuesBaseUrl}/40">#40</a></li>
</ul>
<b>Changes in version 1.0.2:</b>
<ul>
<li>Support for IntelliJ IDEA 2021.1</li>
</ul>
<b>Changes in version 1.0.1:</b>
<ul>
<li>Support for IntelliJ IDEA 2020.3</li>
<li>Improvements: <a href="${issuesBaseUrl}/31">#31</a></li>
<li>Improvements in Histogram Analyzer: <a href="${issuesBaseUrl}/34">#34</a></li>
</ul>
<b>Changes in version 1.0.0:</b>
<ul>
<li>Support for GCViewer 1.36</li>
<li>Preview of histogram series analyzer</li>
</ul>"""
untilBuild = '213.*'
}
jacoco {
toolVersion = "0.8.5"
reportsDir = file("${project.projectDir}/build/reports")
}
jacocoTestReport {
dependsOn test
reports {
xml.enabled true
}
}
sonarqube {
properties {
property "sonar.projectKey", "Salomon88_intellij-performance-toolbox-plugin"
property "sonar.organization", "salomon88"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.exclusions", "**/actions/**,**/com/tagtraum/**,**/plugin/common/D*.java,**/plugin/common/V*.java"
}
}
test {
useJUnitPlatform()
}
project.tasks["sonarqube"].dependsOn "jacocoTestReport"