You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2022/04/17 21:53:38 UTC

[maven-reporting-exec] 06/08: [MSHARED-1064] Reintroduce org.codehaus.doxia.sink.Sink

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch doxia-2.0.0
in repository https://gitbox.apache.org/repos/asf/maven-reporting-exec.git

commit d839df5f0551f95fe170af8cdda45872ec70363e
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Apr 17 23:43:50 2022 +0200

    [MSHARED-1064] Reintroduce org.codehaus.doxia.sink.Sink
---
 pom.xml                                         |  7 ++++++
 src/main/java/org/codehaus/doxia/sink/Sink.java | 31 +++++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/pom.xml b/pom.xml
index bb28030..3997657 100644
--- a/pom.xml
+++ b/pom.xml
@@ -119,6 +119,13 @@
       <version>3.1.0</version><!-- do not upgrade to 3.2.0+ because it adds Xpp3Dom.getInputLocation(): see MSHARED-921 -->
     </dependency>
 
+    <!-- For Codehaus Doxia Sink compat shim -->
+    <dependency>
+      <groupId>org.apache.maven.doxia</groupId>
+      <artifactId>doxia-sink-api</artifactId>
+      <version>2.0.0-M2</version>
+    </dependency>
+
     <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-api</artifactId>
diff --git a/src/main/java/org/codehaus/doxia/sink/Sink.java b/src/main/java/org/codehaus/doxia/sink/Sink.java
new file mode 100644
index 0000000..0fe64cf
--- /dev/null
+++ b/src/main/java/org/codehaus/doxia/sink/Sink.java
@@ -0,0 +1,31 @@
+package org.codehaus.doxia.sink;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * Generic document processing interface.
+ *
+ * @deprecated use {@link org.apache.maven.doxia.sink.Sink} instead (since 1.0-alpha-6).
+ */
+public interface Sink
+    extends org.apache.maven.doxia.sink.Sink
+{
+    // nop
+}