From 4dd8e59c1c6ce4102cce8f48264cd0b947b5e8d9 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Wed, 15 Jan 2014 15:16:16 -0800 Subject: [PATCH] Now generates pom --- build.gradle | 1 + springloaded-core/build.gradle | 25 ++++++++++++++++++++----- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 72a4712..6e53100 100644 --- a/build.gradle +++ b/build.gradle @@ -11,6 +11,7 @@ allprojects { subprojects { apply plugin: 'java' apply plugin: 'eclipse' + apply plugin: 'maven' sourceCompatibility = 1.6 targetCompatibility = 1.6 diff --git a/springloaded-core/build.gradle b/springloaded-core/build.gradle index 701a87d..17e9aae 100644 --- a/springloaded-core/build.gradle +++ b/springloaded-core/build.gradle @@ -1,9 +1,24 @@ group = "org.springsource.loaded" -groupId = "org.springsource.loaded" -artifactId = "springloaded-core" version = '1.1.5.BUILD-SNAPSHOT' jar.baseName = 'springloaded' +task writeNewPom << { + pom { + project { + inceptionYear '2013' + licenses { + license { + name 'The Apache Software License, Version 2.0' + url 'http://www.apache.org/licenses/LICENSE-2.0.txt' + distribution 'repo' + } + } + dependencies { + } + } + }.writeTo("$buildDir/pom.xml"); +} + compileJava { options.debug = true } @@ -19,10 +34,10 @@ task wrapper(type: Wrapper) { dependencies { tools 'com.googlecode.jarjar:jarjar:1.3' - compile 'asm:asm:3.2' - compile 'asm:asm-tree:3.2' + testCompileOnly 'asm:asm:3.2' + testCompileOnly 'asm:asm-tree:3.2' - testCompile 'junit:junit:4.11' + testCompileOnly 'junit:junit:4.11' testCompileOnly files("../testdata-groovy/groovy-1.8.2.jar") testCompileOnly project(':testdata')