Author: pidster Date: Sat May 21 15:41:07 2011 New Revision: 1125730 URL: http://svn.apache.org/viewvc?rev=1125730&view=rev Log: Initial Gradle build script, based on Alessandro's suggestion in KITTY-15
For Eclipse IDE integration, see also: http://gradle.1045684.n5.nabble.com/ANN-Gradle-Eclipse-Plugin-td4387658.html Added: incubator/kitty/trunk/build.gradle (with props) Modified: incubator/kitty/trunk/eclipse.project Added: incubator/kitty/trunk/build.gradle URL: http://svn.apache.org/viewvc/incubator/kitty/trunk/build.gradle?rev=1125730&view=auto ============================================================================== --- incubator/kitty/trunk/build.gradle (added) +++ incubator/kitty/trunk/build.gradle Sat May 21 15:41:07 2011 @@ -0,0 +1,101 @@ +/* + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You 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 plugin: 'eclipse' +apply plugin: 'java' +apply plugin: 'groovy' +apply plugin: 'application' + +defaultTasks 'assemble' + +// -------------------------------------------------------------------- +// standard config +version = '0.1-SNAPSHOT' +title = 'Apache Kitty (Incubating)' +description = 'This is the Apache Kitty Gradle build script' + +// -------------------------------------------------------------------- +// dependency versions +gradleVersion = '1.0-milestone-3' +groovyVersion = '1.8.0' +jlineVersion = '0.9.94' +junitVersion = '4.8.2' +accliVersion = '1.2' +aclangVersion = '2.6' +aclogVersion = '1.1.1' + +repositories { + mavenCentral() +} + +allprojects { + group: 'org.apache.kitty' + releaseBuild = version.endsWith('RELEASE') + snapshotBuild = version.endsWith('SNAPSHOT') +} + +dependencies { + groovy group: 'org.codehaus.groovy', name: 'groovy', version: "$groovyVersion" + groovy group: 'jline', name: 'jline', version: "$jlineVersion" + groovy group: 'commons-cli', name: 'commons-cli', version: "$accliVersion" + compile group: 'commons-lang', name: 'commons-lang', version: "$aclangVersion" + compile group: 'commons-logging', name: 'commons-logging', version: "$aclogVersion" + testCompile group: 'junit', name: 'junit', version: "$junitVersion" +} + +jar { + baseName = 'apache-kitty' + manifest { + attributes ( + 'Main-Class': 'org.apache.kitty.Main' + ) + } +} + +// -------------------------------------------------------------------- +// java plugin config +sourceCompatibility = 1.6 +targetCompatibility = 1.6 +sourceSets { + main { + groovy { + srcDir 'src/main/java' + } + } + test { + groovy { + srcDir 'src/test/java' + } + } +} + + +// -------------------------------------------------------------------- +// application plugin config +applicationName = 'kitty' +mainClassName = "org.apache.kitty.Main" + +// -------------------------------------------------------------------- +// task definitions +task wrapper(type: Wrapper) { + gradleVersion = "$gradleVersion" + jarPath = 'gradle/wrapper' +} + +task kittyDist(dependsOn: [build, test, distZip]) << { + println 'Building distribution' +} Propchange: incubator/kitty/trunk/build.gradle ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/kitty/trunk/build.gradle ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: incubator/kitty/trunk/eclipse.project URL: http://svn.apache.org/viewvc/incubator/kitty/trunk/eclipse.project?rev=1125730&r1=1125729&r2=1125730&view=diff ============================================================================== --- incubator/kitty/trunk/eclipse.project (original) +++ incubator/kitty/trunk/eclipse.project Sat May 21 15:41:07 2011 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <projectDescription> - <name>kitty-trunk</name> + <name>kitty</name> <comment></comment> <projects> </projects> @@ -12,6 +12,7 @@ </buildCommand> </buildSpec> <natures> + <nature>com.springsource.sts.gradle.core.nature</nature> <nature>org.eclipse.jdt.groovy.core.groovyNature</nature> <nature>org.eclipse.jdt.core.javanature</nature> </natures>
