forked from smallrye/smallrye-open-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (61 loc) · 2.14 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
plugins {
id 'java-gradle-plugin'
id("com.gradle.plugin-publish") version "1.3.0"
id("com.github.vlsi.jandex") version "1.90"
}
group = "io.smallrye"
compileJava {
options.encoding = 'UTF-8'
sourceCompatibility = '11'
targetCompatibility = '11'
}
compileTestJava {
options.encoding = 'UTF-8'
}
repositories {
mavenLocal()
mavenCentral()
maven {
url = uri("file:./target/dependencies")
}
}
dependencies {
implementation("io.smallrye:smallrye-open-api-core:${version}")
implementation("io.smallrye:smallrye-open-api-jaxrs:${version}")
implementation("io.smallrye:smallrye-open-api-spring:${version}")
implementation("io.smallrye:smallrye-open-api-vertx:${version}")
implementation("io.smallrye.config:smallrye-config:${versionConfig}")
testImplementation("org.junit.jupiter:junit-jupiter:${versionJunit5}")
testImplementation(gradleTestKit())
testImplementation("org.assertj:assertj-core:3.27.2")
testImplementation("com.fasterxml.jackson.core:jackson-databind:${versionJackson}")
}
test {
testLogging {
events "passed", "skipped", "failed"
}
useJUnitPlatform()
// multiple Gradle invocations executed from the same testing JVM cause problems, so fork
// for each test, and make sure we only run one Gradle execution in each test
forkEvery 1
// For Gradle testing :(
jvmArgs("--add-opens=java.base/java.lang.invoke=ALL-UNNAMED",
"--add-opens=java.base/java.util=ALL-UNNAMED")
}
gradlePlugin {
website = 'https://github.com/smallrye/smallrye-open-api/'
vcsUrl = 'https://github.com/smallrye/smallrye-open-api/'
plugins {
smallryeOpenAPIPlugin {
id = 'io.smallrye.openapi'
implementationClass = 'io.smallrye.openapi.gradleplugin.SmallryeOpenApiPlugin'
description = 'SmallRye: MicroProfile OpenAPI Gradle Plugin'
displayName = 'SmallRye: MicroProfile OpenAPI Gradle Plugin'
tags.set([ 'smallrye', 'openapi', 'microprofile' ])
}
}
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
}
tasks.pluginUnderTestMetadata.dependsOn(processJandexIndex)