Added gradle build files (experimental)

This commit is contained in:
Luke Taylor 2009-12-04 21:33:17 +00:00
parent 40056f2e4a
commit dab76249db
10 changed files with 189 additions and 0 deletions

14
acl/build.gradle Normal file
View File

@ -0,0 +1,14 @@
// Acl Module build file
dependencies {
compile project(':core'),
'net.sf.ehcache:ehcache:1.4.1',
"org.springframework:spring-context:$springVersion",
"org.springframework:spring-core:$springVersion",
"org.springframework:spring-tx:$springVersion",
"org.springframework:spring-jdbc:$springVersion"
testCompile "org.springframework:spring-beans:$springVersion",
"org.springframework:spring-context-support:$springVersion",
"org.springframework:spring-test:$springVersion"
}

34
build.gradle Normal file
View File

@ -0,0 +1,34 @@
usePlugin('java')
version = '3.0.0.CI-SNAPSHOT'
allprojects {
repositories {
mavenRepo name:'localRepo', urls:'file:///Users/luke/.m2/repository'
mavenCentral()
}
}
subprojects {
usePlugin 'java'
springVersion = '3.0.0.RC2'
dependencies {
compile 'commons-logging:commons-logging:1.1.1'
testCompile 'junit:junit:4.6',
'org.mockito:mockito-core:1.7',
'org.jmock:jmock:2.5.1',
'org.jmock:jmock-junit4:2.5.1',
'org.hamcrest:hamcrest-core:1.1',
'org.hamcrest:hamcrest-library:1.1',
"org.springframework:spring-test:$springVersion"
}
test {
options.fork(forkMode: ForkMode.ONCE, jvmArgs: ["-ea", '-Xms128m', '-Xmx1g', '-XX:MaxPermSize=128m', '-XX:+HeapDumpOnOutOfMemoryError'])
}
group = 'org.springframework.security'
}

27
config/build.gradle Normal file
View File

@ -0,0 +1,27 @@
// Config Module build file
compileTestJava.dependsOn(':core:compileTestJava')
dependencies {
compile project(':core'),
project(':web'),
"javax.servlet:servlet-api:2.5",
'org.aspectj:aspectjweaver:1.6.5',
"org.springframework:spring-aop:$springVersion",
"org.springframework:spring-core:$springVersion",
"org.springframework:spring-context:$springVersion",
"org.springframework:spring-web:$springVersion",
"org.springframework:spring-beans:$springVersion",
"org.springframework:spring-tx:$springVersion"
testCompile project(':ldap'),
project(':openid'),
files(this.project(':core').sourceSets.test.classesDir),
'aopalliance:aopalliance:1.0',
'org.springframework.ldap:spring-ldap-core:1.3.0.RELEASE',
"org.springframework:spring-jdbc:$springVersion"
}
task show << {
println dependencies
}

25
core/build.gradle Normal file
View File

@ -0,0 +1,25 @@
// Core build file
dependencies {
compile 'aopalliance:aopalliance:1.0',
'commons-codec:commons-codec:1.3',
'jaxen:jaxen:1.1.1',
'net.sf.ehcache:ehcache:1.4.1',
"org.springframework:spring-aop:$springVersion",
"org.springframework:spring-beans:$springVersion",
"org.springframework:spring-core:$springVersion",
"org.springframework:spring-context:$springVersion",
"org.springframework:spring-expression:$springVersion",
"org.springframework:spring-jdbc:$springVersion",
"org.springframework:spring-tx:$springVersion",
"org.springframework:spring-web:$springVersion",
'org.aspectj:aspectjrt:1.6.5',
'org.aspectj:aspectjweaver:1.6.5',
'org.apache.tomcat:annotations-api:6.0.14'
runtime 'hsqldb:hsqldb:1.8.0.7'
//'asm:asm-all:2.2.3',
testCompile 'commons-collections:commons-collections:3.2',
"org.springframework:spring-test:$springVersion"
}

14
docs/faq/build.gradle Normal file
View File

