Uuuurrrrr......

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Uuuurrrrr......

Russel Winder-2
I have just installed HEAD (r602) from Subversion:

|> gradle --version
No modern compiler.
Gradle 0.2-080616081509+0000
Gradle buildtime: Monday, 16 June 2008 08:15:09 o'clock GMT
Groovy 1.5.5
Java 1.6.0_06
JVM 10.0-b22
JVM Vendor: Sun Microsystems Inc.
OS Name: Linux

|>

Then I try to do use Gradle:

|> gradle
No modern compiler.
Recursive: true
Buildfilename: build.gradle

Build exits abnormally. No task names are specified!
|>

I guess there is already an issue for setting up a default target?  But
why say the buildfilename is build.gradle when it is gradlefile?


|> gradle test
No modern compiler.
Recursive: true
Buildfilename: build.gradle
No build sources found.
:: loading settings :: url =
jar:file:/home/users/russel/lib/Java/gradle/lib/ivy-2.0.0.beta2_20080305165542.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: org.gradle#build;SNAPSHOT
        confs: [build]
++++ Starting build for primary task: test
++ Loading Project objects
++ Configuring Project objects
No project file available. Using empty script!
Timing: Parsing the build script took 0.009 secs
Timing: Running the build script took 0.001 secs
Timing: Missing calls took 0.002
Project=: evaluated.

Build aborted anormally.  Run with -s option to get stacktrace. Run with
-d option to get all debug info including stacktrace. Run (additionally)
with -f option to get the full (very verbose) stacktrace
Exception: org.gradle.api.UnknownTaskException: Task(s) ["test"] are
unknown!

Total time: 1 seconds
Exit with error!
|>

So what are the targets, and how do I find out what they are?

--
Russel.
====================================================
Dr Russel Winder                 Partner

Concertant LLP                   t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,              f: +44 8700 516 084
London SW11 1EN, UK.             m: +44 7770 465 077

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Uuuurrrrr......

hans_d
Administrator

On Jun 16, 2008, at 10:22 AM, Russel Winder wrote:

> I have just installed HEAD (r602) from Subversion:
>
> |> gradle --version
> No modern compiler.
> Gradle 0.2-080616081509+0000
> Gradle buildtime: Monday, 16 June 2008 08:15:09 o'clock GMT
> Groovy 1.5.5
> Java 1.6.0_06
> JVM 10.0-b22
> JVM Vendor: Sun Microsystems Inc.
> OS Name: Linux
>
> |>
>
> Then I try to do use Gradle:
>
> |> gradle
> No modern compiler.
> Recursive: true
> Buildfilename: build.gradle
>
> Build exits abnormally. No task names are specified!
> |>
>
> I guess there is already an issue for setting up a default target?  
> But
> why say the buildfilename is build.gradle when it is gradlefile?

Because we have changed the conventions:

http://jira.codehaus.org/browse/GRADLE-113

There will be a release today. The user's guide will be updated.

- Hans

>
>
> |> gradle test
> No modern compiler.
> Recursive: true
> Buildfilename: build.gradle
> No build sources found.
> :: loading settings :: url =
> jar:file:/home/users/russel/lib/Java/gradle/lib/
> ivy-2.0.0.beta2_20080305165542.jar!/org/apache/ivy/core/settings/
> ivysettings.xml
> :: resolving dependencies :: org.gradle#build;SNAPSHOT
> confs: [build]
> ++++ Starting build for primary task: test
> ++ Loading Project objects
> ++ Configuring Project objects
> No project file available. Using empty script!
> Timing: Parsing the build script took 0.009 secs
> Timing: Running the build script took 0.001 secs
> Timing: Missing calls took 0.002
> Project=: evaluated.
>
> Build aborted anormally.  Run with -s option to get stacktrace. Run  
> with
> -d option to get all debug info including stacktrace. Run  
> (additionally)
> with -f option to get the full (very verbose) stacktrace
> Exception: org.gradle.api.UnknownTaskException: Task(s) ["test"] are
> unknown!
>
> Total time: 1 seconds
> Exit with error!
> |>
>
> So what are the targets, and how do I find out what they are?
>
> --
> Russel.
> ====================================================
> Dr Russel Winder                 Partner
>
> Concertant LLP                   t: +44 20 7585 2200, +44 20 7193 9203
> 41 Buckmaster Road,              f: +44 8700 516 084
> London SW11 1EN, UK.             m: +44 7770 465 077

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Uuuurrrrr......

