Latest gradle syntax updates.
This commit is contained in:
parent
2b9beffd08
commit
d334f6fa09
10
build.gradle
10
build.gradle
|
@ -1,4 +1,4 @@
|
||||||
apply id: 'base'
|
apply plugin: 'base'
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
version = '3.1.0.CI-SNAPSHOT'
|
version = '3.1.0.CI-SNAPSHOT'
|
||||||
|
@ -18,18 +18,18 @@ allprojects {
|
||||||
}
|
}
|
||||||
|
|
||||||
configure(javaProjects) {
|
configure(javaProjects) {
|
||||||
apply url: "$rootDir/gradle/javaprojects.gradle"
|
apply from: "$rootDir/gradle/javaprojects.gradle"
|
||||||
apply url: "$rootDir/gradle/maven.gradle"
|
apply from: "$rootDir/gradle/maven.gradle"
|
||||||
}
|
}
|
||||||
|
|
||||||
configure(coreModuleProjects) {
|
configure(coreModuleProjects) {
|
||||||
apply url: "$rootDir/gradle/bundlor.gradle"
|
apply from: "$rootDir/gradle/bundlor.gradle"
|
||||||
// Gives better names in structure101 jar diagram
|
// Gives better names in structure101 jar diagram
|
||||||
sourceSets.main.classesDir = new File(buildDir, "classes/" + project.name.substring("spring-security".length() + 1))
|
sourceSets.main.classesDir = new File(buildDir, "classes/" + project.name.substring("spring-security".length() + 1))
|
||||||
}
|
}
|
||||||
|
|
||||||
configure (aspectjProjects) {
|
configure (aspectjProjects) {
|
||||||
apply url: "$rootDir/gradle/aspectj.gradle"
|
apply from: "$rootDir/gradle/aspectj.gradle"
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apply id: 'groovy'
|
apply plugin: 'groovy'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenRepo name:'localRepo', urls: "file://" + System.properties['user.home'] + "/.m2/repository"
|
mavenRepo name:'localRepo', urls: "file://" + System.properties['user.home'] + "/.m2/repository"
|
||||||
|
|
|
@ -36,7 +36,7 @@ import com.icl.saxon.TransformerFactoryImpl;
|
||||||
* which it operates.
|
* which it operates.
|
||||||
*/
|
*/
|
||||||
class DocbookPlugin implements Plugin<Project> {
|
class DocbookPlugin implements Plugin<Project> {
|
||||||
public void use(Project project) {
|
public void apply(Project project) {
|
||||||
// Add the plugin tasks to the project
|
// Add the plugin tasks to the project
|
||||||
Task docbookHtml = project.tasks.add('docbookHtml', DocbookHtml.class);
|
Task docbookHtml = project.tasks.add('docbookHtml', DocbookHtml.class);
|
||||||
docbookHtml.setDescription('Generates chunked docbook html output');
|
docbookHtml.setDescription('Generates chunked docbook html output');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
apply id: 'base'
|
apply plugin: 'base'
|
||||||
apply id: 'docbook'
|
apply plugin: 'docbook'
|
||||||
|
|
||||||
defaultTasks 'docbookHtmlSingle'
|
defaultTasks 'docbookHtmlSingle'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
apply id: 'base'
|
apply plugin: 'base'
|
||||||
apply id: 'docbook'
|
apply plugin: 'docbook'
|
||||||
|
|
||||||
[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.sourceFileName = 'springsecurity.xml';
|
[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.sourceFileName = 'springsecurity.xml';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apply id: 'java'
|
apply plugin: 'java'
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
ajtools
|
ajtools
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import java.util.jar.Manifest
|
apply plugin: 'java'
|
||||||
import org.gradle.api.tasks.bundling.GradleManifest
|
|
||||||
|
|
||||||
apply id: 'java'
|
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
bundlor
|
bundlor
|
||||||
|
@ -20,14 +17,13 @@ task bundlor(dependsOn: compileJava) {
|
||||||
doFirst {
|
doFirst {
|
||||||
ant.taskdef(resource: 'com/springsource/bundlor/ant/antlib.xml', classpath: configurations.bundlor.asPath)
|
ant.taskdef(resource: 'com/springsource/bundlor/ant/antlib.xml', classpath: configurations.bundlor.asPath)
|
||||||
File template = new File(projectDir, 'template.mf')
|
File template = new File(projectDir, 'template.mf')
|
||||||
mkdir(buildDir, 'bundlor')
|
mkdir("$buildDir/bundlor")
|
||||||
if (template.exists()) {
|
if (template.exists()) {
|
||||||
ant.bundlor(inputPath: sourceSets.main.classesDir, outputPath: "$buildDir/bundlor", manifestTemplatePath: template) {
|
ant.bundlor(inputPath: sourceSets.main.classesDir, outputPath: "$buildDir/bundlor", manifestTemplatePath: template) {
|
||||||
property(name: 'version', value: "$version")
|
property(name: 'version', value: "$version")
|
||||||
property(name: 'spring.version', value: "$springVersion")
|
property(name: 'spring.version', value: "$springVersion")
|
||||||
}
|
}
|
||||||
// See GRADLE-395 for support for using an existing manifest
|
jar.manifest.from("$buildDir/bundlor/META-INF/MANIFEST.MF")
|
||||||
jar.manifest = new GradleManifest(new Manifest(new File("$buildDir/bundlor/META-INF/MANIFEST.MF").newInputStream()))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
apply id: 'java'
|
apply plugin: 'java'
|
||||||
apply id: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
springVersion = '3.0.1.RELEASE'
|
springVersion = '3.0.1.RELEASE'
|
||||||
springLdapVersion = '1.3.0.RELEASE'
|
springLdapVersion = '1.3.0.RELEASE'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apply id: 'maven'
|
apply plugin: 'maven'
|
||||||
|
|
||||||
// Create a source jar for uploading
|
// Create a source jar for uploading
|
||||||
task sourceJar(type: Jar) {
|
task sourceJar(type: Jar) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
apply id: 'war'
|
apply plugin: 'war'
|
||||||
apply id: 'jetty'
|
apply plugin: 'jetty'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
runtime project(':spring-security-core'),
|
runtime project(':spring-security-core'),
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// Contacts sample build file
|
// Contacts sample build file
|
||||||
|
|
||||||
apply id: 'war'
|
apply plugin: 'war'
|
||||||
apply id: 'jetty'
|
apply plugin: 'jetty'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
providedCompile 'javax.servlet:servlet-api:2.5@jar'
|
providedCompile 'javax.servlet:servlet-api:2.5@jar'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// OpenID sample build file
|
// OpenID sample build file
|
||||||
|
|
||||||
apply id: 'war'
|
apply plugin: 'war'
|
||||||
apply id: 'jetty'
|
apply plugin: 'jetty'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
providedCompile 'javax.servlet:servlet-api:2.5@jar'
|
providedCompile 'javax.servlet:servlet-api:2.5@jar'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// Tutorial sample build file
|
// Tutorial sample build file
|
||||||
|
|
||||||
apply id: 'war'
|
apply plugin: 'war'
|
||||||
apply id: 'jetty'
|
apply plugin: 'jetty'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
providedCompile 'javax.servlet:servlet-api:2.5@jar'
|
providedCompile 'javax.servlet:servlet-api:2.5@jar'
|
||||||
|
|
Loading…
Reference in New Issue