-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (43 loc) · 1.3 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
/*
* Build file for StArcade
*/
plugins {
id 'java' // https://docs.gradle.org/current/userguide/java_plugin.html
id 'eclipse' // https://docs.gradle.org/current/userguide/eclipse_plugin.html
id 'idea' // https://docs.gradle.org/current/userguide/idea_plugin.html
}
ext { // define variables for version number of different components
junit_version = '5.5.2'
}
java { // https://docs.gradle.org/current/userguide/java_plugin.html#sec:java-extension
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withJavadocJar()
withSourcesJar()
}
repositories { // https://docs.gradle.org/current/userguide/declaring_repositories.html
jcenter()
mavenCentral()
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
eclipse {
classpath {
downloadJavadoc = true
downloadSources = true
}
}
dependencies { // https://docs.gradle.org/current/userguide/declaring_dependencies.html
testImplementation "org.junit.jupiter:junit-jupiter-api:${junit_version}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_version}"
}
test { // https://docs.gradle.org/5.2.1/userguide/java_testing.html#using_junit5
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}