forked from smallrye/smallrye-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (59 loc) · 1.68 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
plugins {
id 'com.gradle.plugin-publish' version '0.12.0'
id 'java-gradle-plugin'
}
if (JavaVersion.current().isJava9Compatible()) {
compileJava.options.compilerArgs.addAll(['--release', '8'])
}
sourceSets {
main.java.srcDirs = ['plugin/src/main/java']
main.resources.srcDirs = ['plugin/src/main/resources']
}
compileJava {
options.encoding = 'UTF-8'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
compileTestJava {
options.encoding = 'UTF-8'
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
api gradleApi()
implementation "io.smallrye:smallrye-graphql:${version}"
implementation "io.smallrye:smallrye-graphql-schema-builder:${version}"
implementation "jakarta.json.bind:jakarta.json.bind-api:1.0.2"
implementation "org.eclipse:yasson:1.0.7"
implementation "org.jboss:jandex:2.1.3.Final"
implementation "org.jboss.logging:jboss-logging:3.4.1.Final"
}
test {
testLogging {
events "passed", "skipped", "failed"
}
useJUnitPlatform()
}
javadoc {
options.addStringOption('encoding', 'UTF-8')
}
pluginBundle {
website = 'http://github.com/smallrye/smallrye-graphql/'
vcsUrl = 'https://github.com/smallrye/smallrye-graphql'
tags = ['smallrye', 'graphql', 'microprofile']
}
gradlePlugin {
plugins {
smallryeGraphQLPlugin {
id = 'io.smallrye.graphql'
implementationClass = 'io.smallrye.graphql.gradle.SmallRyeGraphQLPlugin'
displayName = 'SmallRye: MicroProfile GraphQL Gradle Plugin'
description = 'SmallRye: MicroProfile GraphQL Gradle Plugin'
}
}
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
}