Skip to content

Commit

Permalink
add build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed May 7, 2024
1 parent f0061b2 commit 2c79d49
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx2G
# enable the remote build cache
org.gradle.caching=true

# Metadata
mod_id=icarae_origin
Expand Down
15 changes: 15 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,21 @@ dependencyResolutionManagement {
}
}

def ENV = System.getenv()

buildCache {
remote(HttpBuildCache) {
url = "https://ci-cache.uuid.gg/cache"
if (ENV.CI && ENV.GRADLE_BUILD_CACHE_USER && ENV.GRADLE_BUILD_CACHE_TOKEN) {
push = true
credentials {
username = ENV.GRADLE_BUILD_CACHE_USER
password = ENV.GRADLE_BUILD_CACHE_TOKEN
}
}
}
}

rootProject.name = 'Icarae-Origin'

include 'Common', 'NeoForge', 'Quilt', 'Fabric'

0 comments on commit 2c79d49

Please sign in to comment.