-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include target packages in
maven
artifact
- Loading branch information
Showing
5 changed files
with
28 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
# Positional arguments: | ||
# * Maven directory to download into, e.g. /path/to/com/chaquo/python/target/3.10.6-3. | ||
# Must not already exist. | ||
|
||
# Fail if target already exists: we don't want to overwrite things by accident. | ||
mkdir -p $(dirname ${1:?}) | ||
mkdir $1 | ||
target_dir=$(cd $1 && pwd) | ||
|
||
cd $target_dir | ||
version=$(basename $target_dir) | ||
|
||
# Set user-agent to circumvent Maven Central's block of wget. | ||
# Redirect stderr to stdout, otherwise output gets mixed up in CI. | ||
wget -r -l1 --no-parent --no-directories --accept .zip --progress dot:giga \ | ||
-e robots=off --user-agent Mozilla/5.0 \ | ||
https://repo.maven.apache.org/maven2/com/chaquo/python/target/$version/ 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters