Could not find method leftShift() for arguments on task of type org.gradle.api.DefaultTask

Change to

task createDB {
   description= "Creates the Database. Needs database name to be passed (like: -PdbName=someDBname)"
   doLast {    
    sql = Sql.newInstance( 'jdbc:mysql:thin://localhost:3306/', mysqlUser, mysqlPassword, 'org.drizzle.jdbc.DrizzleDriver' )
    sql.execute( 'create database '+"`$dbName`" )
   } 
}
2 Likes