-
-
Notifications
You must be signed in to change notification settings - Fork 110
/
Copy pathbuild.gradle
50 lines (41 loc) · 1.67 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
plugins {
id "com.gradle.plugin-publish" version "1.2.1"
id "java-gradle-plugin"
}
repositories {
maven {
url 'https://repo.gradle.org/gradle/libs-releases-local'
}
mavenCentral()
mavenLocal()
}
apply plugin: "java"
apply plugin: "idea"
apply plugin: "maven-publish"
def graphqlCodegenGradlePluginVersion = '5.10.1-SNAPSHOT' // This variable used in the automatic release process
group = "io.github.kobylynskyi"
version = graphqlCodegenGradlePluginVersion
description = "Provides a task for generating Java code based on GraphQL schema"
dependencies {
implementation gradleApi()
implementation "io.github.kobylynskyi:graphql-java-codegen:${version}"
implementation "org.freemarker:freemarker:2.3.32"
implementation "com.graphql-java:graphql-java:20.2"
implementation "com.fasterxml.jackson.core:jackson-databind:2.17.2"
implementation "com.typesafe:config:1.4.3"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
}
gradlePlugin {
website = 'https://github.com/kobylynskyi/graphql-java-codegen/tree/main/plugins/gradle/graphql-java-codegen-gradle-plugin'
vcsUrl = 'https://github.com/kobylynskyi/graphql-java-codegen'
plugins {
graphqlCodegen {
id = 'io.github.kobylynskyi.graphql.codegen'
displayName = 'GraphQL Java Codegen'
description = 'Gradle plugin for GraphQL Java code generation'
implementationClass = 'io.github.kobylynskyi.graphql.codegen.gradle.GraphQLCodegenGradlePlugin'
tags.set(['graphql', 'graphql-java', 'graphql-java-codegen', 'graphql-codegen'])
}
}
}