Skip to content

Instantly share code, notes, and snippets.

View sasjo's full-sized avatar

Samuel Sjöberg sasjo

View GitHub Profile
@sasjo
sasjo / NexusArtifactCleanup.groovy
Created July 25, 2018 09:18 — forked from oliverdaff/NexusArtifactCleanup.groovy
Clean up nexus artifacts with API
@GrabResolver(name='mirror', root='http://repository/nexus/content/groups/public')
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7.1')
import groovyx.net.http.*
import static groovyx.net.http.ContentType.*
import static groovyx.net.http.Method.*
import org.apache.http.impl.conn.PoolingClientConnectionManager
import org.apache.http.params.HttpParams
import org.apache.http.client.HttpClient
import org.apache.http.impl.client.DefaultHttpClient