| 
									
										
										
										
											2023-12-15 13:28:33 -06:00
										 |  |  | plugins { | 
					
						
							|  |  |  |   id 'java' | 
					
						
							|  |  |  |   id 'jacoco' | 
					
						
							| 
									
										
										
										
											2023-04-13 15:46:35 -05:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | dependencies { | 
					
						
							|  |  |  |   implementation externalDependency.slf4jApi | 
					
						
							|  |  |  |   compileOnly externalDependency.lombok | 
					
						
							|  |  |  |   annotationProcessor externalDependency.lombok | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   implementation externalDependency.typesafeConfig | 
					
						
							|  |  |  |   implementation externalDependency.opentracingJdbc | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-01 09:06:01 -05:00
										 |  |  |   implementation project(path: ':metadata-integration:java:datahub-client', configuration: 'shadow') | 
					
						
							| 
									
										
										
										
											2024-06-27 16:48:10 -05:00
										 |  |  |   implementation externalDependency.httpClient | 
					
						
							| 
									
										
										
										
											2023-04-13 15:46:35 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  |   // Tests need a concrete log4j available. Providing it here
 | 
					
						
							|  |  |  |   testImplementation 'org.apache.logging.log4j:log4j-api:2.17.1' | 
					
						
							|  |  |  |   testImplementation 'org.apache.logging.log4j:log4j-core:2.17.1' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   testImplementation externalDependency.mockito | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | test { | 
					
						
							|  |  |  |   forkEvery = 1 | 
					
						
							|  |  |  |   useJUnit() | 
					
						
							|  |  |  |   finalizedBy jacocoTestReport | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | task integrationTest(type: Exec, dependsOn: [build, ':docker:quickstart'] ) { | 
					
						
							|  |  |  |     environment "RUN_QUICKSTART", "false" | 
					
						
							|  |  |  |     commandLine "java-sdk-smoke-test/smoke.sh" | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | jacocoTestReport { | 
					
						
							|  |  |  |     dependsOn test // tests are required to run before generating the report
 | 
					
						
							|  |  |  | } |