Skip to content

Commit

Permalink
[Schema Registry] Move module-info.java to the right directory (Azure…
Browse files Browse the repository at this point in the history
…#15726)

* Move module-info.java to the right directory

* Fix module-info related changes to compile and run tests

* Missing module-info
  • Loading branch information
srnagar authored Sep 25, 2020
1 parent 2b02c9c commit 9f051ce
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 3 deletions.
29 changes: 26 additions & 3 deletions sdk/schemaregistry/azure-data-schemaregistry-avro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
<version>1.0.0-beta.5</version> <!-- {x-version-update;com.azure:azure-data-schemaregistry;current} -->
</dependency>
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
<version>1.9.2</version> <!-- {x-version-update;org.apache.avro:avro;external_dependency} -->
<groupId>com.azure</groupId>
<artifactId>azure-core-serializer-avro-apache</artifactId>
<version>1.0.0-beta.3</version> <!-- {x-version-update;com.azure:azure-core-serializer-avro-apache;dependency} -->
</dependency>

<!-- Test dependencies -->
Expand Down Expand Up @@ -124,4 +124,27 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>java-lts</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version> <!-- {x-version-update;org.apache.maven.plugins:maven-surefire-plugin;external_dependency} -->
<configuration>
<argLine>
--add-opens com.azure.data.schemaregistry.avro/com.azure.data.schemaregistry.avro=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

module com.azure.data.schemaregistry.avro {
requires transitive com.azure.data.schemaregistry;
requires transitive com.azure.core.serializer.avro.apache;

exports com.azure.data.schemaregistry.avro;

opens com.azure.data.schemaregistry.avro to com.fasterxml.jackson.databind, com.azure.core;

}
24 changes: 24 additions & 0 deletions sdk/schemaregistry/azure-data-schemaregistry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,28 @@
<scope>test</scope>
</dependency>
</dependencies>

<profiles>
<profile>
<id>java-lts</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version> <!-- {x-version-update;org.apache.maven.plugins:maven-surefire-plugin;external_dependency} -->
<configuration>
<argLine>
--add-opens com.azure.data.schemaregistry/com.azure.data.schemaregistry=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
exports com.azure.data.schemaregistry.models;

opens com.azure.data.schemaregistry to com.fasterxml.jackson.databind, com.azure.core;
opens com.azure.data.schemaregistry.implementation.models to com.fasterxml.jackson.databind, com.azure.core;
}

0 comments on commit 9f051ce

Please sign in to comment.