apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'org.openapitools'
version = 'v1'
archivesBaseName = 'openapi-gen-groovy'

wrapper {
    gradleVersion = '4.9'
    distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}

buildscript {
    repositories {
        maven { url "https://repo1.maven.org/maven2" }
        maven { url = 'https://plugins.gradle.org/m2/' }
    }
    dependencies {
        classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '4.24.20')
    }
}

repositories {
    maven { url "https://repo1.maven.org/maven2" }
    mavenLocal()
}

ext {
    swagger_annotations_version = "1.5.22"
    jackson_version = "2.9.10"
    jackson_databind_version = "2.9.10.8"
}

dependencies {
    compile 'org.codehaus.groovy:groovy-all:2.5.14'
    compile "io.swagger:swagger-annotations:$swagger_annotations_version"
    compile "com.fasterxml.jackson.core:jackson-core:$jackson_version"
    compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
    compile "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version"
    compile "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$jackson_version"
    compile "com.fasterxml.jackson.datatype:jackson-datatype-joda:$jackson_version"
    compile 'io.github.http-builder-ng:http-builder-ng-core:1.0.3'
    testCompile "junit:junit:4.13"
}
