github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/java/libraries/vertx/build.gradle.mustache (about)

     1  apply plugin: 'idea'
     2  apply plugin: 'eclipse'
     3  
     4  group = '{{groupId}}'
     5  version = '{{artifactVersion}}'
     6  
     7  repositories {
     8      maven { url "https://repo1.maven.org/maven2" }
     9      jcenter()
    10  }
    11  
    12  apply plugin: 'java'
    13  apply plugin: 'maven'
    14  
    15  sourceCompatibility = JavaVersion.VERSION_1_8
    16  targetCompatibility = JavaVersion.VERSION_1_8
    17  
    18  install {
    19      repositories.mavenInstaller {
    20          pom.artifactId = '{{artifactId}}'
    21      }
    22  }
    23  
    24  task execute(type:JavaExec) {
    25     main = System.getProperty('mainClass')
    26     classpath = sourceSets.main.runtimeClasspath
    27  }
    28  
    29  ext {
    30      swagger_annotations_version = "1.5.21"
    31      jackson_version = "2.10.3"
    32      jackson_databind_version = "2.10.3"
    33      vertx_version = "3.4.2"
    34      junit_version = "4.13"
    35  }
    36  
    37  dependencies {
    38      compile "io.swagger:swagger-annotations:$swagger_annotations_version"
    39      compile "com.google.code.findbugs:jsr305:3.0.2"
    40      compile "io.vertx:vertx-web-client:$vertx_version"
    41      compile "io.vertx:vertx-rx-java:$vertx_version"
    42      compile "com.fasterxml.jackson.core:jackson-core:$jackson_version"
    43      compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
    44      compile "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version"
    45      {{#joda}}
    46      compile "com.fasterxml.jackson.datatype:jackson-datatype-joda:$jackson_version"
    47      {{/joda}}
    48      {{#java8}}
    49      compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
    50      {{/java8}}
    51      {{#threetenbp}}
    52      compile "com.github.joschi.jackson:jackson-datatype-threetenbp:$jackson_version"
    53      {{/threetenbp}}
    54      testCompile "junit:junit:$junit_version"
    55      testCompile "io.vertx:vertx-unit:$vertx_version"
    56  }