GradleProjectBuilder.java (spring-boot-2.7.3) | : | GradleProjectBuilder.java (spring-boot-2.7.4) | ||
---|---|---|---|---|
skipping to change at line 71 | skipping to change at line 71 | |||
public Project build() { | public Project build() { | |||
Assert.notNull(this.projectDir, "ProjectDir must not be null"); | Assert.notNull(this.projectDir, "ProjectDir must not be null"); | |||
ProjectBuilder builder = ProjectBuilder.builder(); | ProjectBuilder builder = ProjectBuilder.builder(); | |||
builder.withProjectDir(this.projectDir); | builder.withProjectDir(this.projectDir); | |||
File userHome = new File(this.projectDir, "userHome"); | File userHome = new File(this.projectDir, "userHome"); | |||
builder.withGradleUserHomeDir(userHome); | builder.withGradleUserHomeDir(userHome); | |||
if (StringUtils.hasText(this.name)) { | if (StringUtils.hasText(this.name)) { | |||
builder.withName(this.name); | builder.withName(this.name); | |||
} | } | |||
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17 )) { | if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17 )) { | |||
NativeServices.initialize(userHome); | NativeServices.initializeOnClient(userHome); | |||
try { | try { | |||
ProjectBuilderImpl.getGlobalServices(); | ProjectBuilderImpl.getGlobalServices(); | |||
} | } | |||
catch (Throwable ignore) { | catch (Throwable ignore) { | |||
} | } | |||
} | } | |||
return builder.build(); | return builder.build(); | |||
} | } | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |