Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
a96fc12
Remove Closure taking methods from Reporting
big-guy Sep 24, 2022
06f42e5
Remove Closure taking query methods from DomainObjectCollections
big-guy Sep 24, 2022
3af09e8
Remove create(String, Closure) from domain object collections
big-guy Sep 24, 2022
213e39d
Remove most of the Closure taking methods from Task
big-guy Sep 24, 2022
9774ff1
Add Action taking equivalents for all Closure-taking methods in Script
big-guy Sep 24, 2022
76f0977
Remove Closure taking methods from Script
big-guy Sep 24, 2022
9bae576
Linkify types in Task javadoc
big-guy Sep 24, 2022
6997035
Remove Closure taking methods from ComponentSelectionRules
big-guy Sep 24, 2022
ec11839
Remove Closure from ModuleDependency
big-guy Sep 24, 2022
0479d4e
Remove Closure taking methods from Configuration
big-guy Sep 24, 2022
ff87683
Remove Closure-taking methods from ArtifactHandler
big-guy Sep 24, 2022
8dabaa9
Remove Closure from ComponentMetadataHandler
big-guy Sep 24, 2022
4fc0614
Remove Closure taking methods from RepositoryHandler
big-guy Sep 24, 2022
a9ac555
Add Configurable.configure(Action)
big-guy Sep 24, 2022
ad90633
Remove most of the Closure-taking methods in Project
big-guy Sep 24, 2022
fbac41c
Add missing Action-taking methods for Project
big-guy Sep 24, 2022
e343a51
Remove Closure methods from PluginAware
big-guy Sep 24, 2022
6ffcc30
Remove the rest of the Closure taking methods from Project
big-guy Sep 24, 2022
1b01fc0
Remove explicit reference to configure(Closure) in NamedDomainObjectC…
big-guy Sep 24, 2022
5793488
Remove Closure methods from TaskExecutionGraph
big-guy Sep 24, 2022
d7baaf7
Remove Closure taking methods from file manipulating classes
big-guy Sep 24, 2022
75d472f
Remove Closure taking methods from Gradle
big-guy Sep 24, 2022
f225fc3
Remove Closure methods from PluginCollection
big-guy Sep 24, 2022
8ea3493
Remove Closure taking methods from TaskOutputs
big-guy Sep 24, 2022
01bbac2
Remove Closure methods from ProjectConfigurationActionContainer
big-guy Sep 24, 2022
e2d5dad
Remove Closure methods from Ear
big-guy Sep 24, 2022
af9cbaf
Remove Closure methods from Javadoc
big-guy Sep 24, 2022
b1c27c4
Remove some Closure taking methods from Test tasks
big-guy Sep 24, 2022
f60ea71
Remove Closure from SourceSet
big-guy Sep 24, 2022
33b62c9
Make sanityCheck happy
big-guy Sep 25, 2022
9335513
Fix javadoc generation
big-guy Sep 25, 2022
6c91e73
Update archunit baseline input
big-guy Sep 25, 2022
6021c8b
Revert "Remove the rest of the Closure taking methods from Project"
big-guy Sep 25, 2022
75f3031
Revert "Add missing Action-taking methods for Project"
big-guy Sep 25, 2022
51b8016
Make ktlint happy
big-guy Sep 25, 2022
5bc02cc
Ignore compatibility checks so we can run some tests
big-guy Sep 25, 2022
4202461
Remove Closure methods from DeploymentDescriptor
big-guy Sep 25, 2022
6665e09
Remove Closure from IDE related types
big-guy Sep 25, 2022
bc50fbf
Remove Closure methods from Jar and War
big-guy Sep 25, 2022
8164504
Add test for Closure-taking methods with CompileStatic
big-guy Oct 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove Closure taking methods from RepositoryHandler
  • Loading branch information
big-guy committed Sep 24, 2022
commit 4fc0614dfaad8f3f8d2308ca5170129b9f6209af
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
*/
package org.gradle.api.artifacts.dsl;

