Skip to content

Instantly share code, notes, and snippets.

@algobardo
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save algobardo/89a52a836fbb2b4e5f93 to your computer and use it in GitHub Desktop.

Select an option

Save algobardo/89a52a836fbb2b4e5f93 to your computer and use it in GitHub Desktop.
Gradle and one-jar with maven publishing
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.rholder:gradle-one-jar:1.0.4'
}
}
apply plugin: 'maven'
mainClassName = "dk.au.cs.thor.entry"
group = "dk.au.cs.thor"
version = "1.0.0"
status = "release"
description = "Instrumentation for Android tests"
install {
repositories.mavenInstaller {
pom.version = project.version
pom.artifactId = "SootInstrumentation"
}
}
apply plugin: 'gradle-one-jar'
task fullJar(type: OneJar) {
mainClass = 'dk.au.cs.thor.entry'
}
artifacts {
archives fullJar
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment