Skip to content

Commit

Permalink
Faster gradle (#365)
Browse files Browse the repository at this point in the history
Local gradle development goes fast.
  • Loading branch information
iamdanfox authored Feb 18, 2020
1 parent c356600 commit 5e1ef09
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ plugins {
apply plugin: 'com.palantir.baseline'
apply plugin: 'com.palantir.git-version'

version System.env.CIRCLE_TAG ?: gitVersion()

allprojects {
apply plugin: 'com.palantir.java-format'
version System.env.CIRCLE_TAG ?: gitVersion()

group 'com.palantir.dialogue'
version rootProject.version

repositories {
jcenter()
Expand Down
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
systemProp.org.gradle.internal.http.socketTimeout=600000
systemProp.org.gradle.internal.http.connectionTimeout=600000
org.gradle.parallel=true
org.gradle.caching=true
8 changes: 8 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
rootProject.name = 'dialogue'

include 'dialogue-client-test-lib'
include 'dialogue-core'
include 'dialogue-example'
Expand All @@ -7,3 +8,10 @@ include 'dialogue-okhttp-client'
include 'dialogue-serde'
include 'dialogue-target'
include 'simulation'

boolean isCiServer = System.getenv().containsKey('CI')
buildCache {
local {
enabled = !isCiServer
}
}

0 comments on commit 5e1ef09

Please sign in to comment.