Skip to content

Commit

Permalink
merged in new build
Browse files Browse the repository at this point in the history
  • Loading branch information
purplefox committed Jul 8, 2012
1 parent fc3f005 commit 7797150
Show file tree
Hide file tree
Showing 229 changed files with 88 additions and 80 deletions.
32 changes: 15 additions & 17 deletions build.gradle
Expand Up @@ -14,7 +14,6 @@
* limitations under the License.
*/

// apply plugin: 'application'
apply from: 'gradle/extra-tasks.gradle'

buildscript {
Expand All @@ -29,8 +28,8 @@ buildscript {
}

allprojects {
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'idea'

configurations {
platform
Expand Down Expand Up @@ -58,17 +57,17 @@ subprojects {
destinationDir = file("build/docs/java/api")
}

task collectDeps(type: Copy) {
destinationDir = file("build/deps")
into("compile") {
from configurations.compile
exclude "vertx-*.jar"
}
into("test") {
from configurations.testCompile
exclude "vertx-*.jar"
}
task collectDeps(type: Copy) {
destinationDir = file("build/deps")
into("compile") {
from configurations.compile
exclude "vertx-*.jar"
}
into("test") {
from configurations.testCompile
exclude "vertx-*.jar"
}
}
}

defaultTasks = ['preflight']
Expand All @@ -95,9 +94,9 @@ task clean(type: Delete, dependsOn: [subprojects.clean]) {
description 'Clean the parent and all of the vert.x subprojects'

delete 'build/release', 'build/distributions'
subprojects.each {
delete 'build/deps'
}
subprojects.each {
delete 'build/deps'
}
}

task assemble(type: Copy, dependsOn: ['preflight', subprojects.assemble]) {
Expand Down Expand Up @@ -126,7 +125,6 @@ task assemble(type: Copy, dependsOn: ['preflight', subprojects.assemble]) {
}
into('examples') {
from file("vertx-examples/src/main")
// from project(":vertx-examples").sourceSets.main
}
into('lib') {
from subprojects.configurations.platform
Expand Down
4 changes: 3 additions & 1 deletion settings.gradle
Expand Up @@ -17,6 +17,7 @@
include 'vertx-boot'
include 'vertx-core'
include 'vertx-platform'
include 'vertx-testframework'

include 'vertx-lang-groovy'
include 'vertx-lang-java'
Expand All @@ -25,7 +26,8 @@ include 'vertx-lang-jython'
include 'vertx-lang-rhino'

include 'vertx-examples'
include 'vertx-testframework'

include 'vertx-testsuite'

rootProject.name='vert.x'

Expand Down
5 changes: 2 additions & 3 deletions vertx-examples/build.gradle
Expand Up @@ -25,16 +25,15 @@ dependencies {
compile project(':vertx-platform')

compile project(':vertx-lang-groovy')
compile project(':vertx-lang-java')
compile project(':vertx-lang-jruby')
compile project(':vertx-lang-java')
compile project(':vertx-lang-jruby')
compile project(':vertx-lang-jython')
compile project(':vertx-lang-rhino')

groovy "org.codehaus.groovy:groovy-all:$groovyVersion"
vertxJRuby "org.jruby:jruby:$jrubyVersion"
vertxJython "org.python:jython-standalone:$jythonVersion"
vertxRhino "org.mozilla:rhino:$rhinoVersion"

}

javadoc.dependsOn groovydoc
6 changes: 3 additions & 3 deletions vertx-lang/vertx-lang-java/build.gradle
Expand Up @@ -17,9 +17,9 @@
apply from: "$rootDir/gradle/maven.gradle"

dependencies {
compile project(':vertx-core')
compile project(':vertx-platform')
compile project(':vertx-core')
compile project(':vertx-platform')
}
artifacts {
platform jar
platform jar
}
26 changes: 0 additions & 26 deletions vertx-lang/vertx-lang-jython/build.gradle
Expand Up @@ -25,29 +25,3 @@ dependencies {
artifacts {
platform jar
}

// TODO move this into build-tools
/*
task pydoc(type: Exec) {
group 'documentation'
description 'Generates Python API documentation for the main source code.'
def jythonHome = System.getProperty('jython.home')
def projectClasspath = files(project.configurations.compile).files.join(':')
workingDir projectDir
inputs.files files("/src/main/python", "/src/main/python_scripts", "/tools/doclib")
outputs.dir "/build/pydoc"
commandLine = [
"${jythonHome}/bin/jython",
'-J-classpath',
projectClasspath,
"-Dpython.path=$projectDir/src/main/python:$projectDir/src/main/python_scripts:$projectDir/tools/doclib",
"-Dproj.base=$projectDir",
"-Doutput.base=$projectDir/build/python",
"$projectDir/tools/pydocx.py"
]
}
javadoc.dependsOn pydoc
*/
Expand Up @@ -131,7 +131,7 @@ public ModuleScript getModuleScript(Context cx, String moduleId, URI uri, URI ba
}
}

if (uri != null && new File(uri).isDirectory()) {
if (uri != null && uri.toString().startsWith("file:") && new File(uri).isDirectory()) {

String main = "index";

Expand Down Expand Up @@ -169,7 +169,7 @@ public ModuleScript getModuleScript(Context cx, String moduleId, URI uri, URI ba

}

if(uri != null && uri.toString().endsWith(".coffee")) {
if (uri != null && uri.toString().endsWith(".coffee")) {
uri = getCoffeeScriptCompiler(cl).coffeeScriptToJavaScript(uri);
}
return super.getModuleScript(cx, moduleId, uri, uri, paths);
Expand Down
32 changes: 4 additions & 28 deletions vertx-testframework/build.gradle
Expand Up @@ -22,22 +22,13 @@ apply plugin: 'vertx-jruby'
apply plugin: 'vertx-jython'
apply plugin: 'vertx-rhino'

/*
configurations {
testVerticles {
extendsFrom compile
}
testCompile.extendsFrom testVerticles
}
*/

dependencies {
compile "junit:junit:$junitVersion" // provide exportable components

compile project(':vertx-platform')
compile project(':vertx-lang-groovy')
compile project(':vertx-lang-java')

compile project(':vertx-lang-groovy')
compile project(':vertx-lang-java')
compile project(':vertx-lang-jruby')
compile project(':vertx-lang-jython')
compile project(':vertx-lang-rhino')
Expand All @@ -47,22 +38,7 @@ dependencies {
testCompile "org.python:jython-standalone:$jythonVersion"
testCompile "org.mozilla:rhino:$rhinoVersion"

testCompile files("$rootDir/src/dist/conf")
}

artifacts {
// platform jar // adds testframework to distribution
testCompile files("$rootDir/src/dist/conf")
}

javadoc.dependsOn groovydoc

test {
systemProperty 'vertx.test.timeout', 15
systemProperty 'vertx.mods', "$projectDir/src/test/mod-test"
systemProperty 'jruby.home', System.getenv('JRUBY_HOME')
systemProperty 'jython.home', System.getenv('JYTHON_HOME')

jvmArgs '-server', '-Xms128m', '-Xmx1024m', '-XX:MaxPermSize=128m', '-XX:NewRatio=2'

forkEvery 50 // FIXME This may not be necessary
}
59 changes: 59 additions & 0 deletions vertx-testsuite/build.gradle
@@ -0,0 +1,59 @@
/*
* Copyright 2011-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

apply from: "$rootDir/gradle/maven.gradle"
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'vertx-groovy'
apply plugin: 'vertx-jruby'
apply plugin: 'vertx-jython'
apply plugin: 'vertx-rhino'

dependencies {
compile "junit:junit:$junitVersion" // provide exportable components

compile project(':vertx-platform')

compile project(':vertx-lang-groovy')
compile project(':vertx-lang-java')
compile project(':vertx-lang-jruby')
compile project(':vertx-lang-jython')
compile project(':vertx-lang-rhino')

compile project(':vertx-testframework')

groovy "org.codehaus.groovy:groovy-all:$groovyVersion"
testCompile "org.jruby:jruby:$jrubyVersion"
testCompile "org.python:jython-standalone:$jythonVersion"
testCompile "org.mozilla:rhino:$rhinoVersion"

testCompile files("$rootDir/src/dist/conf")
}

javadoc.dependsOn groovydoc

test {
testLogging.showStandardStreams = true

systemProperty 'vertx.test.timeout', 15
systemProperty 'vertx.mods', "$projectDir/src/test/mod-test"
systemProperty 'jruby.home', System.getenv('JRUBY_HOME')
systemProperty 'jython.home', System.getenv('JYTHON_HOME')

jvmArgs '-server', '-Xms128m', '-Xmx1024m', '-XX:MaxPermSize=128m', '-XX:NewRatio=2'

forkEvery 50 // FIXME This may not be necessary
}
File renamed without changes.

0 comments on commit 7797150

Please sign in to comment.