jsonschema2pojo

Форк
0
54 строки · 1.7 Кб
1
plugins {
2
  id "com.gradle.plugin-publish" version '0.21.0'
3
  id "java-gradle-plugin"
4
  id 'maven-publish'
5
  id "groovy"
6
}
7

8
repositories {
9
  mavenCentral()
10
  mavenLocal()
11
}
12

13
group = "org.jsonschema2pojo"
14

15
if (project.version == 'unspecified')
16
  throw new GradleException('\n\n!!!!!!!\n\nThe build could not complete as you did not provide a version. This gradle script can build the jsonschema2pojo gradle plugin and push it to plugins.gradle.org, however you must choose what version of jsonschema2pojo to use (and therefore what version of the plugin you are publishing).\n\nPlease include a version as a project property when starting the build, e.g. ./gradlew -Pversion=x.x.x publishPlugins\n\n!!!!!!!')
17

18
gradlePlugin {
19
  plugins {
20
    jsonschema2pojo {
21
      id = 'org.jsonschema2pojo'
22
      implementationClass = 'org.jsonschema2pojo.gradle.JsonSchemaPlugin'
23
    }
24
  }
25
}
26

27
pluginBundle {
28
  website = 'http://www.jsonschema2pojo.org/'
29
  vcsUrl = 'https://github.com/joelittlejohn/jsonschema2pojo'
30
  description = 'Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, and more.'
31
  tags = ['jsonschema', 'jsonschema2pojo', 'json2pojo', 'generation', 'json', 'java', 'pojo']
32

33
  mavenCoordinates {
34
    groupId = 'org.jsonschema2pojo'
35
    artifactId = 'jsonschema2pojo-gradle-plugin'
36
  }
37

38
  plugins {
39
    jsonschema2pojo {
40
      displayName = 'org.jsonschema2pojo'
41
    }
42
  }
43
}
44

45
sourceCompatibility = '1.8'
46
targetCompatibility = '1.8'
47

48
dependencies {
49
  implementation "org.jsonschema2pojo:jsonschema2pojo-core:${project.version}"
50

51
  testImplementation 'org.hamcrest:hamcrest-all:1.3'
52
  testImplementation 'junit:junit:4.13.2'
53
  testImplementation 'org.slf4j:slf4j-simple:1.7.36'
54
}
55

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.