Skip to content

Commit

Permalink
Gradle 8.3-rc-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalcolea committed Jul 19, 2023
1 parent fc575ef commit 8880b97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-rc-1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ class ProjectPackagingExtension extends SystemPackagingExtension {
public ProjectPackagingExtension(Project project) {
FileResolver resolver = ((ProjectInternal) project).getFileResolver();
Instantiator instantiator = ((ProjectInternal) project).getServices().get(Instantiator.class);
if (GradleVersion.current().baseVersion >= GradleVersion.version("6.4") || GradleVersion.current().version.startsWith('6.4')) {
if (GradleVersion.current().baseVersion >= GradleVersion.version("8.3") || GradleVersion.current().version.startsWith('8.3')) {
FileCollectionFactory fileCollectionFactory = ((ProjectInternal) project).getServices().get(FileCollectionFactory.class);
Factory<PatternSet> patternSetFactory = new PatternSets.PatternSetFactory(PatternSpecFactory.INSTANCE)
delegateCopySpec = new DefaultCopySpec(fileCollectionFactory, project.objects, instantiator, patternSetFactory);
} else if (GradleVersion.current().baseVersion >= GradleVersion.version("6.4") || GradleVersion.current().version.startsWith('6.4')) {
FileCollectionFactory fileCollectionFactory = ((ProjectInternal) project).getServices().get(FileCollectionFactory.class);
Factory<PatternSet> patternSetFactory = new PatternSets.PatternSetFactory(PatternSpecFactory.INSTANCE)
delegateCopySpec = new DefaultCopySpec(fileCollectionFactory, instantiator, patternSetFactory);
Expand Down

0 comments on commit 8880b97

Please sign in to comment.