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

min pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-ops.git


The following commit(s) were added to refs/heads/develop by this push:
     new fc7cf4b  remove yaml dependency
fc7cf4b is described below

commit fc7cf4bbc6e4f0d66382f79af3efb5b5c87c7f24
Author: nzomkxia <[email protected]>
AuthorDate: Tue Oct 23 14:31:55 2018 +0800

    remove yaml dependency
---
 dubbo-admin-backend/pom.xml                        |  5 ---
 .../java/org/apache/dubbo/admin/util/YamlUtil.java | 39 ----------------------
 pom.xml                                            |  7 ----
 3 files changed, 51 deletions(-)

diff --git a/dubbo-admin-backend/pom.xml b/dubbo-admin-backend/pom.xml
index da5e02d..0cf43c5 100644
--- a/dubbo-admin-backend/pom.xml
+++ b/dubbo-admin-backend/pom.xml
@@ -83,11 +83,6 @@
         </dependency>
 
         <dependency>
-            <groupId>org.yaml</groupId>
-            <artifactId>snakeyaml</artifactId>
-        </dependency>
-
-        <dependency>
             <groupId>io.springfox</groupId>
             <artifactId>springfox-swagger2</artifactId>
         </dependency>
diff --git 
a/dubbo-admin-backend/src/main/java/org/apache/dubbo/admin/util/YamlUtil.java 
b/dubbo-admin-backend/src/main/java/org/apache/dubbo/admin/util/YamlUtil.java
deleted file mode 100644
index 006e1ee..0000000
--- 
a/dubbo-admin-backend/src/main/java/org/apache/dubbo/admin/util/YamlUtil.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * 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.
- */
-
-package org.apache.dubbo.admin.util;
-
-import org.yaml.snakeyaml.Yaml;
-
-import java.util.Map;
-
-public class YamlUtil {
-
-    private static Yaml yaml;
-
-    static {
-        yaml = new Yaml();
-    }
-
-    public static Map<String, Object> loadString(String text) {
-        if (text != null) {
-            return yaml.load(text);
-        }
-        return null;
-    }
-
-}
diff --git a/pom.xml b/pom.xml
index 950d1ab..4677df6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -45,7 +45,6 @@
                <dubbo-version>2.6.4</dubbo-version>
                <curator-version>2.12.0</curator-version>
                <fastjson-version>1.2.46</fastjson-version>
-               <snakeyaml-version>1.22</snakeyaml-version>
                <springfox-swagger-version>2.9.2</springfox-swagger-version>
                <netty-version>4.1.30.Final</netty-version>
        </properties>
@@ -76,12 +75,6 @@
                        </dependency>
 
                        <dependency>
-                               <groupId>org.yaml</groupId>
-                               <artifactId>snakeyaml</artifactId>
-                               <version>${snakeyaml-version}</version>
-                       </dependency>
-
-                       <dependency>
                                <groupId>io.springfox</groupId>
                                <artifactId>springfox-swagger2</artifactId>
                                <version>${springfox-swagger-version}</version>

Reply via email to