@ -0,0 +1,14 @@
usePlugin('docbook')
defaultTasks 'docbookHtmlSingle'
docbookSrcFileName = 'faq.xml'
docbookHtmlSingle.stylesheet = new File(projectDir, 'src/xsl/html-single-custom.xsl')
docbookHtmlSingle.doLast {
resourcesDir = new File(projectDir, 'src/resources')
ant {
docsDir = new File(buildDir, 'docs')
copy(toDir: docsDir) {fileset(dir: resourcesDir)}
}
}

19
docs/manual/build.gradle Normal file
View File

@ -0,0 +1,19 @@
usePlugin 'docbook'
defaultTasks 'docbookHtml'
docbookSrcFileName = 'springsecurity.xml'
docbookHtml.stylesheet = new File(projectDir, 'src/xsl/html-custom.xsl')
docbookFoPdf.stylesheet = new File(projectDir, 'src/xsl/pdf-custom.xsl')
docbookHtml.doLast {
resourcesDir = new File(projectDir, 'src/resources')
ant {
docsDir = new File(buildDir, 'docs')
copy(toDir: docsDir) {fileset(dir: resourcesDir)}
copy(toDir: new File(docsDir, 'images')) {fileset(dir: new File(projectDir, 'src/docbook/images'))}
}
}
/*docbookSrc = new File(project.buildDir, 'docbook/src')
docbookDir = new File(project.buildDir, 'docbook/stylesheets')*/

21
ldap/build.gradle Normal file
View File

@ -0,0 +1,21 @@
// Ldap build file
test.exclude('**/OpenLDAPIntegrationTestSuite.class')
dependencies {
compile project(':core'),
"org.springframework:spring-core:$springVersion",
"org.springframework:spring-beans:$springVersion",
"org.springframework:spring-context:$springVersion",
"org.springframework:spring-tx:$springVersion",
'org.springframework.ldap:spring-ldap-core:1.3.0.RELEASE',
'org.apache.directory.server:apacheds-core:1.5.5',
'org.apache.directory.server:apacheds-core-entry:1.5.5',
'org.apache.directory.server:apacheds-protocol-shared:1.5.5',
'org.apache.directory.server:apacheds-protocol-ldap:1.5.5',
'org.apache.directory.server:apacheds-server-jndi:1.5.5',
'org.apache.directory.shared:shared-ldap:0.9.15',
'ldapsdk:ldapsdk:4.1'
runtime 'org.slf4j:slf4j-log4j12:1.4.3'
}

16
openid/build.gradle Normal file
View File

@ -0,0 +1,16 @@
// OpenID Module build file
dependencies {
compile project(':core'),
project(':web'),
"javax.servlet:servlet-api:2.5",
'org.openid4java:openid4java-nodeps:0.9.5',
"org.springframework:spring-aop:$springVersion",
"org.springframework:spring-core:$springVersion",
"org.springframework:spring-context:$springVersion",
"org.springframework:spring-beans:$springVersion",
"org.springframework:spring-tx:$springVersion",
"org.springframework:spring-web:$springVersion"
runtime 'commons-httpclient:commons-httpclient:3.1'
}

1
settings.gradle Normal file
View File

@ -0,0 +1 @@
include 'core', 'web', 'ldap', 'acl', 'config', 'openid'

18
web/build.gradle Normal file
View File

@ -0,0 +1,18 @@
// Web module build file
dependencies {
compile project(':core'),
'aopalliance:aopalliance:1.0',
'javax.servlet:servlet-api:2.5',
'commons-codec:commons-codec:1.3',
'org.aspectj:aspectjweaver:1.6.5',
"org.springframework:spring-aop:$springVersion",
"org.springframework:spring-core:$springVersion",
"org.springframework:spring-beans:$springVersion",
"org.springframework:spring-context:$springVersion",
"org.springframework:spring-expression:$springVersion",
"org.springframework:spring-jdbc:$springVersion",
"org.springframework:spring-tx:$springVersion",
"org.springframework:spring-web:$springVersion",
"org.springframework:spring-test:$springVersion"
}