-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
86 lines (76 loc) · 2.37 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
plugins {
id 'com.android.application'
id "org.jsonschema2dataclass"
id "kotlin-android"
}
android {
namespace "org.jsonschema2dataclass.android"
compileSdkVersion 34
sourceSets {
debug.java.srcDirs +='build/generated/sources/js2d/main/debug'
release.java.srcDirs +='build/generated/sources/js2d/main/release'
}
defaultConfig {
applicationId "org.jsonschema2dataclass.android"
minSdkVersion 24
targetSdkVersion 34
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
}
compileOptions {
sourceCompatibility = JavaVersion.current()
targetCompatibility = JavaVersion.current()
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(JavaVersion.current().majorVersion.toInteger()))
}
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.code.gson:gson:2.11.0'
// Required if generating JSR-303 annotations
implementation 'javax.validation:validation-api:2.0.1.Final'
implementation "androidx.core:core-ktx:1.13.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.0.0"
}
jsonSchema2Pojo {
executions {
main {
io {
source.setFrom(files("${project.rootDir}/schema"))
sourceType.set("jsonschema")
outputEncoding.set("UTF-8")
delimitersPropertyWord.set("")
}
klass {
targetPackage.set("com.oosocial.clarityn.rest.clarityn.model")
annotationStyle.set("gson")
customAnnotatorClass.set("org.jsonschema2pojo.NoopAnnotator")
}
methods {
builders.set(false)
hashcodeAndEquals.set(true)
toStringMethod.set(true)
annotateJsr303.set(true)
}
fields {
usePrimitives.set(false)
integerUseLong.set(false)
floatUseDouble.set(true)
initializeCollections.set(true)
}
dateTime.jodaDate.set(false)
}
}
}