-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (56 loc) · 1.47 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: "org.jsonschema2pojo", name: "jsonschema2pojo-gradle-plugin", version: "1.1.1"
}
}
apply plugin: "java"
apply plugin: "eclipse"
apply plugin: "maven-publish"
apply plugin: "jsonschema2pojo"
version = "1.0.0"
group = "info.u_team.gltf_parser"
archivesBaseName = "gltf_parser"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation group: "com.google.code.gson", name: "gson", version: "2.8.0"
testImplementation group: "org.junit.jupiter", name: "junit-jupiter-api", version: "5.8.2"
testRuntimeOnly group: "org.junit.jupiter", name: "junit-jupiter-engine", version: "5.8.2"
}
jsonSchema2Pojo {
source = files("glTF/specification/2.0/schema")
targetDirectory = file("${project.buildDir}/generated-sources/glTF")
targetPackage = "info.u_team.gltf_parser.generated.gltf"
includeAdditionalProperties = true
includeGeneratedAnnotation = false
annotationStyle = "gson"
sourceType = "jsonschema"
fileExtensions = ["schema"]
useTitleAsClassname = true
usePrimitives = true
initializeCollections = true
includeHashcodeAndEquals = true
includeToString = true
includeGetters = true
includeSetters = false
includeDynamicAccessors = false
outputEncoding = "UTF-8"
targetVersion = "1.8"
removeOldOutput = true
}
test {
useJUnitPlatform()
dependsOn "cleanTest"
testLogging {
events "passed", "skipped", "failed"
}
}