commit
ce6865b8e2
BIN
jenkins-json-lib-2.4.tar.xz
Normal file
BIN
jenkins-json-lib-2.4.tar.xz
Normal file
Binary file not shown.
418
json-lib-2.4-jenkins-3.pom
Normal file
418
json-lib-2.4-jenkins-3.pom
Normal file
@ -0,0 +1,418 @@
|
||||
<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/maven-v4_0_0.xsd">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.kohsuke.stapler</groupId>
|
||||
<artifactId>json-lib</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>2.4-jenkins-3</version>
|
||||
<name>json-lib</name>
|
||||
|
||||
<url>http://json-lib.sourceforge.net</url>
|
||||
|
||||
<description>
|
||||
Java library for transforming beans, maps, collections, java
|
||||
arrays and XML to JSON.
|
||||
</description>
|
||||
|
||||
<inceptionYear>2006</inceptionYear>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>The Apache Software License, Version 2.0</name>
|
||||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||
<distribution>repo</distribution>
|
||||
<comments>
|
||||
This product includes software developed by Douglas
|
||||
Crockford (http://www.crockford.com).
|
||||
</comments>
|
||||
</license>
|
||||
</licenses>
|
||||
<organization>
|
||||
<name>Json-lib</name>
|
||||
<url>http://json-lib.sourceforge.net</url>
|
||||
</organization>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:git://github.com/jenkinsci/json-lib.git</connection>
|
||||
<developerConnection>scm:git:ssh://git@github.com/jenkinsci/json-lib.git</developerConnection>
|
||||
<url>https://github.com/jenkinsci/json-lib</url>
|
||||
</scm>
|
||||
|
||||
<issueManagement>
|
||||
<system>SourceForge</system>
|
||||
<url>https://sourceforge.net/tracker/?group_id=171425</url>
|
||||
</issueManagement>
|
||||
|
||||
<mailingLists>
|
||||
<mailingList>
|
||||
<name>Json-lib User List</name>
|
||||
<subscribe>
|
||||
http://lists.sourceforge.net/lists/listinfo/json-lib-user
|
||||
</subscribe>
|
||||
<unsubscribe>
|
||||
http://lists.sourceforge.net/lists/listinfo/json-lib-user
|
||||
</unsubscribe>
|
||||
<archive>
|
||||
http://sourceforge.net/mailarchive/forum.php?forum=json-lib-user
|
||||
</archive>
|
||||
</mailingList>
|
||||
</mailingLists>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<name>Douglas Crockford</name>
|
||||
<email>json at JSON.org</email>
|
||||
<organization>JSON.org</organization>
|
||||
<roles>
|
||||
<role>Original source code developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<name>Andres Almiray</name>
|
||||
<id>aalmiray</id>
|
||||
<email>aalmiray@users.sourceforge.net</email>
|
||||
<timezone>-5</timezone>
|
||||
<roles>
|
||||
<role>Java Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<contributors>
|
||||
<contributor>
|
||||
<name>Matt Small</name>
|
||||
<organization>WaveMaker</organization>
|
||||
<roles>
|
||||
<role>Contributed generics support</role>
|
||||
</roles>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Dan Fabulich</name>
|
||||
<roles>
|
||||
<role>Feedback on JDK5 and JEE features</role>
|
||||
</roles>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Masato Nagai</name>
|
||||
<roles>
|
||||
<role>Patch for XMLSerializer</role>
|
||||
</roles>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Gino Miceli</name>
|
||||
<roles>
|
||||
<role>Patch for PropertySet strategy</role>
|
||||
</roles>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Mino Tonga</name>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Yee_Keat Phuah</name>
|
||||
<roles>
|
||||
<role>Patch for thread safety in JSONObject/JSONArray</role>
|
||||
</roles>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Oliver Zyngier</name>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Marcelo Liberato</name>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Mathias Herberst</name>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Ales Novy</name>
|
||||
<roles>
|
||||
<role>Patch for performance improvements in JSONUtils</role>
|
||||
<role>Patch for propagating JsonConfig to missing methods on JSONObject</role>
|
||||
</roles>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Peter Schubert</name>
|
||||
<roles>
|
||||
<role>Performance patch for JSONUtils</role>
|
||||
</roles>
|
||||
</contributor>
|
||||
<contributor>
|
||||
<name>Ian Wolfcat Atha</name>
|
||||
<roles>
|
||||
<role>Performance patch for JSONUtils</role>
|
||||
</roles>
|
||||
</contributor>
|
||||
</contributors>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.2</version>
|
||||
<scope>compile</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xmlunit</groupId>
|
||||
<artifactId>xmlunit</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-beanutils</groupId>
|
||||
<artifactId>commons-beanutils</artifactId>
|
||||
<version>1.8.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-collections</groupId>
|
||||
<artifactId>commons-collections</artifactId>
|
||||
<version>3.2.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<version>2.5</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>1.1.1</version>
|
||||
<scope>compile</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>logkit</groupId>
|
||||
<artifactId>logkit</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>avalon-framework</groupId>
|
||||
<artifactId>avalon-framework</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>servlet-api</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xom</groupId>
|
||||
<artifactId>xom</artifactId>
|
||||
<version>1.1</version>
|
||||
<scope>compile</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>oro</groupId>
|
||||
<artifactId>oro</artifactId>
|
||||
<version>2.0.8</version>
|
||||
<scope>compile</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.sf.ezmorph</groupId>
|
||||
<artifactId>ezmorph</artifactId>
|
||||
<version>1.0.6</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.14</version>
|
||||
<scope>runtime</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.groovy</groupId>
|
||||
<artifactId>groovy-all</artifactId>
|
||||
<version>1.8.0</version>
|
||||
<scope>compile</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-httpclient</groupId>
|
||||
<artifactId>commons-httpclient</artifactId>
|
||||
<version>3.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<prerequisites>
|
||||
<maven>3.0.1</maven>
|
||||
</prerequisites>
|
||||
|
||||
<build>
|
||||
<defaultGoal>install</defaultGoal>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>add-source</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>add-source</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<sources>
|
||||
<source>src/main/jdk15</source>
|
||||
</sources>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>add-test-source</id>
|
||||
<phase>generate-test-sources</phase>
|
||||
<goals>
|
||||
<goal>add-test-source</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<sources>
|
||||
<source>src/test/jdk15</source>
|
||||
</sources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
<configuration>
|
||||
<templateDirectory>
|
||||
${basedir}/src/site
|
||||
</templateDirectory>
|
||||
<template>site.vm</template>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.8</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/Abstract*.java</exclude>
|
||||
<exclude>**/AllTests.java</exclude>
|
||||
<exclude>**/*closure*</exclude>
|
||||
</excludes>
|
||||
<includes>
|
||||
<include>**/Test*.java</include>
|
||||
</includes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-report-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jxr-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.1</version>
|
||||
<configuration>
|
||||
<links>
|
||||
<link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
|
||||
<link>http://www.junit.org/junit/javadoc/</link>
|
||||
<link>
|
||||
http://jakarta.apache.org/commons/beanutils/commons-beanutils-1.7.0/docs/api/
|
||||
</link>
|
||||
<link>
|
||||
http://jakarta.apache.org/commons/lang/api-2.2/
|
||||
</link>
|
||||
<link>http://ezmorph.sourceforge.net/apidocs/</link>
|
||||
</links>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>cobertura-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>changes-maven-plugin</artifactId>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
<report>changes-report</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>jdepend-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>javancss-maven-plugin</artifactId>
|
||||
<version>2.0-beta-1</version>
|
||||
</plugin>
|
||||
<!--
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>findbugs-maven-plugin</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>jdiff-maven-plugin</artifactId>
|
||||
<version>0.1-SNAPSHOT</version>
|
||||
<configuration>
|
||||
<packages>net.sf.json</packages>
|
||||
<oldTag>2.0</oldTag>
|
||||
<newTag>CURRENT</newTag>
|
||||
</configuration>
|
||||
</plugin>
|
||||
-->
|
||||
</plugins>
|
||||
</reporting>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>maven.jenkins-ci.org</id>
|
||||
<url>http://maven.jenkins-ci.org:8081/content/repositories/releases</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>maven.jenkins-ci.org</id>
|
||||
<url>http://maven.jenkins-ci.org:8081/content/repositories/snapshots</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
|
||||
<!--
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>codehaus-snapshot-plugins</id>
|
||||
<name>codehaus-shapshot-plugins</name>
|
||||
<url>http://snapshots.repository.codehaus.org/</url>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
<releases>
|
||||
<enabled>false</enabled>
|
||||
</releases>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
-->
|
||||
|
||||
</project>
|
||||
BIN
json-lib-2.4.tar.xz
Normal file
BIN
json-lib-2.4.tar.xz
Normal file
Binary file not shown.
101
json-lib.spec
Normal file
101
json-lib.spec
Normal file
@ -0,0 +1,101 @@
|
||||
Name: json-lib
|
||||
Version: 2.4
|
||||
Release: 16
|
||||
Summary: JSON library for Java
|
||||
License: ASL 2.0
|
||||
URL: http://json-lib.sourceforge.net/
|
||||
# https://github.com/aalmiray/Json-lib/commit/a45916508dcfe4fe048e2eac10573a4a20ed6a9a
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
# https://github.com/kordamp/json-lib/commit/78cc0083692ad2e30c7bcf3929c697d605a90317
|
||||
Source1: jenkins-%{name}-%{version}.tar.xz
|
||||
Source2: http://repo.jenkins-ci.org/releases/org/kohsuke/stapler/json-lib/%{version}-jenkins-3/json-lib-%{version}-jenkins-3.pom
|
||||
|
||||
BuildRequires: java-devel maven-local maven-shared maven-surefire-provider-junit
|
||||
BuildRequires: mvn(commons-beanutils:commons-beanutils) mvn(commons-lang:commons-lang)
|
||||
BuildRequires: mvn(commons-collections:commons-collections) mvn(junit:junit) mvn(log4j:log4j)
|
||||
BuildRequires: mvn(commons-logging:commons-logging) mvn(net.sf.ezmorph:ezmorph)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) mvn(oro:oro) mvn(xom:xom)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-site-plugin) mvn(xmlunit:xmlunit)
|
||||
BuildRequires: mvn(org.codehaus.groovy:groovy18:1.8) mvn(org.codehaus.groovy:groovy18-all:1.8)
|
||||
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) mvn(antlr:antlr) mvn(asm:asm-all)
|
||||
BuildRequires: mvn(commons-cli:commons-cli) mvn(org.slf4j:slf4j-nop)
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
JSON-lib is a java library for transforming beans, maps, collections, java
|
||||
arrays and XML to JSON and back again to beans and DynaBeans.
|
||||
|
||||
%package -n jenkins-json-lib
|
||||
Summary: Jenkins JSON library
|
||||
|
||||
%description -n jenkins-json-lib
|
||||
This package contains JSON library used in Jenkins.
|
||||
|
||||
%package help
|
||||
Summary: Help documentation for json-lib package
|
||||
Provides: %{name}-javadoc = %{version}-%{release}
|
||||
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
||||
|
||||
%description help
|
||||
Help documentation for json-lib package.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
tar xf %{SOURCE1}
|
||||
find -name "*.jar" -or -name "*.class" | xargs rm -rf
|
||||
|
||||
%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.groovy']/pom:artifactId" groovy
|
||||
%pom_remove_plugin :maven-compiler-plugin
|
||||
%pom_remove_plugin :gmaven-plugin
|
||||
%pom_xpath_remove "pom:project/pom:prerequisites"
|
||||
%pom_xpath_remove "pom:project/pom:reporting"
|
||||
|
||||
rm -r src/main/jdk15/net/sf/json/JSON*.java
|
||||
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin . '
|
||||
<configuration>
|
||||
<charset>UTF-8</charset>
|
||||
<docencoding>UTF-8</docencoding>
|
||||
<sourcepath>${basedir}/src/main</sourcepath>
|
||||
</configuration>'
|
||||
|
||||
%pom_remove_dep :commons-httpclient
|
||||
%pom_change_dep org.codehaus.groovy:groovy org.codehaus.groovy:groovy18:1.8
|
||||
|
||||
install %{SOURCE2} jenkins-json-lib-%{version}/pom.xml
|
||||
|
||||
cd jenkins-json-lib-%{version}
|
||||
|
||||
%pom_change_dep org.codehaus.groovy:groovy-all org.codehaus.groovy:groovy18-all:1.8
|
||||
%mvn_file org.kohsuke.stapler:json-lib jenkins-%{name}
|
||||
%mvn_package org.kohsuke.stapler:json-lib jenkins-json-lib
|
||||
|
||||
cd -
|
||||
|
||||
%build
|
||||
%mvn_file : json-lib
|
||||
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
||||
|
||||
cd jenkins-json-lib-%{version}
|
||||
%mvn_build -f
|
||||
cd -
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
cd jenkins-json-lib-%{version}
|
||||
%mvn_install
|
||||
cd -
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE.txt
|
||||
|
||||
%files -n jenkins-json-lib -f jenkins-json-lib-%{version}/.mfiles-jenkins-json-lib
|
||||
%license LICENSE.txt
|
||||
|
||||
%files help -f .mfiles-javadoc
|
||||
%license LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Sat Mar 07 2020 daiqianwen <daiqianwen@huawei.com> - 2.4-16
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user