Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 901F3200CDA for ; Fri, 21 Jul 2017 05:22:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8D03716C88C; Fri, 21 Jul 2017 03:22:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D329616C884 for ; Fri, 21 Jul 2017 05:22:07 +0200 (CEST) Received: (qmail 99106 invoked by uid 500); 21 Jul 2017 03:22:06 -0000 Mailing-List: contact notifications-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list notifications@groovy.apache.org Received: (qmail 99097 invoked by uid 99); 21 Jul 2017 03:22:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jul 2017 03:22:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3833C1A013B for ; Fri, 21 Jul 2017 03:22:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id lsZ9Whuk_wbB for ; Fri, 21 Jul 2017 03:22:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2E5B260CD9 for ; Fri, 21 Jul 2017 03:22:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B7861E0D3C for ; Fri, 21 Jul 2017 03:22:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 308A921EDE for ; Fri, 21 Jul 2017 03:22:00 +0000 (UTC) Date: Fri, 21 Jul 2017 03:22:00 +0000 (UTC) From: "Feng Yu (JIRA)" To: notifications@groovy.apache.org Message-ID: In-Reply-To: References: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 21 Jul 2017 03:22:08 -0000 [ 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)