-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathbuild.gradle
61 lines (52 loc) · 1.58 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
// Add idea plugin version
plugins {
id "java"
id "org.jetbrains.intellij" version "1.3.0"
}
// Add coverage plugin
apply plugin: "jacoco"
// Add plugin group and version
group "com.dubreuia"
version "2.4.0"
// Add build script repository to maven central
repositories {
mavenCentral()
}
// Add dependencies to test, junit5 api (annotations) and engine (runtime)
dependencies {
testImplementation "org.assertj:assertj-core:3.21.0"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.8.2"
testImplementation "org.junit.jupiter:junit-jupiter-params:5.8.2"
testImplementation "org.junit.jupiter:junit-jupiter-engine:5.8.2"
}
// Add intellij task configuration for base intellij version (minimum compatibility)
// This needs to fit the tag <idea-version since-build="xxx"> in plugin.xml
// See https://www.jetbrains.com/intellij-repository/snapshots
// See https://www.jetbrains.com/intellij-repository/releases
intellij {
version = "2021.3"
plugins = ["java"]
pluginName = "Save Actions"
// Do not touch the plugin.xml file
updateSinceUntilBuild = false
}
// JAVA compatibility
compileJava {
sourceCompatibility = "11"
targetCompatibility = "11"
}
// Activate junit since gradle 4.7
test {
useJUnitPlatform()
}
// Add resources directory because intellij test framework checks there for test resources (instead of build/resources)
sourceSets {
test.output.resourcesDir = "build/classes/java/resources"
}
// Add jacoco test report for codecov
jacocoTestReport {
reports {
xml.required = true
html.required = false
}
}