瀏覽代碼

Added gradle build files (experimental)

Luke Taylor 15 年之前
父節點
當前提交
dab76249db
共有 10 個文件被更改,包括 189 次插入0 次删除
  1. 14 0
      acl/build.gradle
  2. 34 0
      build.gradle
  3. 27 0
      config/build.gradle
  4. 25 0
      core/build.gradle
  5. 14 0
      docs/faq/build.gradle
  6. 19 0
      docs/manual/build.gradle
  7. 21 0
      ldap/build.gradle
  8. 16 0
      openid/build.gradle
  9. 1 0
      settings.gradle
  10. 18 0
      web/build.gradle

+ 14 - 0
acl/build.gradle

@@ -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 - 0
build.gradle

@@ -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 - 0
config/build.gradle

@@ -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 - 0
core/build.gradle

@@ -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 - 0
docs/faq/build.gradle

@@ -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 - 0
docs/manual/build.gradle

@@ -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 - 0
ldap/build.gradle

@@ -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 - 0
openid/build.gradle

@@ -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 - 0
settings.gradle

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

+ 18 - 0
web/build.gradle

@@ -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"
+}