I don't know if anyone else is having any issues with codegen using grade 
or maven in 3.9.1 for MS SQL Server?  The below works fine in 3.9.0, but 
nothing happens in 3.9.1  No errors, just no generation :-)

Did I miss something in the update?  If I change 3.9.1 to 3.9.0 it works 
fine...  

apply plugin: 'java'

buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
    }
    dependencies {
        classpath 'org.jooq.pro:jooq-codegen:3.9.1'
        classpath 'com.microsoft.sqlserver:mssql-jdbc:6.1.0.jre8'
    }
}

repositories {
    mavenLocal()
    mavenCentral()
}

dependencies {
    compile 'org.jooq.pro:jooq:3.9.1'
    runtime 'com.microsoft.sqlserver:mssql-jdbc:6.1.0.jre8'
}

task generate {
    doLast {
        def writer = new StringWriter()
        def xml = new groovy.xml.MarkupBuilder(writer)
                .configuration('xmlns': 
'http://www.jooq.org/xsd/jooq-codegen-3.9.0.xsd') {
            jdbc() {
                driver('com.microsoft.sqlserver.jdbc.SQLServerDriver')
                
url('jdbc:sqlserver://mercury:1433;databaseName=nodal_nyiso')
                user('nodal')
                password('')
            }
            generator() {
                database() {
                    name('org.jooq.util.sqlserver.SQLServerDatabase')
                    inputCatalog('nodal_nyiso')
                    inputSchema('dbo')
                    outputSchema('dbo')
                    dateAsTimestamp true
                    includes('.*')
                    excludes('')
                }

                generate([:]) {
                    pojos true
                    daos true
                }
                target() {
                    packageName('com.marsdev.mars.service.nyiso.gen')
                    directory('src/main/java')
                }
            }
        }

        org.jooq.util.GenerationTool.generate(
                javax.xml.bind.JAXB.unmarshal(new 
StringReader(writer.toString()), org.jooq.util.jaxb.Configuration.class)
        )
    }
}

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to