Skip to content

Instantly share code, notes, and snippets.

@gstech99
gstech99 / gist:ce995053b568c4961d60
Created Aug 29, 2014
Gradle 2.0 helloWorld (8/29/14) laptop
View gist:ce995053b568c4961d60
task helloWorld << {
println 'hello, world!'
}
C:\DATA\Gradle>gradle helloWorld
:helloWorld
hello, world!
@gstech99
gstech99 / gist:a1f5b4dc37a5737a30db
Created Aug 29, 2014
Gradle 2.0 version (8/29/14) laptop
View gist:a1f5b4dc37a5737a30db
C:\DATA\Gradle>gradle -v
------------------------------------------------------------
Gradle 2.0
------------------------------------------------------------
Build time: 2014-07-01 07:45:34 UTC
Build number: none
Revision: b6ead6fa452dfdadec484059191eb641d817226c
@gstech99
gstech99 / gist:38f8ceca43f783186a2e
Created Aug 29, 2014
Gradle 1.0 good helloWorld (8/29/14) laptop
View gist:38f8ceca43f783186a2e
task helloWorld << {
println 'hello, world!'
}
C:\DATA\Gradle>gradle helloWorld --stacktrace
:helloWorld
hello, world!
BUILD SUCCESSFUL
@gstech99
gstech99 / gist:8394d2b4bd00ba422892
Created Aug 29, 2014
Gradle 1.0 version info (8/29/14) laptop
View gist:8394d2b4bd00ba422892
C:\DATA\Gradle>gradle -v
------------------------------------------------------------
Gradle 1.0
------------------------------------------------------------
Gradle build time: Tuesday, June 12, 2012 12:56:21 AM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Ivy: 2.2.0
@gstech99
gstech99 / 0_reuse_code.js
Created Aug 28, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@gstech99
gstech99 / gist:11b144db0b21a8159b63
Last active Aug 29, 2015
Gradle 2.0 problem 1: gradle -q helloWorld --stacktrace (8/28/14)
View gist:11b144db0b21a8159b63
C:\DATA\Gradle>gradle -q helloWorld --stacktrace
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'Gradle'.
> Could not open buildscript class cache for build file 'C:\DATA\Gradle\build.gradle' (C:\Users\George\.gradle\caches\2.0\
scripts\build_5jvridq7k28qgmlao7pte82rfs\ProjectScript\buildscript).
> java.net.SocketException: Unrecognized Windows Sockets error: 87: Socket creation failed