forked from json-path/JsonPath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
162 lines (137 loc) · 5.21 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
classpath 'biz.aQute.bnd:biz.aQute.bnd.gradle:6.1.0'
}
}
ext {
libs = [
jsonSmart: 'net.minidev:json-smart:2.5.0',
slf4jApi: 'org.slf4j:slf4j-api:2.0.9',
gson: 'com.google.code.gson:gson:2.10.1',
hamcrest: 'org.hamcrest:hamcrest:2.2',
jacksonDatabind: 'com.fasterxml.jackson.core:jackson-databind:2.15.3',
jettison: 'org.codehaus.jettison:jettison:1.5.4',
jsonOrg: 'org.json:json:20231013',
tapestryJson: 'org.apache.tapestry:tapestry-json:5.8.3',
jakartaJsonP: 'jakarta.json:jakarta.json-api:2.0.2',
jakartaJsonB: 'jakarta.json.bind:jakarta.json.bind-api:2.0.0',
test: [
'commons-io:commons-io:2.15.0',
'junit:junit:4.13.+',
'org.junit.vintage:junit-vintage-engine:5.10.+',
'org.assertj:assertj-core:3.24.2',
'org.hamcrest:hamcrest:2.2',
'org.glassfish:jakarta.json:2.0.1',
'org.eclipse:yasson:2.0.4',
//'org.apache.johnzon:johnzon-jsonb:1.2.21',
'org.slf4j:slf4j-simple:2.0.9',
'com.google.code.gson:gson:2.10.1',
'org.hamcrest:hamcrest:2.2',
'com.fasterxml.jackson.core:jackson-databind:2.15.3',
'org.codehaus.jettison:jettison:1.5.4',
'org.json:json:20231013',
'org.apache.tapestry:tapestry-json:5.8.3',
'jakarta.json:jakarta.json-api:2.0.2',
'jakarta.json.bind:jakarta.json.bind-api:2.0.0'
]
]
snapshotVersion = true
}
allprojects {
ext.displayName = null
ext.buildTimestamp = new Date().format('yyyy-MM-dd HH:mm:ss')
group = 'com.jayway.jsonpath'
version = '2.9.0' + (snapshotVersion ? "-SNAPSHOT" : "")
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'biz.aQute.bnd.builder'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
}
java {
withJavadocJar()
withSourcesJar()
}
test {
useJUnitPlatform()
systemProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager")
testLogging {
events "passed", "skipped", "failed"
}
}
signing {
sign publishing.publications
required { !snapshotVersion && gradle.taskGraph.hasTask("publish") }
}
javadoc {
if (JavaVersion.current().isJava8Compatible()) {
options.addStringOption('Xdoclint:none', '-quiet')
}
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
publishing {
repositories {
maven {
def releaseRepo = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotRepo = "https://oss.sonatype.org/content/repositories/snapshots/"
url = snapshotVersion ? snapshotRepo : releaseRepo
credentials {
username = project.hasProperty('sonatypeOssUsername') ? sonatypeOssUsername : "Unknown user"
password = project.hasProperty('sonatypeOssPassword') ? sonatypeOssPassword : "Unknown password"
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
artifactId = jar.baseName
pom {
name = jar.baseName
description = 'A library to query and verify JSON'
url = 'https://github.com/jayway/JsonPath'
licenses {
license {
name = "The Apache Software License, Version 2.0"
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
distribution = "repo"
}
}
scm {
url = 'scm:git:git://github.com/jayway/JsonPath.git'
connection = 'scm:git:git://github.com/jayway/JsonPath.git'
developerConnection = 'scm:git:git://github.com/jayway/JsonPath.git'
}
developers {
developer {
id = 'kalle.stenflo'
name = 'Kalle Stenflo'
email = 'kalle.stenflo (a) gmail.com'
}
}
}
}
}
}
}
wrapper {
gradleVersion = '7.4.2'
}
//Task used by Heroku for staging
task stage(dependsOn: [':json-path-web-test:clean', 'json-path-web-test:jar', 'json-path-web-test:shadowJar']) {}