Skip to content
stigkj edited this page Sep 21, 2011 · 15 revisions

Single Module project

The only mandatory code in build.gradle are:

buildscript {
  repositories {
    mavenRepo urls: ["http://repo.jfrog.org/artifactory/plugins-snapshots"]
  }

  dependencies {
    classpath "org.gradle.plugins:gradle-m2metadata-plugin:1.0-SNAPSHOT"
  }
}

apply plugin: 'maven-metadata'

Multi Module project

You must list all your modules in settings.gradle as usual. Your parent build.gradle will look like:

buildscript {
  repositories {
    mavenRepo urls: ["http://repo.jfrog.org/artifactory/plugins-snapshots"]
  }

  dependencies {
    classpath "org.gradle.plugins:gradle-m2metadata-plugin:1.0-SNAPSHOT"
  }
}

subprojects {
apply plugin: 'maven-metadata'
}
Clone this wiki locally