import groovy.lang.Closure;
import groovy.lang.DelegatesTo;
import org.gradle.api.Action;
import org.gradle.api.artifacts.ArtifactRepositoryContainer;
import org.gradle.api.artifacts.repositories.ArtifactRepository;
Expand Down Expand Up @@ -68,14 +66,6 @@ public interface RepositoryHandler extends ArtifactRepositoryContainer {
*/
FlatDirectoryArtifactRepository flatDir(Map<String, ?> args);

/**
* Adds an configures a repository which will look for dependencies in a number of local directories.
*
* @param configureClosure The closure to execute to configure the repository.
* @return The repository.
*/
FlatDirectoryArtifactRepository flatDir(@DelegatesTo(FlatDirectoryArtifactRepository.class) Closure configureClosure);

/**
* Adds an configures a repository which will look for dependencies in a number of local directories.
*
Expand Down Expand Up @@ -300,14 +290,6 @@ public interface RepositoryHandler extends ArtifactRepositoryContainer {
*/
MavenArtifactRepository google(Action<? super MavenArtifactRepository> action);

/**
* Adds and configures a Maven repository. Newly created instance of {@code MavenArtifactRepository} is passed as an argument to the closure.
*
* @param closure The closure to use to configure the repository.
* @return The added repository.
*/
MavenArtifactRepository maven(@DelegatesTo(MavenArtifactRepository.class) Closure closure);

/**
* Adds and configures a Maven repository.
*
Expand All @@ -316,14 +298,6 @@ public interface RepositoryHandler extends ArtifactRepositoryContainer {
*/
MavenArtifactRepository maven(Action<? super MavenArtifactRepository> action);

/**
* Adds and configures an Ivy repository. Newly created instance of {@code IvyArtifactRepository} is passed as an argument to the closure.
*
* @param closure The closure to use to configure the repository.
* @return The added repository.
*/
IvyArtifactRepository ivy(@DelegatesTo(IvyArtifactRepository.class) Closure closure);

/**
* Adds and configures an Ivy repository.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package org.gradle.api.internal.artifacts.dsl;

import com.google.common.collect.Lists;
import groovy.lang.Closure;
import org.gradle.api.Action;
import org.gradle.api.InvalidUserCodeException;
import org.gradle.api.artifacts.dsl.RepositoryHandler;
Expand All @@ -36,7 +35,6 @@
import org.gradle.internal.Factory;
import org.gradle.internal.deprecation.DeprecationLogger;
import org.gradle.internal.reflect.Instantiator;
import org.gradle.util.internal.ConfigureUtil;

import java.util.HashMap;
import java.util.List;
Expand Down Expand Up @@ -73,12 +71,6 @@ public FlatDirectoryArtifactRepository flatDir(Action<? super FlatDirectoryArtif
return addRepository(repositoryFactory.createFlatDirRepository(), FLAT_DIR_DEFAULT_NAME, action);
}

@Override
@SuppressWarnings("rawtypes")
public FlatDirectoryArtifactRepository flatDir(Closure configureClosure) {
return flatDir(ConfigureUtil.configureUsing(configureClosure));
}

@Override
public FlatDirectoryArtifactRepository flatDir(Map<String, ?> args) {
Map<String, Object> modifiedArgs = new HashMap<>(args);
Expand Down Expand Up @@ -161,23 +153,11 @@ public MavenArtifactRepository maven(Action<? super MavenArtifactRepository> act
return addRepository(repositoryFactory.createMavenRepository(), MAVEN_REPO_DEFAULT_NAME, action);
}

@Override
@SuppressWarnings("rawtypes")
public MavenArtifactRepository maven(Closure closure) {
return maven(ConfigureUtil.configureUsing(closure));
}

@Override
public IvyArtifactRepository ivy(Action<? super IvyArtifactRepository> action) {
return addRepository(repositoryFactory.createIvyRepository(), IVY_REPO_DEFAULT_NAME, action);
}

@Override
@SuppressWarnings("rawtypes")
public IvyArtifactRepository ivy(Closure closure) {
return ivy(ConfigureUtil.configureUsing(closure));
}

@Override
public void exclusiveContent(Action<? super ExclusiveContentRepository> action) {
ExclusiveContentRepositorySpec spec = Cast.uncheckedCast(instantiator.newInstance(ExclusiveContentRepositorySpec.class, this));
Expand Down