File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
src/main/starlark/core/repositories Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,17 @@ def _ksp_compiler_plugin_repository_impl(repository_ctx):
10
10
repository_ctx .download_and_extract (
11
11
attr .urls ,
12
12
sha256 = attr .sha256 ,
13
+ # Move the jars to the top level and remove verison information.
14
+ rename_files = {
15
+ "com/google/devtools/ksp/{jar}/{version}/{jar}-{version}.jar" .format (
16
+ jar = jar ,
17
+ version = attr .strip_version ,
18
+ ): "{jar}.jar" .format (jar = jar )
19
+ for jar in _JARS_INSIDE_REPO
20
+ },
13
21
)
14
22
15
- # Move the jars that we need into the root of the workspace and strip the
16
- # version specific information out of the file name.
17
- for jar in _JARS_INSIDE_REPO :
18
- args = [
19
- "mv" ,
20
- "com/google/devtools/ksp/{jar}/{version}/{jar}-{version}.jar" .format (jar = jar , version = attr .strip_version ),
21
- "{jar}.jar" .format (jar = jar ),
22
- ]
23
- repository_ctx .execute (args , quiet = False )
23
+ # Remove unused .pom and checksum files files.
24
24
repository_ctx .delete ("com" )
25
25
26
26
repository_ctx .file (
You can’t perform that action at this time.
0 commit comments