diff --git a/MODULE.bazel b/MODULE.bazel index 56a56b1..968f664 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -43,19 +43,16 @@ bazel_dep(name = "rules_java", version = "9.9.0") register_toolchains("@rules_java//java:all") -bazel_dep(name = "rules_jvm_external", version = "7.2") +http_jar = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar") -maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") -maven.install( - name = "rvojava_maven", - artifacts = ["org.apache.commons:commons-math3:3.6.1"], - lock_file = "//:maven_install.json", - repositories = [ - "https://repo1.maven.org/maven2", - "https://maven-central.storage-download.googleapis.com/maven2", +http_jar( + name = "commons_math3", + sha256 = "1e56d7b058d28b65abd256b8458e3885b674c1d588fa43cd7d1cbb9c7ef2b308", + urls = [ + "https://repo1.maven.org/maven2/org/apache/commons/commons-math3/3.6.1/commons-math3-3.6.1.jar", + "https://maven-central.storage-download.googleapis.com/maven2/org/apache/commons/commons-math3/3.6.1/commons-math3-3.6.1.jar", ], ) -use_repo(maven, "rvojava_maven") bazel_dep(name = "bazel_lib", version = "3.9.0") bazel_dep(name = "bazel_skylib", version = "1.9.2") diff --git a/blocks/src/main/java/BUILD.bazel b/blocks/src/main/java/BUILD.bazel index 2c60ef0..6938c91 100644 --- a/blocks/src/main/java/BUILD.bazel +++ b/blocks/src/main/java/BUILD.bazel @@ -51,6 +51,6 @@ java_test( use_testrunner = False, deps = [ "//rvo/src/main/java:rvo", - "@rvojava_maven//:org_apache_commons_commons_math3", + "@commons_math3//jar", ], ) diff --git a/circle/src/main/java/BUILD.bazel b/circle/src/main/java/BUILD.bazel index 22d4210..4c44740 100644 --- a/circle/src/main/java/BUILD.bazel +++ b/circle/src/main/java/BUILD.bazel @@ -51,6 +51,6 @@ java_test( use_testrunner = False, deps = [ "//rvo/src/main/java:rvo", - "@rvojava_maven//:org_apache_commons_commons_math3", + "@commons_math3//jar", ], ) diff --git a/maven_install.json b/maven_install.json deleted file mode 100644 index 8040469..0000000 --- a/maven_install.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "__AUTOGENERATED_FILE_DO_NOT_MODIFY_THIS_FILE_MANUALLY": "THERE_IS_NO_DATA_ONLY_ZUUL", - "__INPUT_ARTIFACTS_HASH": { - "org.apache.commons:commons-math3": -1738699872, - "repositories": 736830508 - }, - "__RESOLVED_ARTIFACTS_HASH": { - "org.apache.commons:commons-math3": -1383243934 - }, - "artifacts": { - "org.apache.commons:commons-math3": { - "shasums": { - "jar": "1e56d7b058d28b65abd256b8458e3885b674c1d588fa43cd7d1cbb9c7ef2b308" - }, - "version": "3.6.1" - } - }, - "dependencies": {}, - "packages": { - "org.apache.commons:commons-math3": [ - "org.apache.commons.math3", - "org.apache.commons.math3.analysis", - "org.apache.commons.math3.analysis.differentiation", - "org.apache.commons.math3.analysis.function", - "org.apache.commons.math3.analysis.integration", - "org.apache.commons.math3.analysis.integration.gauss", - "org.apache.commons.math3.analysis.interpolation", - "org.apache.commons.math3.analysis.polynomials", - "org.apache.commons.math3.analysis.solvers", - "org.apache.commons.math3.complex", - "org.apache.commons.math3.dfp", - "org.apache.commons.math3.distribution", - "org.apache.commons.math3.distribution.fitting", - "org.apache.commons.math3.exception", - "org.apache.commons.math3.exception.util", - "org.apache.commons.math3.filter", - "org.apache.commons.math3.fitting", - "org.apache.commons.math3.fitting.leastsquares", - "org.apache.commons.math3.fraction", - "org.apache.commons.math3.genetics", - "org.apache.commons.math3.geometry", - "org.apache.commons.math3.geometry.enclosing", - "org.apache.commons.math3.geometry.euclidean.oned", - "org.apache.commons.math3.geometry.euclidean.threed", - "org.apache.commons.math3.geometry.euclidean.twod", - "org.apache.commons.math3.geometry.euclidean.twod.hull", - "org.apache.commons.math3.geometry.hull", - "org.apache.commons.math3.geometry.partitioning", - "org.apache.commons.math3.geometry.partitioning.utilities", - "org.apache.commons.math3.geometry.spherical.oned", - "org.apache.commons.math3.geometry.spherical.twod", - "org.apache.commons.math3.linear", - "org.apache.commons.math3.ml.clustering", - "org.apache.commons.math3.ml.clustering.evaluation", - "org.apache.commons.math3.ml.distance", - "org.apache.commons.math3.ml.neuralnet", - "org.apache.commons.math3.ml.neuralnet.oned", - "org.apache.commons.math3.ml.neuralnet.sofm", - "org.apache.commons.math3.ml.neuralnet.sofm.util", - "org.apache.commons.math3.ml.neuralnet.twod", - "org.apache.commons.math3.ml.neuralnet.twod.util", - "org.apache.commons.math3.ode", - "org.apache.commons.math3.ode.events", - "org.apache.commons.math3.ode.nonstiff", - "org.apache.commons.math3.ode.sampling", - "org.apache.commons.math3.optim", - "org.apache.commons.math3.optim.linear", - "org.apache.commons.math3.optim.nonlinear.scalar", - "org.apache.commons.math3.optim.nonlinear.scalar.gradient", - "org.apache.commons.math3.optim.nonlinear.scalar.noderiv", - "org.apache.commons.math3.optim.nonlinear.vector", - "org.apache.commons.math3.optim.nonlinear.vector.jacobian", - "org.apache.commons.math3.optim.univariate", - "org.apache.commons.math3.optimization", - "org.apache.commons.math3.optimization.direct", - "org.apache.commons.math3.optimization.fitting", - "org.apache.commons.math3.optimization.general", - "org.apache.commons.math3.optimization.linear", - "org.apache.commons.math3.optimization.univariate", - "org.apache.commons.math3.primes", - "org.apache.commons.math3.random", - "org.apache.commons.math3.special", - "org.apache.commons.math3.stat", - "org.apache.commons.math3.stat.clustering", - "org.apache.commons.math3.stat.correlation", - "org.apache.commons.math3.stat.descriptive", - "org.apache.commons.math3.stat.descriptive.moment", - "org.apache.commons.math3.stat.descriptive.rank", - "org.apache.commons.math3.stat.descriptive.summary", - "org.apache.commons.math3.stat.inference", - "org.apache.commons.math3.stat.interval", - "org.apache.commons.math3.stat.ranking", - "org.apache.commons.math3.stat.regression", - "org.apache.commons.math3.transform", - "org.apache.commons.math3.util" - ] - }, - "repositories": { - "https://repo1.maven.org/maven2/": [ - "org.apache.commons:commons-math3" - ], - "https://maven-central.storage-download.googleapis.com/maven2/": [ - "org.apache.commons:commons-math3" - ] - }, - "services": {}, - "version": "3" -} diff --git a/maven_install.json.license b/maven_install.json.license deleted file mode 100644 index 1697eb5..0000000 --- a/maven_install.json.license +++ /dev/null @@ -1,30 +0,0 @@ -maven_install.json -RVO2 Library Java - -SPDX-FileCopyrightText: 2008 University of North Carolina at Chapel Hill -SPDX-License-Identifier: Apache-2.0 - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - -Please send all bug reports to . - -The authors may be contacted via: - -Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha -Dept. of Computer Science -201 S. Columbia St. -Frederick P. Brooks, Jr. Computer Science Bldg. -Chapel Hill, N.C. 27599-3175 -United States of America - - diff --git a/rvo/src/main/java/BUILD.bazel b/rvo/src/main/java/BUILD.bazel index ab26d9a..bb04f7e 100644 --- a/rvo/src/main/java/BUILD.bazel +++ b/rvo/src/main/java/BUILD.bazel @@ -59,7 +59,7 @@ java_library( name = "rvo", srcs = [":srcs"], visibility = ["//visibility:public"], - deps = ["@rvojava_maven//:org_apache_commons_commons_math3"], + deps = ["@commons_math3//jar"], ) javadoc_library( @@ -67,7 +67,7 @@ javadoc_library( srcs = [":srcs"], external_javadoc_links = ["https://commons.apache.org/proper/commons-math/javadocs/api-3.6.1/"], tags = ["requires-network"], - deps = ["@rvojava_maven//:org_apache_commons_commons_math3"], + deps = ["@commons_math3//jar"], ) pkg_files(