From: <lh...@us...> - 2010-08-31 16:37:58
|
Revision: 405 http://tinytim.svn.sourceforge.net/tinytim/?rev=405&view=rev Author: lheuer Date: 2010-08-31 16:37:49 +0000 (Tue, 31 Aug 2010) Log Message: ----------- Improved build: TMAPI test are executed Modified Paths: -------------- tinytim/trunk/build.gradle Modified: tinytim/trunk/build.gradle =================================================================== --- tinytim/trunk/build.gradle 2010-08-03 19:34:33 UTC (rev 404) +++ tinytim/trunk/build.gradle 2010-08-31 16:37:49 UTC (rev 405) @@ -4,7 +4,7 @@ * - Download Gradle from <http://www.gradle.org/> * - Execute gradle build * - * TODO: Zip / Tar archives, run TMAPI.AllTests + * TODO: Zip / Tar archives * */ group = 'org.tinytim' @@ -14,7 +14,13 @@ apply plugin: 'java' apply plugin: 'osgi' apply plugin: 'maven' +apply plugin: 'eclipse' +defaultTasks 'clean', 'build' + +//TODO: Remove me once <http://jira.codehaus.org/browse/GRADLE-1079> is fixed +eclipseClasspath.variables = [:] + gradle.taskGraph.whenReady {taskGraph -> if (!taskGraph.hasTask(':release')) { version += '-SNAPSHOT' @@ -33,23 +39,33 @@ } dependencies { - compile group: 'org.tmapi', name: 'tmapi', version: '2.0.2' + compile 'org.tmapi:tmapi:2.0.2' compiledep 'com.semagia.mio:mio-core:0.9.6-SNAPSHOT' - testCompile group: 'junit', name: 'junit', version: '4.8.1' - testCompile group: 'org.tmapi', name: 'tmapi-tests', version: '2.0.3-SNAPSHOT' - - // Make Eclipse happy - testCompile 'com.semagia.mio:mio-core:0.9.6-SNAPSHOT' + testCompile 'junit:junit:4.8.1', + 'org.tmapi:tmapi-tests:2.0.3-SNAPSHOT' } +eclipseClasspath.downloadSources = false +eclipseClasspath.plusConfigurations.add configurations.compiledep + sourceSets { main { compileClasspath = sourceSets.main.compileClasspath + configurations.compiledep } } +test.doFirst { + ant { + unzip(src: configurations.testCompile.find { f -> f.name.startsWith('tmapi-test') }, + dest: "$buildDir/classes/test") { + exclude '**/TestTopicMapSystemFactory*' + exclude '**/TestRFC3986*' + } + } +} + jar { manifest { attributes 'Implementation-Title': 'tinyTiM', 'Implementation-Version': version This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |