build.gradle 1.4 KB
Newer Older
1
plugins {
2
    id "com.gradle.plugin-publish" version "0.12.0"
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
    id "java-gradle-plugin"
}

repositories {
    maven {
        url 'https://repo.gradle.org/gradle/libs-releases-local'
    }
    mavenCentral()
    mavenLocal()
    jcenter()
}

apply plugin: "java"
apply plugin: "idea"
apply plugin: "maven-publish"

group = "io.github.kobylynskyi"
20
version = "3.0.0"
21 22 23
description = "Provides a task for generating Java code based on GraphQL schema"

dependencies {
24
    implementation gradleApi()
25

26
    implementation "io.github.kobylynskyi:graphql-java-codegen:${version}"
27

D
dependabot[bot] 已提交
28
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.2'
29
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
30 31 32 33 34 35 36 37
}

gradlePlugin {
    plugins {
        graphqlCodegen {
            id = 'io.github.kobylynskyi.graphql.codegen'
            displayName = 'GraphQL Java Codegen'
            description = project.description
38
            implementationClass = 'io.github.kobylynskyi.graphql.codegen.gradle.GraphQLCodegenGradlePlugin'
39 40 41 42 43
        }
    }
}

pluginBundle {
44
    website = 'https://github.com/kobylynskyi/graphql-java-codegen/tree/master/plugins/gradle/graphql-java-codegen-gradle-plugin'
45
    vcsUrl = 'https://github.com/kobylynskyi/graphql-java-codegen'
46 47 48
    description = 'Gradle plugin for GraphQL Java code generation'
    tags = ['graphql', 'graphql-java', 'graphql-java-codegen', 'graphql-codegen']
}