You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/dataproduct/CreateDataProductResolver.java
Copy file name to clipboardexpand all lines: docs/plugins.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -65,14 +65,14 @@ The sample authenticator implementation can be found at [Authenticator Sample](.
65
65
3. Use `getResourceAsStream` to read files: If your plugin read any configuration file like properties or YAML or JSON or xml then use `this.getClass().getClassLoader().getResourceAsStream("<file-name>")` to read that file from DataHub GMS plugin's class-path. For DataHub GMS resource look-up behavior please refer [Plugin Installation](#plugin-installation) section. Sample code of `getResourceAsStream` is available in sample Authenticator plugin [TestAuthenticator.java](../metadata-service/plugin/src/test/sample-test-plugins/src/main/java/com/datahub/plugins/test/TestAuthenticator.java).
66
66
67
67
68
-
4. Bundle your Jar: Use `com.github.johnrengelman.shadow` gradle plugin to create an uber jar.
68
+
4. Bundle your Jar: Use `com.gradleup.shadow` gradle plugin to create an uber jar.
69
69
70
70
To see an example of building an uber jar, check out the `build.gradle` file for the apache-ranger-plugin file of [Apache Ranger Plugin](https://github.com/acryldata/datahub-ranger-auth-plugin/tree/main/apache-ranger-plugin) for reference.
71
71
72
72
Exclude signature files as shown in below `shadowJar` task.
73
73
74
74
```groovy
75
-
apply plugin: 'com.github.johnrengelman.shadow';
75
+
apply plugin: 'com.gradleup.shadow';
76
76
shadowJar {
77
77
// Exclude com.datahub.plugins package and files related to jar signature
@@ -152,14 +152,14 @@ The sample authorizer implementation can be found at [Authorizer Sample](https:/
152
152
153
153
3. Use `getResourceAsStream` to read files: If your plugin read any configuration file like properties or YAML or JSON or xml then use `this.getClass().getClassLoader().getResourceAsStream("<file-name>")` to read that file from DataHub GMS plugin's class-path. For DataHub GMS resource look-up behavior please refer [Plugin Installation](#plugin-installation) section. Sample code of `getResourceAsStream` is available in sample Authenticator plugin [TestAuthenticator.java](../metadata-service/plugin/src/test/sample-test-plugins/src/main/java/com/datahub/plugins/test/TestAuthenticator.java).
154
154
155
-
4. Bundle your Jar: Use `com.github.johnrengelman.shadow` gradle plugin to create an uber jar.
155
+
4. Bundle your Jar: Use `com.gradleup.shadow` gradle plugin to create an uber jar.
156
156
157
157
To see an example of building an uber jar, check out the `build.gradle` file for the apache-ranger-plugin file of [Apache Ranger Plugin](https://github.com/acryldata/datahub-ranger-auth-plugin/tree/main/apache-ranger-plugin) for reference.
158
158
159
159
Exclude signature files as shown in below `shadowJar` task.
160
160
161
161
```groovy
162
-
apply plugin: 'com.github.johnrengelman.shadow';
162
+
apply plugin: 'com.gradleup.shadow';
163
163
shadowJar {
164
164
// Exclude com.datahub.plugins package and files related to jar signature
Copy file name to clipboardexpand all lines: entity-registry/src/main/java/com/linkedin/metadata/aspect/plugins/validation/AspectValidationException.java
Copy file name to clipboardexpand all lines: entity-registry/src/main/java/com/linkedin/metadata/aspect/plugins/validation/ValidationExceptionCollection.java
0 commit comments