/*
 *  Licensed to the Apache Software Foundation (ASF) under one
 *  or more contributor license agreements.  See the NOTICE file
 *  distributed with this work for additional information
 *  regarding copyright ownership.  The ASF licenses this file
 *  to you under the Apache License, Version 2.0 (the
 *  "License"); you may not use this file except in compliance
 *  with the License.  You may obtain a copy of the License at
 *
 *    https://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing,
 *  software distributed under the License is distributed on an
 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 *  KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations
 *  under the License.
 */


plugins {
    id "org.apache.grails.gradle.grails-plugin"
    id "org.apache.grails.gradle.grails-gson"
}

dependencies {
    api "org.apache.grails:grails-controllers"
    api "org.apache.grails:grails-databinding"
    api("org.apache.grails:grails-rest-transforms") {
        exclude group: 'org.apache.grails', module: 'grails-converters'
    }
    api "org.apache.grails:grails-url-mappings"
    api "org.apache.grails:grails-views-gson:$viewsJsonVersion"
    api 'io.micronaut.rxjava2:micronaut-rxjava2-http-client:1.3.0'
    api "javax.servlet:javax.servlet-api:$servletApiVersion"
    api "io.micronaut:micronaut-http-client:$micronautVersion"
    api "org.apache.grails:grails-converters:3.3.1"
    api 'com.github.javaparser:javaparser-core:3.25.7'
    api "com.graphql-java:graphql-java:$graphqlJavaVersion"
    testImplementation "org.apache.grails:grails-testing-support-web"
    testImplementation "cglib:cglib-nodep:3.3.0"
    profile "org.apache.grails.profiles:web-plugin"

    api project(":gorm-graphql")
}

compileGsonViews {
    packageName = "gorm-graphql"
}

tasks.withType(Test) {
    useJUnitPlatform()
}