GithubHelp home page GithubHelp logo

xcore-gradle-example's People

Contributors

ghillairet avatar szarnyasg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xcore-gradle-example's Issues

Gradle clean

The clean task should not execute the deletion in the configuration phase. Simple solution is to write

clean.doFirst {
    delete 'src/main/java-gen'
}

BTW, is that folder created at all? After a clean clone and build, I don't see it ... Maybe just remove it?

TL;DR

Neither << nor doLast { ... } are used, as one would commonly do in Gradle to move the code to the execution phase. Now the "clean" task is special, in that a simple delete calls the method on the wrong object (see http://stackoverflow.com/a/28044951/1037626). doLast works.

java.lang.SecurityException with gradle 4.8.1

Hi

The example is built fine using gradle 3.1. But I get the following error with gradle 4.8.1:
java.lang.SecurityException: class "org.eclipse.core.runtime.Plugin"'s signer information does not match signer information of other classes in the same package

Dependency trees (gradle dependencies) are almost identical for both gradle versions except guava versions:

Gradle 3.1 use newer version of guava:

+--- org.eclipse.xtext:org.eclipse.xtext.ecore:2.13.0
|    \--- org.eclipse.xtext:org.eclipse.xtext:2.13.0
|         +--- org.eclipse.xtext:org.eclipse.xtext.util:2.13.0
|         |    +--- org.eclipse.xtend:org.eclipse.xtend.lib:2.13.0
|         |    |    +--- org.eclipse.xtext:org.eclipse.xtext.xbase.lib:2.13.0
|         |    |    |    \--- com.google.guava:guava:[14.0,19) -> 18.0
|         |    |    \--- org.eclipse.xtend:org.eclipse.xtend.lib.macro:2.13.0
|         |    |         \--- org.eclipse.xtext:org.eclipse.xtext.xbase.lib:2.13.0 (*)
|         |    +--- log4j:log4j:1.2.16
|         |    +--- org.eclipse.emf:org.eclipse.emf.common:[2.10.1,3) -> 2.12.0
|         |    +--- org.eclipse.emf:org.eclipse.emf.ecore:[2.10.2,3) -> 2.12.0
|         |    \--- com.google.inject:guice:3.0 -> 4.0
|         |         +--- javax.inject:javax.inject:1
|         |         +--- aopalliance:aopalliance:1.0
|         |         \--- com.google.guava:guava:16.0.1 -> 18.0
|         +--- org.eclipse.xtend:org.eclipse.xtend.lib:2.13.0 (*)
|         +--- log4j:log4j:1.2.16
|         +--- org.eclipse.platform:org.eclipse.equinox.common:3.8.0
|         +--- org.eclipse.platform:org.eclipse.osgi:3.11.2
|         +--- org.eclipse.emf:org.eclipse.emf.common:[2.10.1,3) -> 2.12.0
|         +--- org.eclipse.emf:org.eclipse.emf.ecore.xmi:[2.10.2,3) -> 2.12.0
|         +--- com.google.inject:guice:3.0 -> 4.0 (*)
|         \--- org.antlr:antlr-runtime:3.2
\--- org.eclipse.emf:org.eclipse.emf.mwe2.runtime:+ -> 2.9.1.201705291010
     \--- com.google.inject:guice:3.0 -> 4.0 (*)

Gradle 4.8.1:

+--- org.eclipse.xtext:org.eclipse.xtext.ecore:2.13.0
|    \--- org.eclipse.xtext:org.eclipse.xtext:2.13.0
|         +--- org.eclipse.xtext:org.eclipse.xtext.util:2.13.0
|         |    +--- org.eclipse.xtend:org.eclipse.xtend.lib:2.13.0
|         |    |    +--- org.eclipse.xtext:org.eclipse.xtext.xbase.lib:2.13.0
|         |    |    |    \--- com.google.guava:guava:[14.0,19) -> 16.0.1
|         |    |    \--- org.eclipse.xtend:org.eclipse.xtend.lib.macro:2.13.0
|         |    |         \--- org.eclipse.xtext:org.eclipse.xtext.xbase.lib:2.13.0 (*)
|         |    +--- log4j:log4j:1.2.16
|         |    +--- org.eclipse.emf:org.eclipse.emf.common:[2.10.1,3) -> 2.12.0
|         |    +--- org.eclipse.emf:org.eclipse.emf.ecore:[2.10.2,3) -> 2.12.0
|         |    \--- com.google.inject:guice:3.0 -> 4.0
|         |         +--- javax.inject:javax.inject:1
|         |         +--- aopalliance:aopalliance:1.0
|         |         \--- com.google.guava:guava:16.0.1
|         +--- org.eclipse.xtend:org.eclipse.xtend.lib:2.13.0 (*)
|         +--- log4j:log4j:1.2.16
|         +--- org.eclipse.platform:org.eclipse.equinox.common:3.8.0
|         +--- org.eclipse.platform:org.eclipse.osgi:3.11.2
|         +--- org.eclipse.emf:org.eclipse.emf.common:[2.10.1,3) -> 2.12.0
|         +--- org.eclipse.emf:org.eclipse.emf.ecore.xmi:[2.10.2,3) -> 2.12.0
|         +--- com.google.inject:guice:3.0 -> 4.0 (*)
|         \--- org.antlr:antlr-runtime:3.2
\--- org.eclipse.emf:org.eclipse.emf.mwe2.runtime:+ -> 2.9.1.201705291010
     \--- com.google.inject:guice:3.0 -> 4.0 (*)

I added the following to build.gradle:

configurations.all {
    resolutionStrategy { 
        force 'com.google.guava:guava:18.0'
    }
}

Dependency trees are identical now. But I still get the same error with gradle 4.8.1.

Could you suggest a solution?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.