HHH-8232 - Upgrade to Gradle 1.6

This commit is contained in:
Steve Ebersole 2013-05-09 20:33:19 -05:00
parent 8e3770235b
commit e9a54405c2
6 changed files with 8 additions and 9 deletions

View File

@ -29,7 +29,7 @@ ext.hibernateTargetVersion = '4.3.0-SNAPSHOT'
ext.javaLanguageLevel = "1.6"
task wrapper(type: Wrapper) {
gradleVersion = '1.5'
gradleVersion = '1.6'
}

View File

@ -39,7 +39,6 @@ dependencies {
// common
compile gradleApi()
compile localGroovy()
groovy localGroovy()
compile 'org.apache.ant:ant:1.8.2'
// injection plugin
compile 'org.javassist:javassist:3.15.0-GA'

View File

@ -119,7 +119,7 @@ public abstract class AbstractDatabaseProfileImpl implements DatabaseProfile {
protected Configuration getOrCreateConfiguration(String name) {
Configuration configuration = project.getConfigurations().findByName( name );
if ( configuration == null ) {
configuration = project.getConfigurations().add( name );
configuration = project.getConfigurations().create( name );
}
return configuration;
}

View File

@ -101,7 +101,7 @@ public class MatrixTestingPlugin implements Plugin<Project> {
* Prepare compile configuration for matrix source set.
*/
private Configuration prepareCompileConfiguration() {
return project.configurations.add( MATRIX_COMPILE_CONFIG_NAME )
return project.configurations.create( MATRIX_COMPILE_CONFIG_NAME )
.setDescription( "Dependencies used to compile the matrix tests" )
.extendsFrom( project.configurations.getByName( COMPILE_CONFIGURATION_NAME ) )
.extendsFrom( project.configurations.getByName( TEST_COMPILE_CONFIGURATION_NAME ) );
@ -111,7 +111,7 @@ public class MatrixTestingPlugin implements Plugin<Project> {
* Prepare runtime configuration for matrix source set.
*/
private Configuration prepareRuntimeConfiguration() {
return project.configurations.add( MATRIX_RUNTIME_CONFIG_NAME )
return project.configurations.create( MATRIX_RUNTIME_CONFIG_NAME )
.setDescription( "Dependencies (baseline) used to run the matrix tests" )
.extendsFrom( matrixCompileConfig )
.extendsFrom( project.configurations.getByName( RUNTIME_CONFIGURATION_NAME ) )
@ -119,7 +119,7 @@ public class MatrixTestingPlugin implements Plugin<Project> {
}
private Task prepareGroupingTask() {
Task matrixTask = project.tasks.add( MATRIX_TASK_NAME );
Task matrixTask = project.tasks.create( MATRIX_TASK_NAME );
matrixTask.group = "Verification"
matrixTask.description = "Runs the unit tests on Database Matrix"
return matrixTask;
@ -140,7 +140,7 @@ public class MatrixTestingPlugin implements Plugin<Project> {
private Task prepareNodeTask(MatrixNode node) {
String taskName = MATRIX_TASK_NAME + '_' + node.name
log.debug( "Adding Matrix Testing task $taskName" );
final Test nodeTask = project.tasks.add( taskName, Test );
final Test nodeTask = project.tasks.create( taskName, Test );
nodeTask.description = "Runs the matrix against ${node.name}"
nodeTask.classpath = node.databaseProfile.testingRuntimeConfiguration + testSourceSet.runtimeClasspath
nodeTask.testClassesDir = testSourceSet.output.classesDir

Binary file not shown.

View File

@ -1,6 +1,6 @@
#Thu Apr 04 13:01:06 CDT 2013
#Thu May 09 20:32:29 CDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.5-bin.zip
distributionUrl=http\://services.gradle.org/distributions/gradle-1.6-bin.zip