build.gradle 1.5 KB
Newer Older
1
plugins {
2
    id "com.gradle.plugin-publish" version "0.13.0"
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
    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"

19
def graphqlCodegenGradlePluginVersion = '4.1.5-SNAPSHOT' // This variable used in the automatic release process
20

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

dependencies {
26
    implementation gradleApi()
27

28
    implementation "io.github.kobylynskyi:graphql-java-codegen:${version}"
29

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

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

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