Russel Winder-2
Hans,

On Mon, 2008-06-16 at 10:27 +0200, Hans Dockter wrote:

> > why say the buildfilename is build.gradle when it is gradlefile?
>
> Because we have changed the conventions:
>
> http://jira.codehaus.org/browse/GRADLE-113
>
> There will be a release today. The user's guide will be updated.

Aha, you finally agree with my proposal for naming ;-)

OK, with a rename and the build.gradle file:

        type = 'jar'
        group = 'org.devjavasoft'
        version = '3.1.0'

        usePlugin ( 'java' )
        dependencies {
          addMavenRepo ( )
          testCompile ( 'org.testng:testng:5.8:jdk15' )
        }
       
        sourceCompatibility = 1.6
        targetCompatibility = 1.6

I get the output:

|> gradle test
No modern compiler.
Recursive: true
Buildfilename: build.gradle
No build sources found.
:: loading settings :: url =
jar:file:/home/users/russel/lib/Java/gradle/lib/ivy-2.0.0.beta2_20080305165542.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: org.gradle#build;SNAPSHOT
        confs: [build]
++++ Starting build for primary task: test
++ Loading Project objects
++ Configuring Project objects
Timing: Parsing the build script took 0.237 secs
Timing: Running the build script took 1.074 secs
Timing: Missing calls took 0.008
Project=: evaluated.
++ Executing: test Recursive:true Startproject: :
Executing: :init
Executing: :resources
Executing: :compile
:: resolving dependencies :: org.devjavasoft#ADS;3.1.0
        confs: [compile]
    [mkdir] Created
dir: /home/users/russel/Repositories/Bazaar/Masters/ADS/build/classes
    [javac] Compiling 115 source files
to /home/users/russel/Repositories/Bazaar/Masters/ADS/build/classes
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Executing: :testResources
Executing: :testCompile
:: resolving dependencies :: org.devjavasoft#ADS;3.1.0
        confs: [testCompile]
        found org.testng#testng;5.8 in MavenRepo_poms

:: problems summary ::
:::: WARNINGS
                [NOT FOUND  ] org.testng#testng;5.8!testng.jar (397ms)

        ==== MavenRepo_poms: tried

        ==== MavenRepo_jars: tried

          http://repo1.maven.org/maven2//org/testng/testng/5.8/testng-5.8.jar


:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

Build aborted anormally.  Run with -s option to get stacktrace. Run with
-d option to get all debug info including stacktrace. Run (additionally)
with -f option to get the full (very verbose) stacktrace
Exception: org.gradle.api.GradleScriptException:
org.gradle.api.GradleException: Not all dependencies could be resolved!
Buildscript=build.gradle No line info available from stacktrace.

Total time: 9 seconds
Exit with error!
520 balin:~/Repositories/Bazaar/Masters/ADS
|>


So I guess I am missing something else as well?

--
Russel.
====================================================
Dr Russel Winder                 Partner

Concertant LLP                   t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,              f: +44 8700 516 084
London SW11 1EN, UK.             m: +44 7770 465 077

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Uuuurrrrr......

hans_d
Administrator
Hi Russel,

On Jun 16, 2008, at 10:34 AM, Russel Winder wrote:

> Hans,
>
> On Mon, 2008-06-16 at 10:27 +0200, Hans Dockter wrote:
>
>>> why say the buildfilename is build.gradle when it is gradlefile?
>>
>> Because we have changed the conventions:
>>
>> http://jira.codehaus.org/browse/GRADLE-113
>>
>> There will be a release today. The user's guide will be updated.
>
> Aha, you finally agree with my proposal for naming ;-)

May be subconsciously ;)

The current implementation is based on a proposal from Bert van Brakel:

http://www.nabble.com/gradlefile-%27.groovy%27-file-extension- 
to17000897.html#a17000897

>
> OK, with a rename and the build.gradle file:
>
>         type = 'jar'
>         group = 'org.devjavasoft'
>         version = '3.1.0'
>
>         usePlugin ( 'java' )
>         dependencies {
>           addMavenRepo ( )
>           testCompile ( 'org.testng:testng:5.8:jdk15' )
>         }
>
>         sourceCompatibility = 1.6
>         targetCompatibility = 1.6
>
> I get the output:
>
> |> gradle test
> No modern compiler.
> Recursive: true
> Buildfilename: build.gradle
> No build sources found.
> :: loading settings :: url =
> jar:file:/home/users/russel/lib/Java/gradle/lib/
> ivy-2.0.0.beta2_20080305165542.jar!/org/apache/ivy/core/settings/
> ivysettings.xml
> :: resolving dependencies :: org.gradle#build;SNAPSHOT
> confs: [build]
> ++++ Starting build for primary task: test
> ++ Loading Project objects
> ++ Configuring Project objects
> Timing: Parsing the build script took 0.237 secs
> Timing: Running the build script took 1.074 secs
> Timing: Missing calls took 0.008
> Project=: evaluated.
> ++ Executing: test Recursive:true Startproject: :
> Executing: :init
> Executing: :resources
> Executing: :compile
> :: resolving dependencies :: org.devjavasoft#ADS;3.1.0
> confs: [compile]
>     [mkdir] Created
> dir: /home/users/russel/Repositories/Bazaar/Masters/ADS/build/classes
>     [javac] Compiling 115 source files
> to /home/users/russel/Repositories/Bazaar/Masters/ADS/build/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Executing: :testResources
> Executing: :testCompile
> :: resolving dependencies :: org.devjavasoft#ADS;3.1.0
> confs: [testCompile]
> found org.testng#testng;5.8 in MavenRepo_poms
>
> :: problems summary ::
> :::: WARNINGS
> [NOT FOUND  ] org.testng#testng;5.8!testng.jar (397ms)
>
> ==== MavenRepo_poms: tried
>
> ==== MavenRepo_jars: tried
>
>  http://repo1.maven.org/maven2//org/testng/testng/5.8/testng-5.8.jar
>
>
> :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>
> Build aborted anormally.  Run with -s option to get stacktrace. Run  
> with
> -d option to get all debug info including stacktrace. Run  
> (additionally)
> with -f option to get the full (very verbose) stacktrace
> Exception: org.gradle.api.GradleScriptException:
> org.gradle.api.GradleException: Not all dependencies could be  
> resolved!
> Buildscript=build.gradle No line info available from stacktrace.
>
> Total time: 9 seconds
> Exit with error!
> 520 balin:~/Repositories/Bazaar/Masters/ADS
> |>
>
>
> So I guess I am missing something else as well?

Can't reproduce. With trunk this works for me. I have commited some  
stuff yesterday, but not related to classifiers.

- Hans

>
> --
> Russel.
> ====================================================
> Dr Russel Winder                 Partner
>
> Concertant LLP                   t: +44 20 7585 2200, +44 20 7193 9203
> 41 Buckmaster Road,              f: +44 8700 516 084
> London SW11 1EN, UK.             m: +44 7770 465 077

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Uuuurrrrr......

Russel Winder-2
Hans,

On Tue, 2008-06-17 at 09:21 +0200, Hans Dockter wrote:

> On Jun 16, 2008, at 10:34 AM, Russel Winder wrote:
> > On Mon, 2008-06-16 at 10:27 +0200, Hans Dockter wrote:
> >
> >>> why say the buildfilename is build.gradle when it is gradlefile?
> >>
> >> Because we have changed the conventions:
> >>
> >> http://jira.codehaus.org/browse/GRADLE-113
> >>
> >> There will be a release today. The user's guide will be updated.
> >
> > Aha, you finally agree with my proposal for naming ;-)
>
> May be subconsciously ;)
>
> The current implementation is based on a proposal from Bert van Brakel:
>
> http://www.nabble.com/gradlefile-%27.groovy%27-file-extension- 
> to17000897.html#a17000897
Which is the same proposal (build.gradle) I made right at the start --
but in a private email so there in no evidence in the mail logs :-)

> >
> > OK, with a rename and the build.gradle file:
> >
> >         type = 'jar'
> >         group = 'org.devjavasoft'
> >         version = '3.1.0'
> >
> >         usePlugin ( 'java' )
> >         dependencies {
> >           addMavenRepo ( )
> >           testCompile ( 'org.testng:testng:5.8:jdk15' )
> >         }
> >
> >         sourceCompatibility = 1.6
> >         targetCompatibility = 1.6
> >
> > I get the output:
> >
> > |> gradle test
> > No modern compiler.
> > Recursive: true
> > Buildfilename: build.gradle
> > No build sources found.
> > :: loading settings :: url =
> > jar:file:/home/users/russel/lib/Java/gradle/lib/
> > ivy-2.0.0.beta2_20080305165542.jar!/org/apache/ivy/core/settings/
> > ivysettings.xml
> > :: resolving dependencies :: org.gradle#build;SNAPSHOT
> > confs: [build]
> > ++++ Starting build for primary task: test
> > ++ Loading Project objects
> > ++ Configuring Project objects
> > Timing: Parsing the build script took 0.237 secs
> > Timing: Running the build script took 1.074 secs
> > Timing: Missing calls took 0.008
> > Project=: evaluated.
> > ++ Executing: test Recursive:true Startproject: :
> > Executing: :init
> > Executing: :resources
> > Executing: :compile
> > :: resolving dependencies :: org.devjavasoft#ADS;3.1.0
> > confs: [compile]
> >     [mkdir] Created
> > dir: /home/users/russel/Repositories/Bazaar/Masters/ADS/build/classes
> >     [javac] Compiling 115 source files
> > to /home/users/russel/Repositories/Bazaar/Masters/ADS/build/classes
> > Note: Some input files use unchecked or unsafe operations.
> > Note: Recompile with -Xlint:unchecked for details.
> > Executing: :testResources
> > Executing: :testCompile
> > :: resolving dependencies :: org.devjavasoft#ADS;3.1.0
> > confs: [testCompile]
> > found org.testng#testng;5.8 in MavenRepo_poms
> >
> > :: problems summary ::
> > :::: WARNINGS
> > [NOT FOUND  ] org.testng#testng;5.8!testng.jar (397ms)
> >
> > ==== MavenRepo_poms: tried
> >
> > ==== MavenRepo_jars: tried
> >
> >  http://repo1.maven.org/maven2//org/testng/testng/5.8/testng-5.8.jar
> >
> >
> > :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> >
> > Build aborted anormally.  Run with -s option to get stacktrace. Run  
> > with
> > -d option to get all debug info including stacktrace. Run  
> > (additionally)
> > with -f option to get the full (very verbose) stacktrace
> > Exception: org.gradle.api.GradleScriptException:
> > org.gradle.api.GradleException: Not all dependencies could be  
> > resolved!
> > Buildscript=build.gradle No line info available from stacktrace.
> >
> > Total time: 9 seconds
> > Exit with error!
> > 520 balin:~/Repositories/Bazaar/Masters/ADS
> > |>
> >
> >
> > So I guess I am missing something else as well?
>
> Can't reproduce. With trunk this works for me. I have commited some  
> stuff yesterday, but not related to classifiers.
The problem here must have been in the ~/.gradle/cache -- I tried with
TestNG 5.7 and it worked fine, I then deleted the ~/.gradle/cache and
TestNG 5.8 worked fine.  So there appears to be a caching problem --
information in the cache is being believed even after changes in the
build.gradle file.

--
Russel.
====================================================
Dr Russel Winder                 Partner

Concertant LLP                   t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,              f: +44 8700 516 084
London SW11 1EN, UK.             m: +44 7770 465 077

signature.asc (196 bytes) Download Attachment