Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

HHH-7385 change to use gradle 1.1

  • Loading branch information...
commit da241cb7ac72e0fa5af4dec39d80773054e891f5 1 parent 851da74
Strong Liu authored August 08, 2012
27  buildSrc/src/main/groovy/org/hibernate/build/gradle/testing/database/JdbcDirectoryProfile.groovy
@@ -26,7 +26,6 @@ package org.hibernate.build.gradle.testing.database;
26 26
 
27 27
 import org.gradle.api.Project;
28 28
 import org.gradle.api.artifacts.Configuration;
29  
-import org.gradle.api.internal.artifacts.dependencies.DefaultSelfResolvingDependency;
30 29
 /**
31 30
  * Database profile as defined by a directory named {@code jdbc} containing JDBC drivers.
32 31
  *
@@ -34,22 +33,16 @@ import org.gradle.api.internal.artifacts.dependencies.DefaultSelfResolvingDepend
34 33
  * @author Strong Liu
35 34
  */
36 35
 public class JdbcDirectoryProfile extends AbstractDatabaseProfileImpl {
37  
-	private final Configuration jdbcDependencies;
  36
+    private final Configuration jdbcDependencies;
38 37
 
39  
-	public JdbcDirectoryProfile(File jdbcDirectory, Project project) {
40  
-		super( jdbcDirectory.getParentFile(), project );
41  
-		jdbcDependencies = prepareConfiguration( getName() );
42  
-		DefaultSelfResolvingDependency dependency =
43  
-                new DefaultSelfResolvingDependency( project.files( jdbcDirectory.listFiles() ) );
44  
-/*        File [] jdbcDriverJars = jdbcDirectory.listFiles();*/
45  
-        jdbcDependencies.addDependency( dependency );
46  
-/*        project.dependencies {
47  
-            jdbcDependency files(jdbcDriverJars)
48  
-        }*/
49  
-	}
  38
+    public JdbcDirectoryProfile(File jdbcDirectory, Project project) {
  39
+        super( jdbcDirectory.getParentFile(), project );
  40
+        jdbcDependencies = prepareConfiguration( getName() );
  41
+        project.dependencies.add(getName(), project.files(jdbcDirectory.listFiles()))
  42
+    }
50 43
 
51  
-	@Override
52  
-	public Configuration getTestingRuntimeConfiguration() {
53  
-		return jdbcDependencies;
54  
-	}
  44
+    @Override
  45
+    public Configuration getTestingRuntimeConfiguration() {
  46
+        return jdbcDependencies;
  47
+    }
55 48
 }

0 notes on commit da241cb

Please sign in to comment.
Something went wrong with that request. Please try again.