mirror of
				https://hub.gitmirror.com/https://github.com/gradle/gradle-build-action
				synced 2025-10-29 00:50:19 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			641 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			641 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| plugins {
 | |
|     `java-library`
 | |
| }
 | |
| 
 | |
| repositories {
 | |
|     mavenCentral()
 | |
| }
 | |
| 
 | |
| dependencies {
 | |
|     api("org.apache.commons:commons-math3:3.6.1")
 | |
|     implementation("com.google.guava:guava:32.0.1-jre")
 | |
| 
 | |
|     testImplementation("org.junit.jupiter:junit-jupiter:5.9.3")
 | |
| }
 | |
| 
 | |
| tasks.test {
 | |
|     useJUnitPlatform()
 | |
| }
 | |
| 
 | |
| tasks.named("test").configure {
 | |
|     // Write marker file so we can detect if task was configured
 | |
|     file("task-configured.txt").writeText("true")
 | |
| 
 | |
|     doLast {
 | |
|         if (System.getProperties().containsKey("verifyCachedBuild")) {
 | |
|             throw RuntimeException("Build was not cached: unexpected execution of test task")
 | |
|         }
 | |
|     }
 | |
| }
 | 
