-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
103 lines (95 loc) · 3.3 KB
/
build.gradle
File metadata and controls
103 lines (95 loc) · 3.3 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
plugins {
id 'java-gradle-plugin'
id 'groovy'
id 'maven-publish'
//id 'signing'
//id 'java-gradle-plugin'
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.javagen'
artifactId = 'schema-gen'
version = '0.9.5'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'schema-gen'
description = 'XML Schema code generator outputting Swift, Kotlin, Dart and Java'
url = 'https://github.com/reaster/schema-gen'
// properties = [
// myProp: "value",
// "prop.with.dots": "anotherValue"
// ]
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'reasterling'
name = 'Richard Easterling'
}
}
scm {
connection = 'scm:git:git@github.com:reaster/schema-gen.git'
developerConnection = 'scm:git:git@github.com:reaster/schema-gen.git'
url = 'https://github.com/reaster/schema-gen'
}
}
}
}
}
//pluginBundle {
// website = 'https://github.com/reaster/schema-gen'
// vcsUrl = 'https://github.com/reaster/schema-gen'
// plugins {
// gen {
// id = 'com.javagen.schema-gen'
// displayName = 'Schema Gen Plugin'
// description = 'Generates Java, Kotlin, Dart and Swift model, validation and marshalling code from XML Schema (.xsd) files'
// tags = ['schema', 'xml','xsd', 'json', 'jaxb', 'java', 'kotlin', 'swift', 'dart', 'generator', 'plugin', 'jackson']
// version = '0.9.4'
// }
// }
//}
group 'com.javagen'
version '0.9.5'
//apply plugin: 'groovy'
//apply plugin: 'maven'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
}
//signing {
// sign publishing.publications.mavenJava
//}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation gradleApi()
implementation localGroovy()
// 'org.codehaus.groovy:groovy-all:2.4.12'
//compile 'com.gradle.publish:plugin-publish-plugin:0.9.9'
testImplementation 'xmlunit:xmlunit:1.6'
testImplementation group: 'junit', name: 'junit', version: '4.11'
testImplementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.2.4'
testImplementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.10.3'
testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.3'
testImplementation 'org.spockframework:spock-core:1.1-groovy-2.4'
}
configurations { //fix: Conflicting module versions with groovy-all
all*.exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}