-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (72 loc) · 2.66 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java library project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.6.4/userguide/building_java_projects.html
* This project uses @Incubating APIs which are subject to change.
*/
plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id "io.freefair.lombok" version "8.6"
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
sourceSets {
intTest {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
}
}
configurations {
intTestAnnotationProcessor.extendsFrom annotationProcessor
intTestImplementation.extendsFrom testImplementation
intTestRuntimeOnly.extendsFrom testRuntimeOnly
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
testCompileOnly 'org.projectlombok:lombok:1.18.30'
intTestCompileOnly 'org.projectlombok:lombok:1.18.30'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.30'
intTestAnnotationProcessor 'org.projectlombok:lombok:1.18.30'
// intTestAnnotationProcessor 'io.micronaut:micronaut-inject-java'
intTestAnnotationProcessor "io.micronaut:micronaut-inject-java:$micronautVersion"
intTestImplementation "io.micronaut:micronaut-runtime:$micronautVersion"
implementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
intTestImplementation "io.micronaut.test:micronaut-test-junit5:4.2.1"
implementation "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
intTestImplementation "org.springframework.boot:spring-boot-starter-test:$springVersion"
intTestImplementation "org.springframework.boot:spring-boot-starter:$springVersion"
}
tasks.named('test', Test) {
useJUnitPlatform()
maxHeapSize = '1G'
testLogging {
events "passed", "failed", "skipped"
exceptionFormat "full"
showExceptions true
showCauses true
showStackTraces true
}
}
tasks.register('integrationTest', Test) {
description = 'Runs integration tests.'
group = 'verification'
testClassesDirs = sourceSets.intTest.output.classesDirs
classpath = sourceSets.intTest.runtimeClasspath
shouldRunAfter test
useJUnitPlatform()
testLogging {
events "passed", "failed", "skipped"
exceptionFormat "full"
info
showExceptions true
showCauses true
showStackTraces true
}
}
check.dependsOn integrationTest