Comments (11)
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.
Can't reproduce either.
Try running ./gradlew run --refresh-dependencies
from example-ratpack-gradle-groovy-app.
Can you paste the output of ./gradlew dependencies
here please.
from example-ratpack-gradle-groovy-app.
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.
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.
You've somehow disabled transitive dependency resolution globally on your machine. Do you have an init script?
from example-ratpack-gradle-groovy-app.
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.
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.
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.
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.
Confirmed fixed by this commit: ratpack/ratpack@97f7e05
from example-ratpack-gradle-groovy-app.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from example-ratpack-gradle-groovy-app.