Latest gradle syntax updates.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
apply id: 'java'
|
||||
apply plugin: 'java'
|
||||
|
||||
configurations {
|
||||
ajtools
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
import java.util.jar.Manifest
|
||||
import org.gradle.api.tasks.bundling.GradleManifest
|
||||
|
||||
apply id: 'java'
|
||||
apply plugin: 'java'
|
||||
|
||||
configurations {
|
||||
bundlor
|
||||
@@ -20,14 +17,13 @@ task bundlor(dependsOn: compileJava) {
|
||||
doFirst {
|
||||
ant.taskdef(resource: 'com/springsource/bundlor/ant/antlib.xml', classpath: configurations.bundlor.asPath)
|
||||
File template = new File(projectDir, 'template.mf')
|
||||
mkdir(buildDir, 'bundlor')
|
||||
mkdir("$buildDir/bundlor")
|
||||
if (template.exists()) {
|
||||
ant.bundlor(inputPath: sourceSets.main.classesDir, outputPath: "$buildDir/bundlor", manifestTemplatePath: template) {
|
||||
property(name: 'version', value: "$version")
|
||||
property(name: 'spring.version', value: "$springVersion")
|
||||
}
|
||||
// See GRADLE-395 for support for using an existing manifest
|
||||
jar.manifest = new GradleManifest(new Manifest(new File("$buildDir/bundlor/META-INF/MANIFEST.MF").newInputStream()))
|
||||
jar.manifest.from("$buildDir/bundlor/META-INF/MANIFEST.MF")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
apply id: 'java'
|
||||
apply id: 'eclipse'
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'eclipse'
|
||||
|
||||
springVersion = '3.0.1.RELEASE'
|
||||
springLdapVersion = '1.3.0.RELEASE'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
apply id: 'maven'
|
||||
apply plugin: 'maven'
|
||||
|
||||
// Create a source jar for uploading
|
||||
task sourceJar(type: Jar) {
|
||||
|
||||
Reference in New Issue
Block a user