mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	buildserver: use long timeouts for gradle downloads
default is 30 seconds, this uses 10 minutes to avoid things like:
* What went wrong:
A problem occurred configuring root project 'org.fdroid.fdroid'.
> Could not resolve all files for configuration ':classpath'.
   > Could not download auto-value.jar (com.google.auto.value:auto-value:1.5.2)
      > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.jar'.
         > Read timed out
* https://stackoverflow.com/a/49646993
* https://github.com/gradle/gradle/issues/4629#issuecomment-393182135
* https://github.com/gradle/gradle/pull/3371/files
			
			
This commit is contained in:
		
							parent
							
								
									1408e486dc
								
							
						
					
					
						commit
						d9722f4453
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -33,6 +33,13 @@ cat <<EOF > $GRADLE_HOME/gradle.properties
 | 
			
		|||
# builds are not reused, so the daemon is a waste of time
 | 
			
		||||
org.gradle.daemon=false
 | 
			
		||||
 | 
			
		||||
# set network timeouts to 10 minutes
 | 
			
		||||
# https://github.com/gradle/gradle/pull/3371/files
 | 
			
		||||
systemProp.http.connectionTimeout=600000
 | 
			
		||||
systemProp.http.socketTimeout=600000
 | 
			
		||||
systemProp.org.gradle.internal.http.connectionTimeout=600000
 | 
			
		||||
systemProp.org.gradle.internal.http.socketTimeout=600000
 | 
			
		||||
 | 
			
		||||
# fake info to block HTTP repos
 | 
			
		||||
systemProp.http.nonProxyHosts=
 | 
			
		||||
systemProp.http.proxyHost=127.127.127.127
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue