<artifactId>yang-xpath-api</artifactId>
<version>8.0.0-SNAPSHOT</version>
</dependency>
- <dependency>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>yang-xpath-antlr</artifactId>
- <version>8.0.0-SNAPSHOT</version>
- </dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-xpath-impl</artifactId>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-xpath-api</artifactId>
</dependency>
- <dependency>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>yang-xpath-antlr</artifactId>
- </dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-xpath-impl</artifactId>
<modules>
<!-- YANG XPath API and implementation -->
<module>yang-xpath-api</module>
- <module>yang-xpath-antlr</module>
<!-- FIXME: rename to yang-xpath-ri -->
<module>yang-xpath-impl</module>
</modules>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
-
- This program and the accompanying materials are made available under the
- terms of the Eclipse Public License v1.0 which accompanies this distribution,
- and is available at http://www.eclipse.org/legal/epl-v10.html
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>bnd-parent</artifactId>
- <version>8.0.0-SNAPSHOT</version>
- <relativePath>../../bnd-parent</relativePath>
- </parent>
-
- <artifactId>yang-xpath-antlr</artifactId>
- <version>8.0.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>${project.artifactId}</name>
- <description>YANG XPath ANTLR grammars</description>
-
- <properties>
- <!-- antlr-generated code does not pass SB -->
- <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.antlr</groupId>
- <artifactId>antlr4-runtime</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.antlr</groupId>
- <artifactId>antlr4-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>antlr4</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <listener>false</listener>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
+++ /dev/null
-/*
- * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-module org.opendaylight.yangtools.yang.xpath.antlr {
- exports org.opendaylight.yangtools.yang.xpath.antlr;
-
- requires transitive org.antlr.antlr4.runtime;
-
- // Annotations
- requires static org.osgi.annotation.bundle;
-}
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-xpath-api</artifactId>
</dependency>
- <dependency>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>yang-xpath-antlr</artifactId>
- </dependency>
<dependency>
<groupId>org.kohsuke.metainf-services</groupId>
<artifactId>org.osgi.service.component.annotations</artifactId>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.antlr</groupId>
+ <artifactId>antlr4-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>antlr4</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <listener>false</listener>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
provides YangXPathParserFactory with AntlrXPathParserFactory;
requires java.xml;
+ requires org.antlr.antlr4.runtime;
requires org.opendaylight.yangtools.yang.common;
requires org.opendaylight.yangtools.yang.xpath.api;
- requires org.opendaylight.yangtools.yang.xpath.antlr;
requires org.slf4j;
// Annotations
* ANTLR grammars for parsing RFC7950 XPpath constructs. This package is considered an implementation detail and does
* not fall under API stability contract. Use at your own risk.
*/
-@Export
+@SuppressFBWarnings(justification = "Code generated by ANTLR does not pass SpotBugs")
package org.opendaylight.yangtools.yang.xpath.antlr;
-import org.osgi.annotation.bundle.Export;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
*/
/**
* Package exposing {@link org.opendaylight.yangtools.yang.xpath.api.YangXPathParserFactory} component to various
- * dependency injection frameworks, so they can locate them.
+ * dependency injection frameworks, so they can locate them. This package is not exposed to OSGi runtime.
*/
package org.opendaylight.yangtools.yang.xpath.impl.di;
\ No newline at end of file
* XPath parsing which results in a {@link org.opendaylight.yangtools.yang.xpath.api.YangExpr}. This is based
* on the XPath grammar from <a href="https://github.com/antlr/grammars-v4/blob/master/xpath/xpath.g4">grammars-v4</a>.
*/
-@org.eclipse.jdt.annotation.NonNullByDefault
-@org.osgi.service.component.annotations.RequireServiceComponentRuntime
-package org.opendaylight.yangtools.yang.xpath.impl;
\ No newline at end of file
+@NonNullByDefault
+@RequireServiceComponentRuntime
+package org.opendaylight.yangtools.yang.xpath.impl;
+
+import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.osgi.service.component.annotations.RequireServiceComponentRuntime;
\ No newline at end of file