-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
51 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
apply plugin: 'java'
group = 'org.cfmlprojects'
description = 'JavaShim Gradle build script'
archivesBaseName = 'javashim'
version = '1.0.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
task wrapper(type: Wrapper) { gradleVersion = '4.7' }
test {
// Enable JUnit 5 (Gradle 4.6+).
useJUnitPlatform { /*jvmArgs "-verbose:class"*/ }
// Always run tests, even when nothing changed.
dependsOn 'cleanTest'
// Show test results.
testLogging { events "passed", "skipped", "failed" }
// show standard out and standard error of the test JVM(s) on the console
testLogging.showStandardStreams = true
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.2.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.2.0'
testCompile group: 'org.junit.platform', name: 'junit-platform-launcher', version: "1.2.0"
testCompile('org.junit.jupiter:junit-jupiter-params:5.2.0')
}
repositories {
jcenter()
}
apply plugin: 'maven-publish'
publishing {
repositories {
maven {
url "$buildDir/maven"
}
}
publications {
javashim(MavenPublication) { publication ->
groupId project.group
artifactId 'javashim'
version project.version
from components.java
}
}
}