Browse files

HHH-7385 change to use gradle 1.1

  • Loading branch information...
1 parent 851da74 commit da241cb7ac72e0fa5af4dec39d80773054e891f5 @stliu stliu committed Aug 8, 2012
View
27 ...c/src/main/groovy/org/hibernate/build/gradle/testing/database/JdbcDirectoryProfile.groovy
@@ -26,30 +26,23 @@ 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.
*
* @author Steve Ebersole
* @author Strong Liu
*/
public class JdbcDirectoryProfile extends AbstractDatabaseProfileImpl {
- private final Configuration jdbcDependencies;
+ private final Configuration jdbcDependencies;
- 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)
- }*/
- }
+ public JdbcDirectoryProfile(File jdbcDirectory, Project project) {
+ super( jdbcDirectory.getParentFile(), project );
+ jdbcDependencies = prepareConfiguration( getName() );
+ project.dependencies.add(getName(), project.files(jdbcDirectory.listFiles()))
+ }
- @Override
- public Configuration getTestingRuntimeConfiguration() {
- return jdbcDependencies;
- }
+ @Override
+ public Configuration getTestingRuntimeConfiguration() {
+ return jdbcDependencies;
+ }
}

0 comments on commit da241cb

Please sign in to comment.