[Git][java-team/metainf-services][upstream] New upstream version 1.8

Emmanuel Bourg gitlab at salsa.debian.org
Fri Dec 28 15:14:06 GMT 2018


Emmanuel Bourg pushed to branch upstream at Debian Java Maintainers / metainf-services


Commits:
e241ee06 by Emmanuel Bourg at 2018-12-28T15:08:18Z
New upstream version 1.8
- - - - -


2 changed files:

- pom.xml
- src/main/java/org/kohsuke/metainf_services/AnnotationProcessorImpl.java


Changes:

=====================================
pom.xml
=====================================
@@ -4,12 +4,12 @@
   <parent>
     <groupId>org.kohsuke</groupId>
     <artifactId>pom</artifactId>
-    <version>14</version>
+    <version>20</version>
   </parent>
 
   <groupId>org.kohsuke.metainf-services</groupId>
   <artifactId>metainf-services</artifactId>
-  <version>1.7</version>  
+  <version>1.8</version>  
   <name>META-INF/services generator</name>
   <description>Annotation-driven META-INF/services auto-generation</description>
   <url>http://metainf-services.kohsuke.org/</url>
@@ -18,7 +18,7 @@
     <connection>scm:git:git at github.com/kohsuke/${project.artifactId}.git</connection>
     <developerConnection>scm:git:ssh://git@github.com/kohsuke/${project.artifactId}.git</developerConnection>
     <url>http://${project.artifactId}.kohsuke.org/</url>
-    <tag>metainf-services-1.7</tag>
+    <tag>metainf-services-1.8</tag>
   </scm>
 
   <distributionManagement>
@@ -50,7 +50,7 @@
       <plugin>
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>animal-sniffer-maven-plugin</artifactId>
-          <version>1.10</version>
+          <version>1.15</version>
           <executions>
               <execution>
                   <phase>package</phase>


=====================================
src/main/java/org/kohsuke/metainf_services/AnnotationProcessorImpl.java
=====================================
@@ -61,15 +61,7 @@ import org.kohsuke.MetaInfServices;
 public class AnnotationProcessorImpl extends AbstractProcessor {
 
     @Override public SourceVersion getSupportedSourceVersion() {
-        try {
-            // Seems to work. Probably could use some additional error checks, but current code does not even verify that the class is assignable to an explicitly specified type!
-            // Need to add unit tests. See stapler/stapler/core/src/test/java/org/kohsuke/stapler/jsr269/ for examples.
-            return SourceVersion.valueOf("RELEASE_8");
-        } catch (IllegalArgumentException x) {}
-        try {
-            return SourceVersion.valueOf("RELEASE_7");
-        } catch (IllegalArgumentException x) {}
-        return SourceVersion.RELEASE_6;
+        return SourceVersion.latestSupported();
     }
 
     @Override



View it on GitLab: https://salsa.debian.org/java-team/metainf-services/commit/e241ee064a749b249b5c040cb29b213b53879d47

-- 
View it on GitLab: https://salsa.debian.org/java-team/metainf-services/commit/e241ee064a749b249b5c040cb29b213b53879d47
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20181228/f941edbd/attachment.html>


More information about the pkg-java-commits mailing list