From 9eb20e5e7cffb4064b405085979f679ccb246048 Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Mon, 29 Aug 2022 14:18:33 -0700 Subject: [PATCH] Remove dependency on jvm-attach. (#12989) This dependency was no longer needed after #12481, but remained because it was used for a (now useless) test. This patch removes the test and the dependency. --- core/pom.xml | 4 --- .../druid/java/util/metrics/GcNameTest.java | 33 ------------------- licenses.yaml | 10 ------ pom.xml | 5 --- 4 files changed, 52 deletions(-) delete mode 100644 core/src/test/java/org/apache/druid/java/util/metrics/GcNameTest.java diff --git a/core/pom.xml b/core/pom.xml index a0f96fc2f35..d588045cf54 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -276,10 +276,6 @@ dependency are copied as resources. See maven-dependency-plugin configuration and below. --> provided - - org.gridkit.lab - jvm-attach-api - diff --git a/core/src/test/java/org/apache/druid/java/util/metrics/GcNameTest.java b/core/src/test/java/org/apache/druid/java/util/metrics/GcNameTest.java deleted file mode 100644 index 7574b9c8175..00000000000 --- a/core/src/test/java/org/apache/druid/java/util/metrics/GcNameTest.java +++ /dev/null @@ -1,33 +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.druid.java.util.metrics; - -import org.gridkit.lab.jvm.perfdata.JStatData; - -public class GcNameTest -{ - - public static void main(String[] args) - { - JStatData jStatData = JStatData.connect(SigarUtil.getCurrentProcessId()); - System.out.println(jStatData.getAllCounters().get("sun.gc.collector.0.name").getValue()); - System.out.println(jStatData.getAllCounters().get("sun.gc.collector.1.name").getValue()); - } -} diff --git a/licenses.yaml b/licenses.yaml index 426dab2da04..50cddbdbbad 100644 --- a/licenses.yaml +++ b/licenses.yaml @@ -2160,16 +2160,6 @@ notice: | --- -name: JVM Attach API -license_category: binary -module: java-core -license_name: Apache License version 2.0 -version: 1.5 -libraries: - - org.gridkit.lab: jvm-attach-api - ---- - name: Hibernate Validator Engine license_category: binary module: java-core diff --git a/pom.xml b/pom.xml index df3cb2562cd..5f5f6d59d9e 100644 --- a/pom.xml +++ b/pom.xml @@ -841,11 +841,6 @@ 2.5.3 - - org.gridkit.lab - jvm-attach-api - 1.5 - net.java.dev.jna jna