Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete maven_jar, maven_server and --incompatible_remove_native_maven_jar #10237

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 0 additions & 2 deletions site/docs/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ BUILD files without a `load` statement.
* Workspace
- [`bind`](be/workspace.html#bind)
- [`local_repository`](be/workspace.html#local_repository)
- [`maven_jar`](be/workspace.html#maven_jar)
- [`maven_server`](be/workspace.html#maven_server)
- [`new_local_repository`](be/workspace.html#new_local_repository)
- [`xcode_config`](be/workspace.html#xcode_config)
- [`xcode_version`](be/workspace.html#xcode_version)
Expand Down
11 changes: 0 additions & 11 deletions src/main/java/com/google/devtools/build/lib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,6 @@ java_library(
"bazel/repository/**/*.java",
"bazel/rules/workspace/*.java",
],
exclude = ["bazel/repository/MavenConnector.java"],
),
resources = [
"bazel/repository/local_config_platform.WORKSPACE",
Expand All @@ -945,7 +944,6 @@ java_library(
":build-base",
":events",
":io",
":maven-connector",
":out-err",
":packages-internal",
":runtime",
Expand Down Expand Up @@ -978,15 +976,6 @@ java_library(
],
)

java_library(
name = "maven-connector",
srcs = ["bazel/repository/MavenConnector.java"],
deps = [
"//third_party:aether",
"//third_party:maven_model",
],
)

# Rules
java_library(
name = "nativedeps-rules",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
import com.google.devtools.build.lib.bazel.commands.SyncCommand;
import com.google.devtools.build.lib.bazel.repository.LocalConfigPlatformFunction;
import com.google.devtools.build.lib.bazel.repository.LocalConfigPlatformRule;
import com.google.devtools.build.lib.bazel.repository.MavenDownloader;
import com.google.devtools.build.lib.bazel.repository.MavenJarFunction;
import com.google.devtools.build.lib.bazel.repository.MavenServerFunction;
import com.google.devtools.build.lib.bazel.repository.MavenServerRepositoryFunction;
import com.google.devtools.build.lib.bazel.repository.RepositoryOptions;
import com.google.devtools.build.lib.bazel.repository.RepositoryOptions.RepositoryOverride;
import com.google.devtools.build.lib.bazel.repository.cache.RepositoryCache;
Expand All @@ -44,8 +40,6 @@
import com.google.devtools.build.lib.bazel.rules.android.AndroidNdkRepositoryRule;
import com.google.devtools.build.lib.bazel.rules.android.AndroidSdkRepositoryFunction;
import com.google.devtools.build.lib.bazel.rules.android.AndroidSdkRepositoryRule;
import com.google.devtools.build.lib.bazel.rules.workspace.MavenJarRule;
import com.google.devtools.build.lib.bazel.rules.workspace.MavenServerRule;
import com.google.devtools.build.lib.cmdline.RepositoryName;
import com.google.devtools.build.lib.events.Event;
import com.google.devtools.build.lib.pkgcache.PackageCacheOptions;
Expand Down Expand Up @@ -102,7 +96,6 @@ public class BazelRepositoryModule extends BlazeModule {
private final SkylarkRepositoryFunction skylarkRepositoryFunction;
private final RepositoryCache repositoryCache = new RepositoryCache();
private final HttpDownloader httpDownloader = new HttpDownloader(repositoryCache);
private final MavenDownloader mavenDownloader = new MavenDownloader(repositoryCache);
private final MutableSupplier<Map<String, String>> clientEnvironmentSupplier =
new MutableSupplier<>();
private ImmutableMap<RepositoryName, PathFragment> overrides = ImmutableMap.of();
Expand All @@ -116,7 +109,7 @@ public class BazelRepositoryModule extends BlazeModule {

public BazelRepositoryModule() {
this.skylarkRepositoryFunction = new SkylarkRepositoryFunction(httpDownloader);
this.repositoryHandlers = repositoryRules(httpDownloader, mavenDownloader);
this.repositoryHandlers = repositoryRules();
ManagedDirectoriesListener listener =
repositoryNamesWithManagedDirs -> {
Set<String> conflicting =
Expand All @@ -136,15 +129,12 @@ public BazelRepositoryModule() {
managedDirectoriesKnowledge = new ManagedDirectoriesKnowledgeImpl(listener);
}

public static ImmutableMap<String, RepositoryFunction> repositoryRules(
HttpDownloader httpDownloader, MavenDownloader mavenDownloader) {
public static ImmutableMap<String, RepositoryFunction> repositoryRules() {
return ImmutableMap.<String, RepositoryFunction>builder()
.put(LocalRepositoryRule.NAME, new LocalRepositoryFunction())
.put(MavenJarRule.NAME, new MavenJarFunction(mavenDownloader))
.put(NewLocalRepositoryRule.NAME, new NewLocalRepositoryFunction())
.put(AndroidSdkRepositoryRule.NAME, new AndroidSdkRepositoryFunction())
.put(AndroidNdkRepositoryRule.NAME, new AndroidNdkRepositoryFunction())
.put(MavenServerRule.NAME, new MavenServerRepositoryFunction())
.put(LocalConfigPlatformRule.NAME, new LocalConfigPlatformFunction())
.build();
}
Expand Down Expand Up @@ -191,7 +181,6 @@ public void workspaceInit(
directories,
managedDirectoriesKnowledge);
builder.addSkyFunction(SkyFunctions.REPOSITORY_DIRECTORY, repositoryDelegatorFunction);
builder.addSkyFunction(MavenServerFunction.NAME, new MavenServerFunction(directories));
filesystem = runtime.getFileSystem();
}

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading