HHH-7385 change to use gradle 1.1

This commit is contained in:
Strong Liu 2012-08-08 20:54:40 +08:00
parent 851da741a3
commit da241cb7ac
1 changed files with 10 additions and 17 deletions

View File

@ -26,7 +26,6 @@ package org.hibernate.build.gradle.testing.database;
import org.gradle.api.Project;
import org.gradle.api.artifacts.Configuration;
import org.gradle.api.internal.artifacts.dependencies.DefaultSelfResolvingDependency;
/**
* Database profile as defined by a directory named {@code jdbc} containing JDBC drivers.
*
@ -39,13 +38,7 @@ public class JdbcDirectoryProfile extends AbstractDatabaseProfileImpl {
public JdbcDirectoryProfile(File jdbcDirectory, Project project) {
super( jdbcDirectory.getParentFile(), project );
jdbcDependencies = prepareConfiguration( getName() );
DefaultSelfResolvingDependency dependency =
new DefaultSelfResolvingDependency( project.files( jdbcDirectory.listFiles() ) );
/* File [] jdbcDriverJars = jdbcDirectory.listFiles();*/
jdbcDependencies.addDependency( dependency );
/* project.dependencies {
jdbcDependency files(jdbcDriverJars)
}*/
project.dependencies.add(getName(), project.files(jdbcDirectory.listFiles()))
}
@Override