mirror of
				https://hub.gitmirror.com/https://github.com/gradle/actions.git
				synced 2025-11-04 12:00:01 +08:00 
			
		
		
		
	The `.github/workflows` directory has additional permissions attached, preventing these files from being by the Upgrade Gradle Wrapper plugin.
		
			
				
	
	
		
			8 lines
		
	
	
		
			345 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			345 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
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}")
 | 
						|
} |