mirror of
				https://hub.gitmirror.com/https://github.com/gradle/actions.git
				synced 2025-10-29 17:10:02 +08:00 
			
		
		
		
	 2f23d645f2
			
		
	
	
		2f23d645f2
		
			
		
	
	
	
	
		
			
			Instead of failing the build, detect a non-executable wrapper file and set the executable bit. Fixes #17
		
			
				
	
	
		
			21 lines
		
	
	
		
			611 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			611 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| plugins {
 | |
|     id "com.gradle.enterprise" version "3.16.2"
 | |
| }
 | |
| 
 | |
| gradleEnterprise {
 | |
|     buildScan {
 | |
|         termsOfServiceUrl = "https://gradle.com/terms-of-service"
 | |
|         termsOfServiceAgree = "yes"
 | |
|         publishAlways()
 | |
|         uploadInBackground = false
 | |
|     }
 | |
| }
 | |
| 
 | |
| rootProject.name = 'no-wrapper'
 | |
| 
 | |
| println "Using Gradle version: ${gradle.gradleVersion}"
 | |
| 
 | |
| def gradleVersionCheck = System.properties.gradleVersionCheck
 | |
| if (gradleVersionCheck && gradle.gradleVersion != gradleVersionCheck) {
 | |
|     throw new RuntimeException("Got the wrong version: expected ${gradleVersionCheck} but was ${gradle.gradleVersion}")
 | |
| } |