diff options
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 474 |
1 files changed, 331 insertions, 143 deletions
@@ -1,30 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> <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.yaml</groupId> <artifactId>snakeyaml</artifactId> - <version>1.18-SNAPSHOT</version> + <version>1.32</version> <packaging>bundle</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.scm.id>bitbucket</project.scm.id> <release.repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</release.repo.url> <snapshot.repo.url>https://oss.sonatype.org/content/repositories/snapshots/</snapshot.repo.url> - <maven.compiler.source>1.6</maven.compiler.source> - <maven.compiler.target>1.6</maven.compiler.target> + <maven.compiler.source>7</maven.compiler.source> + <maven.compiler.target>7</maven.compiler.target> + <maven.compiler.testSource>8</maven.compiler.testSource> + <maven.compiler.testTarget>8</maven.compiler.testTarget> <maven.javadoc.failOnError>false</maven.javadoc.failOnError> + <maven-bundle-plugin.version>5.1.8</maven-bundle-plugin.version> + <maven-resources-plugin.version>3.1.0</maven-resources-plugin.version><!-- for Github CI --> + <cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version> + <maven-site-plugin.version>3.12.1</maven-site-plugin.version> + <maven-surefire-plugin.version>3.0.0-M7</maven-surefire-plugin.version> + <jdk9-illegal-access-level>deny</jdk9-illegal-access-level> </properties> <name>SnakeYAML</name> <description>YAML 1.1 parser and emitter for Java</description> <inceptionYear>2008</inceptionYear> - <url>http://www.snakeyaml.org</url> + <url>https://bitbucket.org/snakeyaml/snakeyaml</url> <issueManagement> <system>Bitbucket</system> - <url>https://bitbucket.org/asomov/snakeyaml/issues</url> + <url>https://bitbucket.org/snakeyaml/snakeyaml/issues</url> </issueManagement> - <!--ciManagement> - <system>jenkins</system> - <url>https://snakeyaml.ci.cloudbees.com/job/SnakeYAML/</url> - </ciManagement--> <mailingLists> <mailingList> <name>SnakeYAML developers and users List</name> @@ -32,11 +37,11 @@ </mailingList> </mailingLists> <scm> - <connection>scm:hg:http://bitbucket.org/asomov/snakeyaml</connection> - <developerConnection>scm:hg:ssh://hg@bitbucket.org/asomov/snakeyaml</developerConnection> - <url>https://bitbucket.org/asomov/snakeyaml/src</url> - <tag>HEAD</tag> - </scm> + <connection>scm:git:http://bitbucket.org/snakeyaml/snakeyaml</connection> + <developerConnection>scm:git:ssh://git@bitbucket.org/snakeyaml/snakeyaml</developerConnection> + <url>https://bitbucket.org/snakeyaml/snakeyaml/src</url> + <tag>snakeyaml-1.32</tag> + </scm> <licenses> <license> <name>Apache License, Version 2.0</name> @@ -55,38 +60,30 @@ <name>Alexander Maslov</name> <email>alexander.maslov@gmail.com</email> </developer> - <developer> - <id>Jordan</id> - <name>Jordan Angold</name> - <email>jordanangold@gmail.com</email> - </developer> </developers> - <prerequisites> - <maven>3.0.5</maven> - </prerequisites> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> - <version>4.12</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring</artifactId> - <version>2.5.6</version> + <version>4.13.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.velocity</groupId> - <artifactId>velocity</artifactId> - <version>1.6.2</version> + <artifactId>velocity-engine-core</artifactId> + <version>2.3</version> <scope>test</scope> </dependency> <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> - <version>1.6</version> + <version>2.11.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.projectlombok</groupId> + <artifactId>lombok</artifactId> + <version>1.18.24</version> <scope>test</scope> </dependency> </dependencies> @@ -97,7 +94,7 @@ <url>${release.repo.url}</url> </repository> <snapshotRepository> - <id>sonatype-nexus-snapshots</id> + <id>sonatype-nexus-staging</id> <name>Sonatype Nexus Snapshots</name> <url>${snapshot.repo.url}</url> <uniqueVersion>false</uniqueVersion> @@ -114,21 +111,79 @@ <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>${maven-resources-plugin.version}</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> - <version>2.10.3</version> + <version>3.4.1</version> + <configuration> + <excludePackageNames>org.yaml.snakeyaml.external.*</excludePackageNames> + </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> - <version>3.5</version> + <version>${maven-site-plugin.version}</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>3.2.2</version> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <version>${cobertura-maven-plugin.version}</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.10.1</version> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>3.3.0</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>${maven-surefire-plugin.version}</version> + <configuration> + <environmentVariables> + <EnvironmentKey1>EnvironmentValue1</EnvironmentKey1> + <EnvironmentEmpty /> + </environmentVariables> + </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <version>3.1.0</version> + <executions> + <execution> + <id>enforce-maven</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <requireMavenVersion> + <version>3.3.0</version> + </requireMavenVersion> + </rules> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> - <version>3.5.1</version> <configuration> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> @@ -138,7 +193,6 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> - <version>2.19.1</version> <configuration> <argLine>-Xmx512m</argLine> <includes> @@ -159,37 +213,9 @@ </configuration> </plugin> <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - <version>2.7</version> - <configuration> - <check> - <totalBranchRate>80</totalBranchRate> - <totalLineRate>95</totalLineRate> - </check> - <formats> - <format>html</format> - <format>xml</format> - </formats> - <instrumentation> - <excludes> - <exclude>org/yaml/snakeyaml/external/**</exclude> - </excludes> - </instrumentation> - </configuration> - <executions> - <execution> - <goals> - <goal>clean</goal> - <goal>check</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changes-plugin</artifactId> - <version>2.11</version> + <version>2.12.1</version> <executions> <execution> <id>validate-changes</id> @@ -206,11 +232,11 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> - <version>3.0.0</version> + <version>3.2.1</version> <executions> <execution> <goals> - <goal>jar</goal> + <goal>jar-no-fork</goal> </goals> </execution> </executions> @@ -218,11 +244,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> - <configuration> - <links> - <link>http://java.sun.com/javase/6/docs/api/</link> - </links> - </configuration> + <version>3.4.1</version> <executions> <execution> <id>attach-javadocs</id> @@ -264,7 +286,7 @@ <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> - <version>3.0.1</version> + <version>${maven-bundle-plugin.version}</version> <extensions>true</extensions> <configuration> <instructions> @@ -273,13 +295,13 @@ !org.yaml.snakeyaml.external*, org.yaml.snakeyaml.*;version=${project.version} </Export-Package> - <Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment> + <Automatic-Module-Name>org.yaml.snakeyaml</Automatic-Module-Name> </instructions> </configuration> </plugin> <plugin> <artifactId>maven-site-plugin</artifactId> - <version>3.4</version> + <version>${maven-site-plugin.version}</version> <executions> <execution> <id>attach-descriptor</id> @@ -289,6 +311,31 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <version>2.5.3</version> + <configuration> + <autoVersionSubmodules>true</autoVersionSubmodules> + <useReleaseProfile>false</useReleaseProfile> + <releaseProfiles>android,release</releaseProfiles> + <goals>deploy nexus-staging:release</goals> + </configuration> + </plugin> + <plugin> + <groupId>org.sonatype.plugins</groupId> + <artifactId>nexus-staging-maven-plugin</artifactId> + <!-- the version is compatible with Nexus, do not change --> + <version>1.6.8</version> + <extensions>true</extensions> + <configuration> + <serverId>sonatype-nexus-staging</serverId> + <nexusUrl>https://oss.sonatype.org/</nexusUrl> + <autoReleaseAfterClose>false</autoReleaseAfterClose> + <keepStagingRepositoryOnFailure>true</keepStagingRepositoryOnFailure> + <keepStagingRepositoryOnCloseRuleFailure>true</keepStagingRepositoryOnCloseRuleFailure> + </configuration> + </plugin> </plugins> </build> <reporting> @@ -296,9 +343,9 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changes-plugin</artifactId> - <version>2.11</version> + <version>2.12.1</version> <configuration> - <issueLinkTemplate>https://bitbucket.org/asomov/snakeyaml/issues/%ISSUE%</issueLinkTemplate> + <issueLinkTemplate>https://bitbucket.org/snakeyaml/snakeyaml/issues/%ISSUE%</issueLinkTemplate> </configuration> <reportSets> <reportSet> @@ -311,23 +358,12 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> - <version>2.19.1</version> + <version>${maven-surefire-plugin.version}</version> <configuration> <showSuccess>true</showSuccess> </configuration> </plugin> <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - <version>2.6</version> - <configuration> - <formats> - <format>html</format> - <format>xml</format> - </formats> - </configuration> - </plugin> - <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <reportSets> @@ -360,7 +396,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-toolchains-plugin</artifactId> - <version>1.1</version> + <version>3.1.0</version> <executions> <execution> <phase>validate</phase> @@ -370,45 +406,151 @@ </execution> </executions> <configuration> - <toolchains> - <jdk> - <version>${maven.compiler.target}</version> - </jdk> - </toolchains> + <toolchains> + <jdk> + <version>${maven.compiler.testTarget}</version> + </jdk> + </toolchains> </configuration> </plugin> </plugins> </build> </profile> <profile> - <id>with-java8-tests</id> - <properties> - <maven.compiler.source>1.8</maven.compiler.source> - <maven.compiler.target>1.8</maven.compiler.target> - </properties> - <build> - <plugins> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <version>1.10</version> - <executions> - <execution> - <id>add-java8-test-source</id> - <phase>generate-test-sources</phase> - <goals> - <goal>add-test-source</goal> - </goals> - <configuration> - <sources> - <source>${basedir}/src/test/java8/</source> - </sources> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> + <id>with-coverage</id> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <configuration> + <check> + <totalBranchRate>80</totalBranchRate> + <totalLineRate>95</totalLineRate> + </check> + <formats> + <format>html</format> + <format>xml</format> + </formats> + <instrumentation> + <excludes> + <exclude>org/yaml/snakeyaml/external/**</exclude> + </excludes> + </instrumentation> + </configuration> + <executions> + <execution> + <goals> + <goal>clean</goal> + <goal>check</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + <reporting> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <configuration> + <check> + <branchRate>85</branchRate> + <lineRate>85</lineRate> + <haltOnFailure>true</haltOnFailure> + </check> + <formats> + <format>html</format> + <format>xml</format> + </formats> + </configuration> + <reportSets> + <reportSet> + <reports> + <report>cobertura</report> + </reports> + </reportSet> + </reportSets> + </plugin> + </plugins> + </reporting> + </profile> + <profile> + <id>with-java8-tests</id> + <properties> + <maven.compiler.testSource>1.8</maven.compiler.testSource> + <maven.compiler.testTarget>1.8</maven.compiler.testTarget> + </properties> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>add-java8-test-source</id> + <phase>generate-test-sources</phase> + <goals> + <goal>add-test-source</goal> + </goals> + <configuration> + <sources> + <source>${basedir}/src/test/java8/</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>with-java11-tests</id> + <properties> + <maven.compiler.testSource>11</maven.compiler.testSource> + <maven.compiler.testTarget>11</maven.compiler.testTarget> + </properties> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <argLine>--illegal-access=${jdk9-illegal-access-level} -Xmx512m</argLine> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <compilerArgs> + <!-- arg>-Xlint:unchecked</arg --> + <arg>-Xlint:deprecation</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>add-java11-test-source</id> + <phase>generate-test-sources</phase> + <goals> + <goal>add-test-source</goal> + </goals> + <configuration> + <sources> + <source>${basedir}/src/test/java8/</source> + <source>${basedir}/src/test/java11/</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> </profile> <profile> <id>release</id> @@ -423,7 +565,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> - <version>1.6</version> + <version>3.0.1</version> <executions> <execution> <id>sign-artifacts</id> @@ -444,12 +586,12 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> - <version>3.0.3</version> + <version>3.0.5</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> - <version>3.6</version> + <version>3.19.0</version> </plugin> </plugins> </build> @@ -458,22 +600,22 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> - <version>2.5</version> + <version>3.3.0</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> - <version>3.0.3</version> + <version>3.0.5</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> - <version>3.6</version> + <version>3.19.0</version> <configuration> <linkXref>true</linkXref> <sourceEncoding>utf-8</sourceEncoding> <minimumTokens>100</minimumTokens> - <targetJdk>1.5</targetJdk> + <targetJdk>1.8</targetJdk> <excludes> <exclude>**/external/*.java</exclude> </excludes> @@ -485,15 +627,18 @@ <profile> <id>android</id> <properties> - <android.src>${project.build.directory}/android/src/</android.src> + <android.src>${project.build.directory}/android/src</android.src> + <android.src.main>${android.src}/main/java</android.src.main> + <android.src.test>${android.src}/test/java</android.src.test> <android.classes>${project.build.directory}/android/classes/</android.classes> <android.test.classes>${project.build.directory}/android/test-classes/</android.test.classes> </properties> <build> <plugins> <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> - <version>2.7</version> + <version>${maven-resources-plugin.version}</version> <executions> <execution> <id>copy-src-for-android</id> @@ -502,7 +647,7 @@ <goal>copy-resources</goal> </goals> <configuration> - <outputDirectory>${android.src}</outputDirectory> + <outputDirectory>${android.src.main}</outputDirectory> <resources> <resource> <directory>${basedir}/src/main/java</directory> @@ -515,6 +660,25 @@ </configuration> </execution> <execution> + <id>copy-test-src-for-android</id> + <phase>generate-sources</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${android.src.test}</outputDirectory> + <resources> + <resource> + <directory>${basedir}/src/test/java</directory> + <filtering>false</filtering> + <excludes> + <exclude>org/yaml/snakeyaml/introspector/MethodProperty.java</exclude> + </excludes> + </resource> + </resources> + </configuration> + </execution> + <execution> <id>copy-test-resources-for-android</id> <phase>process-test-resources</phase> <goals> @@ -525,6 +689,7 @@ <resources> <resource> <directory>${basedir}/src/test/resources</directory> + <filtering>true</filtering> </resource> </resources> </configuration> @@ -540,7 +705,7 @@ <patchDirectory>${basedir}/src/patches/android/</patchDirectory> <targetDirectory>${android.src}</targetDirectory> <skipApplication>false</skipApplication> - <strip>4</strip> + <strip>2</strip> </configuration> <executions> <execution> @@ -550,8 +715,7 @@ <goal>apply</goal> </goals> <configuration> - <patchTrackingFile>${project.build.directory}/android/patches-applied.txt - </patchTrackingFile> + <patchTrackingFile>${project.build.directory}/android/patches-applied.txt</patchTrackingFile> <naturalOrderProcessing>true</naturalOrderProcessing> </configuration> </execution> @@ -560,7 +724,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> - <version>1.8</version> + <version>3.1.0</version> <executions> <execution> <id>build-for-android</id> @@ -574,15 +738,18 @@ <mkdir dir="${android.test.classes}" /> <!-- compile patched sources --> - <javac srcdir="${android.src}" destdir="${android.classes}" classpath="${android.classes}" encoding="${project.build.sourceEncoding}" target="1.5" source="1.5" debug="true" includeantruntime="false" fork="true" /> + <javac srcdir="${android.src.main}" destdir="${android.classes}" classpath="${android.classes}" encoding="${project.build.sourceEncoding}" target="1.7" source="1.7" debug="true" includeantruntime="true" fork="true" /> <!-- compile test classes. Exclude some - not for BeanAccess.FIELD --> - <javac srcdir="${basedir}/src/test/java:${basedir}/src/test/resources" destdir="${android.test.classes}" classpath="${android.classes}:${android.test.classes}:${junit:junit:jar}:${org.springframework:spring:jar}:${org.apache.velocity:velocity:jar}:${joda-time:joda-time:jar}" encoding="${project.build.sourceEncoding}" target="1.5" source="1.5" debug="true" includeantruntime="false" fork="true"> + <javac srcdir="${android.src.test}:${basedir}/src/test/resources" destdir="${android.test.classes}" classpath="${android.classes}:${android.test.classes}:${junit:junit:jar}:${org.apache.velocity:velocity:jar}:${joda-time:joda-time:jar}:${commons-io:commons-io:jar}:${commons-lang:commons-lang:jar}:${org.hamcrest:hamcrest-core:jar}:${org.projectlombok:lombok:jar}" encoding="${project.build.sourceEncoding}" target="1.7" source="1.7" debug="true" includeantruntime="true" fork="true"> + <exclude name="org/yaml/snakeyaml/introspector/MethodPropertyTest.java" /> <exclude name="org/yaml/snakeyaml/representer/FilterPropertyToDumpTest.java" /> <exclude name="org/yaml/snakeyaml/issues/issue60/CustomOrderTest.java" /> <exclude name="org/yaml/snakeyaml/issues/issue29/FlexibleScalarStylesInJavaBeanTest.java" /> - + <!-- uses filtered resources. Additional tricks needed to be able to run under current build --> + <exclude name="org/yaml/snakeyaml/issues/issue318/ContextClassLoaderTest.java" /> + <exclude name="org/yaml/snakeyaml/emitter/template/VelocityTest.java" /> </javac> </target> @@ -601,8 +768,7 @@ </goals> <configuration> <classesDirectory>${android.classes}</classesDirectory> - <reportsDirectory>${project.build.directory}/android/surefire-reports - </reportsDirectory> + <reportsDirectory>${project.build.directory}/android/surefire-reports</reportsDirectory> <testClassesDirectory>${android.test.classes}</testClassesDirectory> <!-- We ignore test failures for android build at the moment. @@ -633,5 +799,27 @@ </plugins> </build> </profile> + <profile> + <id>reformat</id> + <build> + <plugins> + <plugin> + <groupId>net.revelc.code.formatter</groupId> + <artifactId>formatter-maven-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>format</goal> + </goals> + <configuration> + <configFile>src/etc/eclipse-java-google-style.xml</configFile> + <encoding>UTF-8</encoding> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> </profiles> </project> |