#8 Fix removal of META-INF that otherwise loads automatically removed YAML parser
Opened 9 months ago by fedepell. Modified 9 months ago
rpms/ fedepell/testng cleanup_yaml_dep  into  rawhide

file modified
+5 -1
@@ -2,7 +2,7 @@ 

  

  Name:           testng

  Version:        7.6.1

- Release:        5%{?dist}

+ Release:        6%{?dist}

  Summary:        Java-based testing framework

  License:        ASL 2.0

  URL:            http://testng.org/
@@ -68,6 +68,7 @@ 

  %pom_remove_dep org.yaml:snakeyaml

  rm src/main/java/org/testng/internal/Yaml*.java

  rm src/main/java/org/testng/Converter.java

+ rm src/main/resources/META-INF/services/org.testng.xml.ISuiteParser

  

  cp -p ./src/main/java/*.dtd.html ./src/main/resources/.

  
@@ -90,6 +91,9 @@ 

  %license LICENSE.txt

  

  %changelog

+ * Fri Aug 04 2023 Federico Pellegrin <fede@evolware.org> - 7.6.1-6

+ - Fix removal of META-INF that otherwise loads automatically removed YAML parser

+ 

  * Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.6.1-5

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

  

As the YAML features are stripped out in the SPEC, we should remove this also in the META-INF otherwise when executed it will still try to load it by the service configuration resulting into an error:

Exception in thread "main" java.util.ServiceConfigurationError: org.testng.xml.ISuiteParser: Provider org.testng.internal.YamlParser not found
Metadata