Skip to content

Commit

Permalink
First steps into multi project build refactor. Moved grails-bootstrap…
Browse files Browse the repository at this point in the history
… related classes into isolated project.
  • Loading branch information
graemerocher committed Feb 16, 2011
1 parent b8bfe4d commit c9ba376
Show file tree
Hide file tree
Showing 51 changed files with 147 additions and 115 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -17,3 +17,4 @@ idea
.classpath
.project
/.settings
/projects/*/build
251 changes: 138 additions & 113 deletions build.gradle
Expand Up @@ -10,7 +10,8 @@ buildscript {
apply plugin: 'groovy'
apply plugin: 'eclipse'

version = '1.4.0.BUILD-SNAPSHOT'
grailsVersion = '1.4.0.BUILD-SNAPSHOT'
version = grailsVersion

sourceCompatibility = "1.5"
targetCompatibility = "1.5"
Expand All @@ -24,118 +25,6 @@ configurations {
repositories {
mavenRepo urls:"http://maven.springframework.org/release"
}
dependencies {
// Jars in lib
compile files(fileTree(dir:"$projectDir/src/libs" as File))

// Ant
def antVersion = "1.7.1"
compile "org.apache.ant:ant:${antVersion}",
"org.apache.ant:ant-launcher:${antVersion}",
"org.apache.ant:ant-junit:${antVersion}",
"org.apache.ant:ant-nodeps:${antVersion}",
"org.apache.ant:ant-trax:${antVersion}",
"org.apache.ivy:ivy:2.2.0"

// Apache Commons
compile 'commons-beanutils:commons-beanutils:1.8.0' ,
'commons-cli:commons-cli:1.0',
'commons-codec:commons-codec:1.4',
'commons-collections:commons-collections:3.2.1',
'commons-dbcp:commons-dbcp:1.3',
'commons-el:commons-el:1.0',
'commons-fileupload:commons-fileupload:1.2.1',
'commons-io:commons-io:1.4',
'commons-lang:commons-lang:2.4',
'commons-pool:commons-pool:1.5.5',
'commons-validator:commons-validator:1.3.1'

// Others
compile( 'cglib:cglib-nodep:2.1_3',
'org.fusesource.jansi:jansi:1.2.1',
'oro:oro:2.0.8',
'com.lowagie:itext:2.1.7',
'org.xhtmlrenderer:core-renderer:R8pre2',
'jline:jline:0.9.94',
'opensymphony:sitemesh:2.4',
'org.tmatesoft.svnkit:svnkit:1.3.4',
'ognl:ognl:2.7.3',
'com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.1_jdk5')

runtime 'aopalliance:aopalliance:1.0',
'com.h2database:h2:1.2.147',
'hsqldb:hsqldb:1.8.0.10',
'org.aspectj:aspectjrt:1.6.10',
'org.aspectj:aspectjweaver:1.6.10',
'net.sf.ehcache:ehcache-core:2.3.1',
'org.coconut.forkjoin:jsr166y:070108'


// Testing
compile 'junit:junit:4.8.1'

// XML
compile 'xpp3:xpp3_min:1.1.4c'
compile 'xalan:serializer:2.7.1'

// Logging
compile 'org.slf4j:slf4j-log4j12:1.6.1'
compile 'org.slf4j:slf4j-api:1.6.1'
compile 'org.slf4j:jcl-over-slf4j:1.6.1'
compile 'org.slf4j:jul-to-slf4j:1.6.1'
compile 'log4j:log4j:1.2.16'

// Specs
compile 'javax.servlet:jsp-api:2.0'
compile 'javax.servlet:servlet-api:2.5'
compile 'javax.servlet:jstl:1.2'
compile 'taglibs:standard:1.1.2'
compile 'net.sf.jsr107cache:jsr107cache:1.0'
compile 'javax.transaction:jta:1.1'
compile 'javax.persistence:persistence-api:1.0'

// Hibernate related
compile 'org.hibernate:hibernate-annotations:3.4.0.GA',
'org.hibernate:hibernate-commons-annotations:3.1.0.GA',
'org.hibernate:hibernate-core:3.3.1.GA',
'org.hibernate:hibernate-validator:3.1.0.GA',
'org.hibernate:hibernate-ehcache:3.3.1.GA',
'javassist:javassist:3.11.0.GA',
'antlr:antlr:2.7.6'

// Spring
def springVersion = "3.0.3.RELEASE"
compile "org.springframework:spring-aop:${springVersion}",
"org.springframework:spring-asm:${springVersion}",
"org.springframework:spring-aspects:${springVersion}",
"org.springframework:spring-beans:${springVersion}",
"org.springframework:spring-context:${springVersion}",
"org.springframework:spring-core:${springVersion}",
"org.springframework:spring-expression:${springVersion}",
"org.springframework:spring-instrument:${springVersion}",
"org.springframework:spring-jdbc:${springVersion}",
"org.springframework:spring-jms:${springVersion}",
"org.springframework:spring-orm:${springVersion}",
"org.springframework:spring-oxm:${springVersion}",
"org.springframework:spring-test:${springVersion}",
"org.springframework:spring-tx:${springVersion}",
"org.springframework:spring-web:${springVersion}",
"org.springframework:spring-webmvc:${springVersion}"


// Spring Web Flow
compile "org.springframework.webflow:spring-binding:2.0.8.RELEASE",
"org.springframework.webflow:spring-js:2.0.8.RELEASE",
"org.springframework.webflow:spring-webflow:2.0.8.RELEASE"

// Groovy
groovy "org.codehaus.groovy:groovy-all:1.8.0-beta-4"
compile( 'org.codehaus.gpars:gpars:0.9' ) {
exclude module:'netty'
}

jsp21 'javax.servlet.jsp:jsp-api:2.1'
}

sourceSets {
main {
Expand Down Expand Up @@ -175,6 +64,142 @@ sourceSets {
}
}

subprojects {
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'maven'

group = "org.grails"
version = grailsVersion
archivesBaseName = "grails"

configurations {
compile.transitive = false
jsp21.extendsFrom compile
}
repositories {
mavenRepo urls:"http://maven.springframework.org/release"
}
dependencies {
groovy group: 'org.codehaus.groovy', name: 'groovy-all', version: '1.8.0-beta-4'

// Jars in lib
compile files(fileTree(dir:"$projectDir/src/libs" as File))

// Ant
def antVersion = "1.7.1"
compile "org.apache.ant:ant:${antVersion}",
"org.apache.ant:ant-launcher:${antVersion}",
"org.apache.ant:ant-junit:${antVersion}",
"org.apache.ant:ant-nodeps:${antVersion}",
"org.apache.ant:ant-trax:${antVersion}",
"org.apache.ivy:ivy:2.2.0",
'org.codehaus.gant:gant_groovy1.7:1.9.3'


// Apache Commons
compile 'commons-beanutils:commons-beanutils:1.8.0' ,
'commons-cli:commons-cli:1.0',
'commons-codec:commons-codec:1.4',
'commons-collections:commons-collections:3.2.1',
'commons-dbcp:commons-dbcp:1.3',
'commons-el:commons-el:1.0',
'commons-fileupload:commons-fileupload:1.2.1',
'commons-io:commons-io:1.4',
'commons-lang:commons-lang:2.4',
'commons-pool:commons-pool:1.5.5',
'commons-validator:commons-validator:1.3.1'

// Others
compile( 'cglib:cglib-nodep:2.1_3',
'org.fusesource.jansi:jansi:1.2.1',
'oro:oro:2.0.8',
'com.lowagie:itext:2.1.7',
'org.xhtmlrenderer:core-renderer:R8pre2',
'jline:jline:0.9.94',
'opensymphony:sitemesh:2.4',
'org.tmatesoft.svnkit:svnkit:1.3.4',
'ognl:ognl:2.7.3',
'com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.1_jdk5')

runtime 'aopalliance:aopalliance:1.0',
'com.h2database:h2:1.2.147',
'hsqldb:hsqldb:1.8.0.10',
'org.aspectj:aspectjrt:1.6.10',
'org.aspectj:aspectjweaver:1.6.10',
'net.sf.ehcache:ehcache-core:2.3.1',
'org.coconut.forkjoin:jsr166y:070108'


// Testing
compile 'junit:junit:4.8.1'

// XML
compile 'xpp3:xpp3_min:1.1.4c'
compile 'xalan:serializer:2.7.1'

// Logging
compile 'org.slf4j:slf4j-log4j12:1.6.1'
compile 'org.slf4j:slf4j-api:1.6.1'
compile 'org.slf4j:jcl-over-slf4j:1.6.1'
compile 'org.slf4j:jul-to-slf4j:1.6.1'
compile 'log4j:log4j:1.2.16'

// Specs
compile 'javax.servlet:jsp-api:2.0'
compile 'javax.servlet:servlet-api:2.5'
compile 'javax.servlet:jstl:1.2'
compile 'taglibs:standard:1.1.2'
compile 'net.sf.jsr107cache:jsr107cache:1.0'
compile 'javax.transaction:jta:1.1'
compile 'javax.persistence:persistence-api:1.0'

// Hibernate related
compile 'org.hibernate:hibernate-annotations:3.4.0.GA',
'org.hibernate:hibernate-commons-annotations:3.1.0.GA',
'org.hibernate:hibernate-core:3.3.1.GA',
'org.hibernate:hibernate-validator:3.1.0.GA',
'org.hibernate:hibernate-ehcache:3.3.1.GA',
'javassist:javassist:3.11.0.GA',
'antlr:antlr:2.7.6'

// Spring
def springVersion = "3.0.3.RELEASE"
compile "org.springframework:spring-aop:${springVersion}",
"org.springframework:spring-asm:${springVersion}",
"org.springframework:spring-aspects:${springVersion}",
"org.springframework:spring-beans:${springVersion}",
"org.springframework:spring-context:${springVersion}",
"org.springframework:spring-core:${springVersion}",
"org.springframework:spring-expression:${springVersion}",
"org.springframework:spring-instrument:${springVersion}",
"org.springframework:spring-jdbc:${springVersion}",
"org.springframework:spring-jms:${springVersion}",
"org.springframework:spring-orm:${springVersion}",
"org.springframework:spring-oxm:${springVersion}",
"org.springframework:spring-test:${springVersion}",
"org.springframework:spring-tx:${springVersion}",
"org.springframework:spring-web:${springVersion}",
"org.springframework:spring-webmvc:${springVersion}"


// Spring Web Flow
compile "org.springframework.webflow:spring-binding:2.0.8.RELEASE",
"org.springframework.webflow:spring-js:2.0.8.RELEASE",
"org.springframework.webflow:spring-webflow:2.0.8.RELEASE"

// Groovy
groovy "org.codehaus.groovy:groovy-all:1.8.0-beta-4"
compile( 'org.codehaus.gpars:gpars:0.9' ) {
exclude module:'netty'
}

jsp21 'javax.servlet.jsp:jsp-api:2.1'
}


}

jsp21Classes.dependsOn classes
task allClasses(dependsOn: [classes, jsp21Classes, buildScriptsClasses])

Expand Down
1 change: 0 additions & 1 deletion gradle.properties
@@ -1 +0,0 @@
version = 1.2-M1
2 changes: 1 addition & 1 deletion gradle/assemble.gradle
Expand Up @@ -364,7 +364,7 @@ distSpec = copySpec {
}

task zipDist(type: Zip) {
dependsOn tasks.withType(Jar).all/*, docs*/
// dependsOn tasks.withType(Jar).all/*, docs*/
from distSpec
doFirst dependencyCache
}
Expand Down
7 changes: 7 additions & 0 deletions projects/bootstrap/build.gradle
@@ -0,0 +1,7 @@
repositories {
mavenCentral()
}
dependencies {
groovy group: 'org.codehaus.groovy', name: 'groovy-all', version: '1.8.0-beta-4'
}
jar.appendix = 'bootstrap'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c9ba376

Please sign in to comment.