groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Feng Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-8173) General error during class generation: io.vertx.groovy.ext.auth.VertxPropertiesModuleFactory cannot be cast to org.codehaus.groovy.runtime.m12n.PropertiesModuleFactory
Date Fri, 21 Jul 2017 03:22:00 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-8173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16095711#comment-16095711
] 

Feng Yu commented on GROOVY-8173:
---------------------------------

I have the same issue when building with gradle. But 3.4.1 works very well. Here is my build.gradle:

{code}
buildscript {
    repositories {
        mavenLocal()
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0'
    }
}

apply plugin: 'groovy'
apply plugin: 'com.github.johnrengelman.shadow'

if (!JavaVersion.current().java8Compatible) {
    throw new IllegalStateException('''Please install Java 8!'''.stripMargin())
}

sourceSets.main.java.srcDirs = []
sourceSets.main.groovy.srcDirs += ["src/main/java"]

repositories {
    mavenLocal()
    jcenter()
    mavenCentral()
}

dependencies {
    compile "org.codehaus.groovy:groovy-all:${GROOVY_VER}"
    compile "io.vertx:vertx-core:${VERTX_VER}"
    compile "io.vertx:vertx-web:${VERTX_VER}"
    compile "io.vertx:vertx-auth-jwt:${VERTX_VER}"
    compile "io.vertx:vertx-circuit-breaker:${VERTX_VER}"
    compile "io.vertx:vertx-ignite:${VERTX_VER}"
    compile "ch.qos.logback:logback-classic:${LOGBACK_VER}"

    testCompile "org.spockframework:spock-core:${SPOCK_VER}"
}

version = '0.1'

shadowJar {
    classifier = 'fat'
    baseName = 'dgate'
    manifest {
        attributes 'Main-Class': 'top.dteam.dgate.Launcher'
        attributes 'Main-Verticle': 'top.dteam.dgate.MainVerticle'
    }
    mergeServiceFiles {
        include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
    }
}
{code}

And here is my gradle.properties:
{code}
GROOVY_VER=2.4.12
SPOCK_VER=1.1-groovy-2.4
VERTX_VER=3.4.2
LOGBACK_VER=1.2.3
{code}

> General error during class generation: io.vertx.groovy.ext.auth.VertxPropertiesModuleFactory
cannot be cast to org.codehaus.groovy.runtime.m12n.PropertiesModuleFactory
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-8173
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8173
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.5.0-alpha-1, 2.4.11
>         Environment: vert.x core: 3.4.2-SNAPSHOT 
> vert.x sql common: 3.4.2-SNAPSHOT 
> groovy: 2.4.11, 2.5.0-SNAPSHOT
>            Reporter: Cazacu Mihai
>
> Please take a look over  [this|https://github.com/vert-x3/vertx-lang-groovy/pull/49#issuecomment-297721787]
issue. It seems that it is related to GROOVY-8158. Thanks!



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message