Skip to content

Instantly share code, notes, and snippets.

View proguard.rb
#
# Usage:
#
# Add the following at the top of your buildfile,
#
# require 'proguard.rb'
#
# And specify your proguard jar in your project,
#
# package(:proguard).tap do |proguard|
@derkosak
derkosak / m2server.rb
Last active Dec 16, 2015
Very (very) simple maven artifact server written with Buildr and Sinatra
View m2server.rb
require 'rubygems' if RUBY_VERSION < '1.9'
require 'sinatra'
require 'fileutils'
require 'buildr'
# The REPO_DIR variable should point to the same folder
# configured for the local artifact repository used by
# Buildr (a.k.a. the local maven repository).
REPO_DIR = dir=File.expand_path("#{ENV['TEMP']}/repo/")
You can’t perform that action at this time.