Skip to content

Commit 92f01c4

Browse files
committed
Work around corruption of json-smart's Maven metadata
1 parent 731ba5f commit 92f01c4

File tree

3 files changed

+282
-0
lines changed

3 files changed

+282
-0
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ subprojects {
1717
repositories {
1818
mavenCentral()
1919
spring.mavenRepositories()
20+
maven {
21+
url project.rootProject.layout.projectDirectory.dir("temp-repo")
22+
}
2023
}
2124

2225
configurations.all {
Lines changed: 266 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,266 @@
1+
<!--
2+
Copyright 2011-2023 JSON-SMART authors
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
17+
<modelVersion>4.0.0</modelVersion>
18+
<groupId>net.minidev</groupId>
19+
<artifactId>json-smart</artifactId>
20+
<version>2.4.10</version>
21+
<name>JSON Small and Fast Parser</name>
22+
<description>JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language.</description>
23+
<packaging>bundle</packaging>
24+
<url>https://urielch.github.io/</url>
25+
<organization>
26+
<name>Chemouni Uriel</name>
27+
<url>https://urielch.github.io/</url>
28+
</organization>
29+
<developers>
30+
<developer>
31+
<id>uriel</id>
32+
<name>Uriel Chemouni</name>
33+
<email>[email protected]</email>
34+
<timezone>GMT+3</timezone>
35+
</developer>
36+
<developer>
37+
<id>erav</id>
38+
<name>Eitan Raviv</name>
39+
<email>[email protected]</email>
40+
<timezone>GMT+2</timezone>
41+
</developer>
42+
<developer>
43+
<id>Shoothzj</id>
44+
<name>ZhangJian He</name>
45+
<email>[email protected]</email>
46+
<timezone>GMT+8</timezone>
47+
</developer>
48+
</developers>
49+
<licenses>
50+
<license>
51+
<name>The Apache Software License, Version 2.0</name>
52+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
53+
<distribution>repo</distribution>
54+
<comments>All files under Apache 2</comments>
55+
</license>
56+
</licenses>
57+
<properties>
58+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
59+
<project.build.outputTimestamp>10</project.build.outputTimestamp>
60+
<maven.compiler.source>1.8</maven.compiler.source>
61+
<maven.compiler.target>1.8</maven.compiler.target>
62+
<junit.version>5.9.2</junit.version>
63+
</properties>
64+
<scm>
65+
<connection>scm:git:https://github.com/netplex/json-smart-v2.git</connection>
66+
<developerConnection>scm:git:https://github.com/netplex/json-smart-v2.git</developerConnection>
67+
<url>https://github.com/netplex/json-smart-v2</url>
68+
</scm>
69+
<distributionManagement>
70+
<snapshotRepository>
71+
<id>ossrh</id>
72+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
73+
</snapshotRepository>
74+
<repository>
75+
<id>ossrh</id>
76+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
77+
</repository>
78+
</distributionManagement>
79+
<!-- release with: export GPG_TTY=$(tty); mvn clean deploy -P release-sign-artifacts -->
80+
<profiles>
81+
<profile>
82+
<id>release-sign-artifacts</id>
83+
<activation>
84+
<property>
85+
<!-- will be set by the release plugin upon performing mvn release:perform -->
86+
<name>performRelease</name>
87+
<value>true</value>
88+
</property>
89+
</activation>
90+
<properties>
91+
<!-- original gpg key from 2011-05-28 -->
92+
<gpg.keyname>2C8DF6EC</gpg.keyname>
93+
<!-- 2021 rsa4096 key-->
94+
<!-- <gpg.keyname>53BE126D</gpg.keyname> -->
95+
<!-- <gpg.keyname>Uriel Chemouni (dev) <[email protected]></gpg.keyname> -->
96+
</properties>
97+
<build>
98+
<plugins>
99+
<plugin>
100+
<groupId>org.apache.maven.plugins</groupId>
101+
<artifactId>maven-gpg-plugin</artifactId>
102+
<version>3.0.1</version>
103+
<executions>
104+
<execution>
105+
<id>sign-artifacts</id>
106+
<phase>verify</phase>
107+
<goals>
108+
<goal>sign</goal>
109+
</goals>
110+
</execution>
111+
</executions>
112+
</plugin>
113+
<!-- Publish also javadocs when releasing - required by Sonatype -->
114+
<plugin>
115+
<groupId>org.apache.maven.plugins</groupId>
116+
<artifactId>maven-javadoc-plugin</artifactId>
117+
<version>3.5.0</version>
118+
<configuration>
119+
<source>8</source>
120+
</configuration>
121+
<executions>
122+
<execution>
123+
<id>attach-javadocs</id>
124+
<goals>
125+
<goal>jar</goal>
126+
</goals>
127+
</execution>
128+
</executions>
129+
</plugin>
130+
<!-- Release Plugin (Update version in POM before/after release, create
131+
tag, deploy) to try: mvn release:prepare -DdryRun=true && mvn release:clean
132+
to perform: mvn release:prepare release:perform Read http://nexus.sonatype.org/oss-repository-hosting.html#3
133+
for instructions on releasing to this project's Sonatype repository -->
134+
<plugin>
135+
<groupId>org.apache.maven.plugins</groupId>
136+
<artifactId>maven-release-plugin</artifactId>
137+
<version>3.0.0-M7</version>
138+
<configuration>
139+
<mavenExecutorId>forked-path</mavenExecutorId>
140+
<arguments>-Psonatype-oss-release</arguments>
141+
<autoVersionSubmodules>false</autoVersionSubmodules>
142+
<useReleaseProfile>false</useReleaseProfile>
143+
<releaseProfiles>release</releaseProfiles>
144+
<goals>deploy</goals>
145+
</configuration>
146+
</plugin>
147+
</plugins>
148+
</build>
149+
</profile>
150+
<profile>
151+
<id>include-sources</id>
152+
<build>
153+
<resources>
154+
<resource>
155+
<targetPath>/</targetPath>
156+
<filtering>true</filtering>
157+
<directory>src/main/java</directory>
158+
<includes>
159+
<include>**/*.java</include>
160+
</includes>
161+
</resource>
162+
</resources>
163+
</build>
164+
</profile>
165+
</profiles>
166+
<build>
167+
<plugins>
168+
<plugin>
169+
<groupId>org.apache.maven.plugins</groupId>
170+
<artifactId>maven-source-plugin</artifactId>
171+
<version>3.2.1</version>
172+
<executions>
173+
<execution>
174+
<id>bind-sources</id>
175+
<goals>
176+
<goal>jar-no-fork</goal>
177+
</goals>
178+
</execution>
179+
</executions>
180+
</plugin>
181+
<plugin>
182+
<groupId>org.apache.maven.plugins</groupId>
183+
<artifactId>maven-compiler-plugin</artifactId>
184+
<version>3.11.0</version>
185+
<configuration>
186+
<encoding>UTF-8</encoding>
187+
<source>${maven.compiler.source}</source>
188+
<target>${maven.compiler.target}</target>
189+
</configuration>
190+
</plugin>
191+
<plugin>
192+
<groupId>org.apache.maven.plugins</groupId>
193+
<artifactId>maven-resources-plugin</artifactId>
194+
<version>3.3.0</version>
195+
<configuration>
196+
<encoding>UTF-8</encoding>
197+
</configuration>
198+
</plugin>
199+
<plugin>
200+
<groupId>org.apache.maven.plugins</groupId>
201+
<artifactId>maven-jar-plugin</artifactId>
202+
<version>3.3.0</version>
203+
</plugin>
204+
<plugin>
205+
<groupId>org.apache.maven.plugins</groupId>
206+
<artifactId>maven-javadoc-plugin</artifactId>
207+
<version>3.5.0</version>
208+
<!-- ONLY NEEDED With jdk 1.7+ -->
209+
<configuration>
210+
<source>8</source>
211+
<failOnError>false</failOnError>
212+
<!-- <additionalparam>-Xdoclint:none</additionalparam> -->
213+
</configuration>
214+
<executions>
215+
<execution>
216+
<id>attach-javadocs</id>
217+
<goals>
218+
<goal>jar</goal>
219+
</goals>
220+
</execution>
221+
</executions>
222+
</plugin>
223+
<plugin>
224+
<groupId>org.apache.felix</groupId>
225+
<artifactId>maven-bundle-plugin</artifactId>
226+
<version>5.1.8</version>
227+
<extensions>true</extensions>
228+
<configuration>
229+
<instructions>
230+
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
231+
<Bundle-Name>${project.artifactId}</Bundle-Name>
232+
<Bundle-Version>${project.version}</Bundle-Version>
233+
<Export-Package>
234+
net.minidev.json, net.minidev.json.annotate,
235+
net.minidev.json.parser,
236+
net.minidev.json.reader,
237+
net.minidev.json.writer
238+
</Export-Package>
239+
</instructions>
240+
</configuration>
241+
</plugin>
242+
</plugins>
243+
</build>
244+
<dependencies>
245+
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
246+
<dependency>
247+
<groupId>org.junit.jupiter</groupId>
248+
<artifactId>junit-jupiter-api</artifactId>
249+
<version>${junit.version}</version>
250+
<scope>test</scope>
251+
</dependency>
252+
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-params -->
253+
<dependency>
254+
<groupId>org.junit.jupiter</groupId>
255+
<artifactId>junit-jupiter-params</artifactId>
256+
<version>${junit.version}</version>
257+
<scope>test</scope>
258+
</dependency>
259+
<!-- https://mvnrepository.com/artifact/net.minidev/accessors-smart -->
260+
<dependency>
261+
<groupId>net.minidev</groupId>
262+
<artifactId>accessors-smart</artifactId>
263+
<version>2.4.9</version>
264+
</dependency>
265+
</dependencies>
266+
</project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<metadata>
2+
<groupId>net.minidev</groupId>
3+
<artifactId>json-smart</artifactId>
4+
<versioning>
5+
<latest>2.5.2</latest>
6+
<release>2.5.2</release>
7+
<versions>
8+
<version>2.5.2</version>
9+
<version>2.4.10</version>
10+
</versions>
11+
<lastUpdated>20250212044256</lastUpdated>
12+
</versioning>
13+
</metadata>

0 commit comments

Comments
 (0)