File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
main/java/io/spring/ge/conventions/gradle
test/java/io/spring/ge/conventions/gradle Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,11 @@ public void execute(BuildCacheConfiguration buildCache) {
52
52
String cacheServer = this .env .get ("DEVELOCITY_CACHE_SERVER" );
53
53
if (cacheServer == null ) {
54
54
cacheServer = serverOfCacheUrl (this .env .get ("GRADLE_ENTERPRISE_CACHE_URL" ));
55
+ if (cacheServer == null ) {
56
+ cacheServer = "https://ge.spring.io" ;
57
+ }
55
58
}
56
- if (cacheServer != null ) {
57
- remote .setServer (cacheServer );
58
- }
59
+ remote .setServer (cacheServer );
59
60
String accessKey = this .env .get ("DEVELOCITY_ACCESS_KEY" );
60
61
if (accessKey == null ) {
61
62
accessKey = this .env .get ("GRADLE_ENTERPRISE_ACCESS_KEY" );
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ void localCacheIsEnabled() {
51
51
void remoteCacheIsEnabled () {
52
52
new BuildCacheConventions (DevelocityBuildCache .class ).execute (this .buildCache );
53
53
assertThat (this .buildCache .remote .isEnabled ()).isTrue ();
54
- assertThat (this .buildCache .remote .getServer ()).isNull ( );
54
+ assertThat (this .buildCache .remote .getServer ()).isEqualTo ( "https://ge.spring.io" );
55
55
assertThat (this .buildCache .remote .isPush ()).isFalse ();
56
56
}
57
57
You can’t perform that action at this time.
0 commit comments