You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Alexey Tsvetkov 56cf4c6bf9 Minor: remove force shutdown after package deletion 4 years ago
..
buildSrc Fix typo 4 years ago
gradle/wrapper
.gitignore
README.md
build.gradle.kts Minor: remove force shutdown after package deletion 4 years ago
gradle.properties
gradlew
gradlew.bat
settings.gradle.kts
template.local.properties

README.md

How to delete packages from Space Maven repo

  1. Requirements:
  • JDK 9+ is required to run the script.
  1. Generate a personal token:
  • Add ReadRepository, WriteRepository, ViewProject permissions
  1. Create local.properties from template:
cp template.local.properties local.properties
  1. Set parameters in local.properties:
  • space.server.url - URL of space installation;
  • space.auth.token - your token;
  1. Find out project ID and package repo ID by running:
./gradlew listProjectsAndPackageRepositories
  1. Set parameters in local.properties:
  • space.project.id - Project ID;
  • space.repo.id - Repo ID;
  1. Generate list of packages to delete:
./gradlew generateListOfPackagesToDelete -Pspace.package.version=0.4.0-preview-*
  1. Uncomment packages to be deleted in build/packages-to-delete.txt.

  2. Run:

./gradlew deletePackages