| 
									
										
										
										
											2022-01-25 21:52:47 -08:00
										 |  |  | plugins { | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   id("com.palantir.git-version") apply false | 
					
						
							| 
									
										
										
										
											2024-11-20 00:13:24 +01:00
										 |  |  |   id 'java-library' | 
					
						
							| 
									
										
										
										
											2024-12-14 17:04:48 +01:00
										 |  |  |   id 'com.gradleup.shadow' | 
					
						
							| 
									
										
										
										
											2024-01-23 17:49:23 -06:00
										 |  |  |   id 'signing' | 
					
						
							|  |  |  |   id 'io.codearte.nexus-staging' | 
					
						
							|  |  |  |   id 'maven-publish' | 
					
						
							| 
									
										
										
										
											2022-01-25 21:52:47 -08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2024-01-23 17:49:23 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-12-03 06:57:43 +05:30
										 |  |  | apply from: "../../../gradle/coverage/java-coverage.gradle" | 
					
						
							| 
									
										
										
										
											2022-09-08 23:36:15 -07:00
										 |  |  | apply from: "../versioning.gradle" | 
					
						
							| 
									
										
										
										
											2022-01-20 00:48:09 -08:00
										 |  |  | import org.apache.tools.ant.filters.ReplaceTokens | 
					
						
							| 
									
										
										
										
											2022-01-02 22:48:38 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-20 00:13:24 +01:00
										 |  |  | jar { | 
					
						
							| 
									
										
										
										
											2024-12-12 15:03:30 +01:00
										 |  |  |   if (project.hasProperty('archiveAppendix')) { | 
					
						
							|  |  |  |     archiveAppendix.set(project.archiveAppendix) | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2024-11-20 00:13:24 +01:00
										 |  |  |   archiveClassifier = "lib" | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2022-01-11 14:55:21 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-02 22:48:38 +05:30
										 |  |  | dependencies { | 
					
						
							| 
									
										
										
										
											2024-11-20 00:13:24 +01:00
										 |  |  |   api project(':entity-registry') | 
					
						
							|  |  |  |   api project(':metadata-integration:java:datahub-event') | 
					
						
							| 
									
										
										
										
											2024-11-26 14:03:22 -08:00
										 |  |  |   implementation project(':metadata-integration:java:datahub-schematron:lib') | 
					
						
							| 
									
										
										
										
											2024-12-14 17:04:48 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   implementation(externalDependency.kafkaAvroSerializer) { | 
					
						
							|  |  |  |     exclude group: "org.apache.avro" | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2023-10-18 13:45:46 -05:00
										 |  |  |   implementation externalDependency.avro | 
					
						
							| 
									
										
										
										
											2024-07-25 14:46:32 +02:00
										 |  |  |   implementation externalDependency.httpClient | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   constraints { | 
					
						
							|  |  |  |     implementation('commons-collections:commons-collections:3.2.2') { | 
					
						
							|  |  |  |       because 'Vulnerability Issue' | 
					
						
							| 
									
										
										
										
											2022-06-21 06:02:57 +05:30
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2022-12-04 21:57:47 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-25 14:46:32 +02:00
										 |  |  |   implementation externalDependency.awsS3 | 
					
						
							| 
									
										
										
										
											2025-05-24 13:42:10 -05:00
										 |  |  |   implementation platform(externalDependency.jacksonBom) | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   implementation externalDependency.jacksonDataBind | 
					
						
							|  |  |  |   runtimeOnly externalDependency.jna | 
					
						
							| 
									
										
										
										
											2022-05-03 19:38:05 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-20 00:13:24 +01:00
										 |  |  |   api externalDependency.slf4jApi | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   compileOnly externalDependency.lombok | 
					
						
							|  |  |  |   annotationProcessor externalDependency.lombok | 
					
						
							| 
									
										
										
										
											2023-09-01 09:06:01 -05:00
										 |  |  |   // VisibleForTesting
 | 
					
						
							|  |  |  |   compileOnly externalDependency.guava | 
					
						
							| 
									
										
										
										
											2023-12-15 13:28:33 -06:00
										 |  |  |   testImplementation externalDependency.testng | 
					
						
							| 
									
										
										
										
											2023-09-01 09:06:01 -05:00
										 |  |  |   testImplementation externalDependency.mockito | 
					
						
							|  |  |  |   testImplementation externalDependency.mockServer | 
					
						
							|  |  |  |   testImplementation externalDependency.mockServerClient | 
					
						
							|  |  |  |   testImplementation externalDependency.testContainers | 
					
						
							|  |  |  |   testRuntimeOnly externalDependency.logbackClassic | 
					
						
							| 
									
										
										
										
											2022-01-02 22:48:38 +05:30
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-21 06:02:57 +05:30
										 |  |  | task copyAvroSchemas { | 
					
						
							|  |  |  |   dependsOn(':metadata-events:mxe-schemas:renameNamespace') | 
					
						
							|  |  |  |   copy { | 
					
						
							|  |  |  |     from file('../../../metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeProposal.avsc') | 
					
						
							|  |  |  |     into file('./src/main/resources') | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | compileJava.dependsOn copyAvroSchemas | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-04 01:41:09 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-12-02 23:23:22 -08:00
										 |  |  | // Add Python environment validation task
 | 
					
						
							| 
									
										
										
										
											2024-12-03 15:47:08 -06:00
										 |  |  | task validatePythonEnv(dependsOn: [":metadata-ingestion:installDev"]) { | 
					
						
							| 
									
										
										
										
											2024-12-02 23:23:22 -08:00
										 |  |  |     doFirst { | 
					
						
							|  |  |  |         def venvPath = System.getProperty('python.venv.path', '../../../metadata-ingestion/venv') | 
					
						
							|  |  |  |         def isWindows = System.getProperty('os.name').toLowerCase().contains('windows') | 
					
						
							|  |  |  |         def pythonExe = isWindows ? "${venvPath}/Scripts/python.exe" : "${venvPath}/bin/python" | 
					
						
							| 
									
										
										
										
											2024-12-14 17:04:48 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-12-02 23:23:22 -08:00
										 |  |  |         def result = exec { | 
					
						
							|  |  |  |             commandLine pythonExe, "-c", "import sys; print(sys.executable)" | 
					
						
							|  |  |  |             ignoreExitValue = true | 
					
						
							|  |  |  |             standardOutput = new ByteArrayOutputStream() | 
					
						
							|  |  |  |             errorOutput = new ByteArrayOutputStream() | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											2024-12-14 17:04:48 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-12-02 23:23:22 -08:00
										 |  |  |         if (result.exitValue != 0) { | 
					
						
							|  |  |  |             throw new GradleException("Python virtual environment not properly set up at ${venvPath}") | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-02 22:48:38 +05:30
										 |  |  | test { | 
					
						
							| 
									
										
										
										
											2022-04-19 04:21:26 +05:30
										 |  |  |   // to avoid simultaneous executions of tests when complete build is run
 | 
					
						
							|  |  |  |   mustRunAfter(":metadata-io:test") | 
					
						
							| 
									
										
										
										
											2022-01-02 22:48:38 +05:30
										 |  |  |   useJUnit() | 
					
						
							| 
									
										
										
										
											2024-12-02 23:23:22 -08:00
										 |  |  |   // Add Python environment configuration
 | 
					
						
							|  |  |  |   dependsOn validatePythonEnv | 
					
						
							|  |  |  |   dependsOn tasks.getByPath(":metadata-ingestion:installDev") | 
					
						
							|  |  |  |   systemProperty 'python.venv.path', System.getProperty('python.venv.path', '../../../metadata-ingestion/venv') | 
					
						
							|  |  |  |   finalizedBy jacocoTestReport | 
					
						
							| 
									
										
										
										
											2022-01-02 22:48:38 +05:30
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-12-16 12:26:57 +01:00
										 |  |  | // no submodule depends on datahub-schematron:cli
 | 
					
						
							|  |  |  | // and tests there are the ones checking python-java compatibility
 | 
					
						
							|  |  |  | test.dependsOn tasks.getByPath(":metadata-integration:java:datahub-schematron:cli:test") | 
					
						
							|  |  |  | test.dependsOn tasks.getByPath(":metadata-integration:java:datahub-schematron:lib:test") | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-04 21:39:30 +02:00
										 |  |  | task checkShadowJar(type: Exec) { | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   commandLine 'sh', '-c', 'scripts/check_jar.sh' | 
					
						
							| 
									
										
										
										
											2022-01-11 14:55:21 -08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-02 22:48:38 +05:30
										 |  |  | shadowJar { | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   zip64 = true | 
					
						
							| 
									
										
										
										
											2024-12-12 15:03:30 +01:00
										 |  |  |   if (project.hasProperty('archiveAppendix')) { | 
					
						
							|  |  |  |     archiveAppendix.set(project.archiveAppendix) | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2022-01-11 14:55:21 -08:00
										 |  |  |   archiveClassifier = '' | 
					
						
							| 
									
										
										
										
											2022-09-25 10:39:22 -05:00
										 |  |  |   // preventing java multi-release JAR leakage
 | 
					
						
							|  |  |  |   // https://github.com/johnrengelman/shadow/issues/729
 | 
					
						
							|  |  |  |   exclude('module-info.class', 'META-INF/versions/**', | 
					
						
							| 
									
										
										
										
											2024-01-23 17:49:23 -06:00
										 |  |  |       '**/LICENSE', '**/LICENSE*.txt', '**/NOTICE', '**/NOTICE.txt', 'licenses/**', 'log4j2.*', 'log4j.*') | 
					
						
							| 
									
										
										
										
											2024-11-20 00:13:24 +01:00
										 |  |  |   dependencies { | 
					
						
							|  |  |  |     exclude(dependency("org.slf4j::")) | 
					
						
							|  |  |  |     exclude(dependency("antlr::")) | 
					
						
							| 
									
										
										
										
											2025-05-24 13:42:10 -05:00
										 |  |  |     exclude(dependency("org.scala-lang::")) | 
					
						
							| 
									
										
										
										
											2024-11-20 00:13:24 +01:00
										 |  |  |     exclude("org/apache/commons/logging/**") | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2022-01-11 14:55:21 -08:00
										 |  |  |   mergeServiceFiles() | 
					
						
							|  |  |  |   // we relocate namespaces manually, because we want to know exactly which libs we are exposing and why
 | 
					
						
							|  |  |  |   // we can move to automatic relocation using ConfigureShadowRelocation after we get to a good place on these first
 | 
					
						
							| 
									
										
										
										
											2022-09-18 18:04:47 -07:00
										 |  |  |   relocate 'org.springframework', 'datahub.shaded.org.springframework' | 
					
						
							| 
									
										
										
										
											2022-01-11 14:55:21 -08:00
										 |  |  |   relocate 'com.fasterxml.jackson', 'datahub.shaded.jackson' | 
					
						
							| 
									
										
										
										
											2024-01-22 11:46:04 -06:00
										 |  |  |   relocate 'org.yaml', 'datahub.shaded.org.yaml' // Required for shading snakeyaml
 | 
					
						
							| 
									
										
										
										
											2022-01-11 14:55:21 -08:00
										 |  |  |   relocate 'net.jcip.annotations', 'datahub.shaded.annotations' | 
					
						
							|  |  |  |   relocate 'javassist', 'datahub.shaded.javassist' | 
					
						
							|  |  |  |   relocate 'edu.umd.cs.findbugs', 'datahub.shaded.findbugs' | 
					
						
							|  |  |  |   relocate 'org.antlr', 'datahub.shaded.org.antlr' | 
					
						
							| 
									
										
										
										
											2024-11-20 00:13:24 +01:00
										 |  |  |   //relocate 'antlr', 'datahub.shaded.antlr'
 | 
					
						
							| 
									
										
										
										
											2022-01-11 14:55:21 -08:00
										 |  |  |   relocate 'com.google.common', 'datahub.shaded.com.google.common' | 
					
						
							| 
									
										
										
										
											2024-11-20 00:13:24 +01:00
										 |  |  |   relocate 'org.apache.commons.codec', 'datahub.shaded.org.apache.commons.codec' | 
					
						
							|  |  |  |   relocate 'org.apache.commons.compress', 'datahub.shaded.org.apache.commons.compress' | 
					
						
							|  |  |  |   relocate 'org.apache.commons.lang3', 'datahub.shaded.org.apache.commons.lang3' | 
					
						
							|  |  |  |   relocate 'org.apache.commons.lang', 'datahub.shaded.org.apache.commons.lang' | 
					
						
							|  |  |  |   relocate 'org.apache.commons.cli', 'datahub.shaded.org.apache.commons.cli' | 
					
						
							|  |  |  |   relocate 'org.apache.commons.text', 'datahub.shaded.org.apache.commons.text' | 
					
						
							|  |  |  |   relocate 'org.apache.commons.io', 'datahub.shaded.org.apache.commons.io' | 
					
						
							| 
									
										
										
										
											2024-01-22 11:46:04 -06:00
										 |  |  |   relocate 'org.apache.maven', 'datahub.shaded.org.apache.maven' | 
					
						
							| 
									
										
										
										
											2022-01-11 14:55:21 -08:00
										 |  |  |   relocate 'org.reflections', 'datahub.shaded.org.reflections' | 
					
						
							|  |  |  |   relocate 'st4hidden', 'datahub.shaded.st4hidden' | 
					
						
							|  |  |  |   relocate 'org.stringtemplate', 'datahub.shaded.org.stringtemplate' | 
					
						
							|  |  |  |   relocate 'org.abego.treelayout', 'datahub.shaded.treelayout' | 
					
						
							|  |  |  |   relocate 'javax.annotation', 'datahub.shaded.javax.annotation' | 
					
						
							| 
									
										
										
										
											2022-03-09 15:31:16 -06:00
										 |  |  |   relocate 'com.github.benmanes.caffeine', 'datahub.shaded.com.github.benmanes.caffeine' | 
					
						
							|  |  |  |   relocate 'org.checkerframework', 'datahub.shaded.org.checkerframework' | 
					
						
							|  |  |  |   relocate 'com.google.errorprone', 'datahub.shaded.com.google.errorprone' | 
					
						
							| 
									
										
										
										
											2022-06-21 06:02:57 +05:30
										 |  |  |   // Below jars added for kafka emitter only
 | 
					
						
							|  |  |  |   relocate 'com.thoughtworks.paranamer', 'datahub.shaded.com.thoughtworks.paranamer' | 
					
						
							|  |  |  |   relocate 'org.xerial.snappy', 'datahub.shaded.org.xerial.snappy' | 
					
						
							|  |  |  |   relocate 'org.apache.kafka', 'datahub.shaded.org.apache.kafka' | 
					
						
							| 
									
										
										
										
											2024-07-25 14:46:32 +02:00
										 |  |  |   relocate 'org.apache.http', 'datahub.shaded.org.apache.http' | 
					
						
							|  |  |  |   relocate 'software.amazon.awssdk', 'datahub.shaded.software.amazon.awssdk' | 
					
						
							| 
									
										
										
										
											2022-06-21 06:02:57 +05:30
										 |  |  |   relocate 'io.confluent', 'datahub.shaded.io.confluent' | 
					
						
							|  |  |  |   relocate 'org.apache.zookeeper', 'datahub.shaded.org.apache.zookeeper' | 
					
						
							|  |  |  |   relocate 'org.apache.yetus', 'datahub.shaded.org.apache.yetus' | 
					
						
							|  |  |  |   relocate 'jline', 'datahub.shaded.jline' | 
					
						
							|  |  |  |   relocate 'org.apache.jute', 'datahub.shaded.org.apache.jute' | 
					
						
							|  |  |  |   relocate 'org.I0Itec.zkclient', 'datahub.shaded.org.I0Itec.zkclient' | 
					
						
							|  |  |  |   relocate 'net.jpountz', 'datahub.shaded.net.jpountz' | 
					
						
							|  |  |  |   relocate 'com.github.luben', 'datahub.shaded.com.github.luben' | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   relocate 'common.message', 'datahub.shaded.common.message' | 
					
						
							|  |  |  |   relocate 'org.glassfish', 'datahub.shaded.org.glassfish' | 
					
						
							| 
									
										
										
										
											2023-04-13 12:01:51 -05:00
										 |  |  |   relocate 'ch.randelshofer', 'datahub.shaded.ch.randelshofer' | 
					
						
							| 
									
										
										
										
											2024-01-22 11:46:04 -06:00
										 |  |  |   relocate 'io.github.classgraph', 'datahub.shaded.io.github.classgraph' | 
					
						
							|  |  |  |   relocate 'nonapi.io.github.classgraph', 'datahub.shaded.nonapi.io.github.classgraph' | 
					
						
							| 
									
										
										
										
											2024-05-08 20:39:31 -05:00
										 |  |  |   relocate 'org.eclipse.parsson', 'datahub.shaded.parsson' | 
					
						
							|  |  |  |   relocate 'jakarta.json', 'datahub.shaded.json' | 
					
						
							| 
									
										
										
										
											2024-06-18 11:28:39 -05:00
										 |  |  |   relocate 'io.netty', 'datahub.shaded.io.netty' | 
					
						
							| 
									
										
										
										
											2024-07-25 14:46:32 +02:00
										 |  |  |   relocate 'org.apache.hc', 'datahub.shaded.org.apache.hc' | 
					
						
							|  |  |  |   relocate 'org.reactivestreams', 'datahub.shaded.org.reactivestreams' | 
					
						
							|  |  |  |   relocate 'software.amazon.eventstream', 'datahub.shaded.software.amazon.eventstream' | 
					
						
							| 
									
										
										
										
											2022-01-11 14:55:21 -08:00
										 |  |  |   finalizedBy checkShadowJar | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | checkShadowJar { | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   dependsOn shadowJar | 
					
						
							| 
									
										
										
										
											2022-01-02 22:48:38 +05:30
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | assemble { | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   dependsOn shadowJar | 
					
						
							| 
									
										
										
										
											2022-01-02 22:48:38 +05:30
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2023-09-01 09:06:01 -05:00
										 |  |  | compileTestJava.dependsOn shadowJar | 
					
						
							| 
									
										
										
										
											2022-01-20 00:48:09 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | task sourcesJar(type: Jar) { | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   archiveClassifier = 'sources' | 
					
						
							|  |  |  |   from sourceSets.main.allSource | 
					
						
							| 
									
										
										
										
											2022-01-20 00:48:09 -08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | task javadocJar(type: Jar) { | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   archiveClassifier = 'javadoc' | 
					
						
							|  |  |  |   from javadoc | 
					
						
							| 
									
										
										
										
											2022-01-20 00:48:09 -08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | publishing { | 
					
						
							|  |  |  |   publications { | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |     shadow(MavenPublication) { publication -> | 
					
						
							|  |  |  |       project.shadow.component(publication) | 
					
						
							| 
									
										
										
										
											2022-01-20 00:48:09 -08:00
										 |  |  |       pom { | 
					
						
							|  |  |  |         name = 'Datahub Client' | 
					
						
							|  |  |  |         group = 'io.acryl' | 
					
						
							| 
									
										
										
										
											2024-12-12 19:11:54 +01:00
										 |  |  |         artifactId = 'datahub-client' + (project.hasProperty('archiveAppendix') ? "-${archiveAppendix}" : '') | 
					
						
							| 
									
										
										
										
											2022-01-20 00:48:09 -08:00
										 |  |  |         description = 'DataHub Java client for metadata integration' | 
					
						
							| 
									
										
										
										
											2025-04-28 23:34:33 +09:00
										 |  |  |         url = 'https://docs.datahub.com' | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |         artifacts = [shadowJar, javadocJar, sourcesJar] | 
					
						
							| 
									
										
										
										
											2022-01-20 00:48:09 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  |         scm { | 
					
						
							| 
									
										
										
										
											2022-04-04 21:39:30 +02:00
										 |  |  |           connection = 'scm:git:git://github.com/datahub-project/datahub.git' | 
					
						
							|  |  |  |           developerConnection = 'scm:git:ssh://github.com:datahub-project/datahub.git' | 
					
						
							| 
									
										
										
										
											2022-03-18 22:12:19 +01:00
										 |  |  |           url = 'https://github.com/datahub-project/datahub.git' | 
					
						
							| 
									
										
										
										
											2022-01-20 00:48:09 -08:00
										 |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         licenses { | 
					
						
							|  |  |  |           license { | 
					
						
							|  |  |  |             name = 'The Apache License, Version 2.0' | 
					
						
							|  |  |  |             url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         developers { | 
					
						
							|  |  |  |           developer { | 
					
						
							|  |  |  |             id = 'datahub' | 
					
						
							|  |  |  |             name = 'Datahub' | 
					
						
							|  |  |  |             email = 'datahub@acryl.io' | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   repositories { | 
					
						
							|  |  |  |     maven { | 
					
						
							|  |  |  |       def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" | 
					
						
							|  |  |  |       def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/" | 
					
						
							|  |  |  |       def ossrhUsername = System.getenv('RELEASE_USERNAME') | 
					
						
							|  |  |  |       def ossrhPassword = System.getenv('RELEASE_PASSWORD') | 
					
						
							|  |  |  |       credentials { | 
					
						
							|  |  |  |         username ossrhUsername | 
					
						
							|  |  |  |         password ossrhPassword | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |       url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | signing { | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   def signingKey = findProperty("signingKey") | 
					
						
							|  |  |  |   def signingPassword = System.getenv("SIGNING_PASSWORD") | 
					
						
							|  |  |  |   useInMemoryPgpKeys(signingKey, signingPassword) | 
					
						
							|  |  |  |   sign publishing.publications.shadow | 
					
						
							| 
									
										
										
										
											2022-01-20 00:48:09 -08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | nexusStaging { | 
					
						
							| 
									
										
										
										
											2023-05-01 13:18:41 -05:00
										 |  |  |   serverUrl = "https://s01.oss.sonatype.org/service/local/" | 
					
						
							|  |  |  |   //required only for projects registered in Sonatype after 2021-02-24
 | 
					
						
							|  |  |  |   username = System.getenv("NEXUS_USERNAME") | 
					
						
							|  |  |  |   password = System.getenv("NEXUS_PASSWORD") | 
					
						
							| 
									
										
										
										
											2023-12-15 13:28:33 -06:00
										 |  |  | } |