GithubHelp home page GithubHelp logo

Comments (11)

pledbrook avatar pledbrook commented on July 17, 2024

I just pulled master and ran the build successfully. I don't understand why the Groovy compilation is failing here. StackTraceUtils has been around since Groovy 1.5, so for some reason Groovy isn't in the compiler path when you run the build.

Can't think what the issue might be right now 😦

from example-ratpack-gradle-groovy-app.

ldaley avatar ldaley commented on July 17, 2024

Can't reproduce either.

Try running ./gradlew run --refresh-dependencies

from example-ratpack-gradle-groovy-app.

ldaley avatar ldaley commented on July 17, 2024

Can you paste the output of ./gradlew dependencies here please.

from example-ratpack-gradle-groovy-app.

msgilligan avatar msgilligan commented on July 17, 2024

Running ./gradlew run --refresh-dependencies didn't change the error output.

Here's the output of ./gradlew dependencies:

The groovy configuration has been deprecated and is scheduled to be removed in Gradle 2.0. Typically, usages of 'groovy' can simply be replaced with 'compile'. In some cases, it may be necessary to additionally configure the 'groovyClasspath' property of GroovyCompile and Groovydoc tasks.
:dependencies

------------------------------------------------------------
Root project
------------------------------------------------------------

archives - Configuration for archive artifacts.
No dependencies

compile - Compile classpath for source set 'main'.
+--- org.ratpack-framework:ratpack-core:0.9.0-SNAPSHOT
\--- org.ratpack-framework:ratpack-groovy:0.9.0-SNAPSHOT

default - Configuration for default artifacts.
+--- org.ratpack-framework:ratpack-core:0.9.0-SNAPSHOT
\--- org.ratpack-framework:ratpack-groovy:0.9.0-SNAPSHOT

groovy - The Groovy libraries to be used for this Groovy project. (Deprecated)
\--- org.ratpack-framework:ratpack-groovy:0.9.0-SNAPSHOT

runtime - Runtime classpath for source set 'main'.
+--- org.ratpack-framework:ratpack-core:0.9.0-SNAPSHOT
\--- org.ratpack-framework:ratpack-groovy:0.9.0-SNAPSHOT

springloaded
\--- org.springsource.springloaded:springloaded-core:1.1.1

testCompile - Compile classpath for source set 'test'.
+--- org.ratpack-framework:ratpack-core:0.9.0-SNAPSHOT
\--- org.ratpack-framework:ratpack-groovy:0.9.0-SNAPSHOT

testRuntime - Runtime classpath for source set 'test'.
+--- org.ratpack-framework:ratpack-core:0.9.0-SNAPSHOT
\--- org.ratpack-framework:ratpack-groovy:0.9.0-SNAPSHOT

BUILD SUCCESSFUL

Total time: 3.662 secs

from example-ratpack-gradle-groovy-app.

msgilligan avatar msgilligan commented on July 17, 2024

Adding the following to build.gradle makes ./gradlew run work correctly:

apply plugin: 'java'

dependencies {
  compile 'org.codehaus.groovy:groovy-all:2.1.3'
  compile 'org.ratpack-framework:ratpack-core:0.9.0-SNAPSHOT'
  compile 'org.ratpack-framework:ratpack-groovy:0.9.0-SNAPSHOT'
  compile 'org.ratpack-framework:ratpack-guice:0.9.0-SNAPSHOT'
  compile 'org.ratpack-framework:ratpack-session:0.9.0-SNAPSHOT'
  compile 'io.netty:netty-codec-http:4.0.0.CR2'
  compile 'org.javassist:javassist:3.17.1-GA'

  compile 'com.google.guava:guava:13.0.1'
  compile 'com.google.inject:guice:3.0', {
    exclude group: 'org.sonatype.sisu.inject'
  }
}

Shouldn't the ratpack-groovy plugin be doing all that stuff automatically?

from example-ratpack-gradle-groovy-app.

ldaley avatar ldaley commented on July 17, 2024

You've somehow disabled transitive dependency resolution globally on your machine. Do you have an init script?

from example-ratpack-gradle-groovy-app.

msgilligan avatar msgilligan commented on July 17, 2024

A Gradle init script? I don't think so. How would I check?

Note: both @michaelneale and I are having this problem.

from example-ratpack-gradle-groovy-app.

msgilligan avatar msgilligan commented on July 17, 2024

If I comment out the compile line for ratpack-core, it still works, so I assume that at least one dependency is now being pulled in transitively.

Also, commenting out the apply plugin: 'java' breaks the build ("compile() method undefined", or something like that.)

from example-ratpack-gradle-groovy-app.

ldaley avatar ldaley commented on July 17, 2024

Ratpack-core is not a transitive. Your dependencies task output is missing all the transitives.

This is so strange. Thinking on it…

from example-ratpack-gradle-groovy-app.

msgilligan avatar msgilligan commented on July 17, 2024

I'll email you my IM info and we can screen share or something if you like. I'm using Gradle through GVM, by the way.

from example-ratpack-gradle-groovy-app.

msgilligan avatar msgilligan commented on July 17, 2024

Confirmed fixed by this commit: ratpack/ratpack@97f7e05

from example-ratpack-gradle-groovy-app.

Related Issues (6)

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.