| 
									
										
										
										
											2020-01-10 21:48:43 +08:00
										 |  |  | plugins { | 
					
						
							| 
									
										
										
										
											2020-01-23 03:24:37 +08:00
										 |  |  | 	id "java" | 
					
						
							|  |  |  | 	id "org.springframework.boot.conventions" | 
					
						
							|  |  |  | 	id "org.springframework.boot.integration-test" | 
					
						
							| 
									
										
										
										
											2020-01-10 21:48:43 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | description = "Spring Boot Launch Script Integration Tests" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | configurations { | 
					
						
							|  |  |  | 	app | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | dependencies { | 
					
						
							| 
									
										
										
										
											2020-07-25 01:30:52 +08:00
										 |  |  | 	app project(path: ":spring-boot-project:spring-boot-dependencies", configuration: "mavenRepository") | 
					
						
							| 
									
										
										
										
											2020-01-23 03:24:37 +08:00
										 |  |  | 	app project(path: ":spring-boot-project:spring-boot-tools:spring-boot-gradle-plugin", configuration: "mavenRepository") | 
					
						
							|  |  |  | 	app project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-web", configuration: "mavenRepository") | 
					
						
							| 
									
										
										
										
											2020-01-10 21:48:43 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-23 06:09:17 +08:00
										 |  |  | 	intTestImplementation(enforcedPlatform(project(":spring-boot-project:spring-boot-parent"))) | 
					
						
							|  |  |  | 	intTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")) | 
					
						
							|  |  |  | 	intTestImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test")) | 
					
						
							|  |  |  | 	intTestImplementation("org.testcontainers:testcontainers") | 
					
						
							| 
									
										
										
										
											2020-01-10 21:48:43 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | task syncMavenRepository(type: Sync) { | 
					
						
							|  |  |  | 	from configurations.app | 
					
						
							| 
									
										
										
										
											2020-01-22 10:33:33 +08:00
										 |  |  | 	into "${buildDir}/int-test-maven-repository" | 
					
						
							| 
									
										
										
										
											2020-01-10 21:48:43 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | task syncAppSource(type: Sync) { | 
					
						
							| 
									
										
										
										
											2020-12-18 13:56:13 +08:00
										 |  |  | 	from "spring-boot-launch-script-tests-app" | 
					
						
							|  |  |  | 	into "${buildDir}/spring-boot-launch-script-tests-app" | 
					
						
							| 
									
										
										
										
											2020-01-10 21:48:43 +08:00
										 |  |  | 	filter { line -> | 
					
						
							| 
									
										
										
										
											2020-01-23 09:10:51 +08:00
										 |  |  | 		line.replace("id \"org.springframework.boot\"", "id \"org.springframework.boot\" version \"${project.version}\"") | 
					
						
							| 
									
										
										
										
											2020-01-10 21:48:43 +08:00
										 |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | task buildApp(type: GradleBuild) { | 
					
						
							|  |  |  | 	dependsOn syncAppSource, syncMavenRepository | 
					
						
							| 
									
										
										
										
											2020-12-18 13:56:13 +08:00
										 |  |  | 	dir = "${buildDir}/spring-boot-launch-script-tests-app" | 
					
						
							| 
									
										
										
										
											2020-01-10 21:48:43 +08:00
										 |  |  | 	startParameter.buildCacheEnabled = false | 
					
						
							| 
									
										
										
										
											2020-01-23 03:24:37 +08:00
										 |  |  | 	tasks  = ["build"] | 
					
						
							| 
									
										
										
										
											2020-01-10 21:48:43 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | intTest { | 
					
						
							|  |  |  | 	dependsOn buildApp | 
					
						
							|  |  |  | 	enabled = !JavaVersion.current().java9Compatible | 
					
						
							|  |  |  | } |