Skip to content

Instantly share code, notes, and snippets.

@derkosak
derkosak / proguard.rb
Last active December 16, 2015 03:39 — forked from aboisvert/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 December 16, 2015 12:19
Very (very) simple maven artifact server written with Buildr and Sinatra
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/")