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 d496ca9ff5 Add script for deleting packages from Space 4 years ago
..
buildSrc Add script for deleting packages from Space 4 years ago
gradle/wrapper Add script for deleting packages from Space 4 years ago
.gitignore Add script for deleting packages from Space 4 years ago
README.md Add script for deleting packages from Space 4 years ago
build.gradle.kts Add script for deleting packages from Space 4 years ago
gradle.properties Add script for deleting packages from Space 4 years ago
gradlew Add script for deleting packages from Space 4 years ago
gradlew.bat Add script for deleting packages from Space 4 years ago
settings.gradle.kts Add script for deleting packages from Space 4 years ago
template.local.properties Add script for deleting packages from Space 4 years ago

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