Skip to content

Instantly share code, notes, and snippets.

@xconnecting
Created November 8, 2012 00:56
Show Gist options
  • Save xconnecting/4035712 to your computer and use it in GitHub Desktop.
Save xconnecting/4035712 to your computer and use it in GitHub Desktop.
Sample: build.gradle for Gradle custom plugin
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'maven'
group = 'com.example'
archivesBaseName = 'greet'
version = '1.0-SNAPSHOT'
dependencies {
compile gradleApi()
groovy localGroovy()
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: 'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment