> If you run Gradle with -d you get the Ivy debug output. I have no
> idea what is going on. I can use Gradle without network connections.
> What happens if you build Gradle without network connection on your
> machine?
Here's the full debug log (BTW: the build is successful, but takes a long
time):
10:10:20.195 [main] DEBUG org.gradle.Main - gradle.home= /usr/share/gradle
10:10:20.198 [main] DEBUG org.gradle.Main - Project dir: /...
10:10:20.198 [main] DEBUG org.gradle.Main - Gradle user home: /.../.gradle
Buildfilename: build.gradle
10:10:20.198 [main] DEBUG org.gradle.Main - Plugin properties:
/usr/share/gradle/plugin.properties
10:10:20.198 [main] DEBUG org.gradle.Main - Default imports file:
/usr/share/gradle/gradle-imports
10:10:20.434 [main] DEBUG o.g.a.i.project.PluginRegistry - Checking file=
/usr/share/gradle/plugin.properties
10:11:56.126 [main] DEBUG o.g.i.DefaultGradlePropertiesLoader - Found env
project properties: []
10:11:56.126 [main] DEBUG o.g.i.DefaultGradlePropertiesLoader - Found system
project properties: []
10:11:56.132 [main] DEBUG o.g.initialization.SettingsProcessor - Set build
resolver dir to: /.../.gradle/build-resolver
10:11:56.297 [main] DEBUG o.g.initialization.SettingsProcessor - Set build
resolver dir to: /.../.gradle/build-resolver
10:11:56.302 [main] DEBUG o.g.initialization.SettingsProcessor - Timing:
Processing settings took: 0.176 secs
10:11:56.302 [main] DEBUG o.g.i.BuildSourceBuilder - Starting to build the
build sources.
10:11:56.302 [main] DEBUG o.g.i.BuildSourceBuilder - Build source dir does
not exists!. We leave.
10:11:56.302 [main] DEBUG o.g.initialization.DefaultSettings - Build src
dependency: null
No build sources found.
:: loading settings :: url =
jar:file:/usr/share/gradle/lib/ivy-2.0.0.cr1_20080911151837.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: org.gradle#build;SNAPSHOT
confs: [build]
:: resolution report :: resolve 56ms :: artifacts dl 0ms
:: modules in use:
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| build | 0 | 0 | 0 | 0 || 0 | 0 |
---------------------------------------------------------------------
10:11:56.665 [main] DEBUG o.g.a.i.d.DefaultDependencyResolver - Timing: Ivy
resolve took 0.072 secs
10:11:56.666 [main] DEBUG o.g.a.i.d.Report2Classpath - using internal report
instance to get artifacts list
10:11:56.667 [main] DEBUG o.g.a.i.d.DefaultDependencyResolver - Timing:
Complete resolve took 0.073 secs
10:11:56.698 [main] DEBUG org.gradle.util.GradleUtil - Found tools jar in:
/usr/lib/jvm/java-6-sun-1.6.0.07/lib/tools.jar
10:11:56.698 [main] DEBUG o.g.initialization.DefaultSettings - Adding to
classpath: [/usr/lib/jvm/java-6-sun-1.6.0.07/lib/tools.jar]
Adding to classpath: /usr/lib/jvm/java-6-sun-1.6.0.07/lib/tools.jar
++ Loading Project objects
10:11:56.701 [main] DEBUG o.g.initialization.ProjectsLoader - Creating the
projects and evaluating the project files!
10:11:56.701 [main] DEBUG o.g.initialization.ProjectsLoader - Adding
external properties: []
10:11:56.702 [main] DEBUG o.g.initialization.ProjectsLoader - Looking for
system project properties
10:11:56.706 [main] DEBUG o.g.initialization.ProjectsLoader - Looking for
project properties from: /.../gradle.properties
10:11:56.708 [main] DEBUG o.g.initialization.ProjectsLoader - project
property file does not exists. We continue!
10:11:56.708 [main] DEBUG o.g.initialization.ProjectsLoader - Timing:
Loading projects took: 0.0070 secs
++ Configuring Project objects
10:11:56.742 [main] DEBUG o.g.g.scripts.DefaultScriptHandler - Timing:
Loading script from cache took: 0.021 secs
10:11:56.768 [main] DEBUG o.g.g.s.DefaultProjectScriptMetaData - Project: :
Method project not found in script! Delegating to project.
10:11:56.769 [main] DEBUG o.g.g.s.DefaultProjectScriptMetaData - Project: :
Method project not found in script! Delegating to project.
10:11:56.770 [main] DEBUG o.g.g.s.DefaultProjectScriptMetaData - Project: :
Method project not found in script! Delegating to project.
10:11:56.771 [main] DEBUG o.g.g.s.DefaultProjectScriptMetaData - Project: :
Method customer not found in script! Delegating to project.
10:11:56.772 [main] DEBUG o.g.g.s.DefaultProjectScriptMetaData - Project: :
Method project not found in script! Delegating to project.
10:11:56.775 [main] DEBUG o.g.g.s.DefaultProjectScriptMetaData - Project: :
Method name not found in script! Delegating to project.
10:11:56.775 [main] DEBUG o.g.g.s.DefaultProjectScriptMetaData - Project: :
Method project not found in script! Delegating to project.
10:11:56.778 [main] DEBUG o.g.g.s.DefaultProjectScriptMetaData - Project: :
Method project not found in script! Delegating to project.
10:11:56.778 [main] DEBUG o.g.g.s.DefaultProjectScriptMetaData - Project: :
Method usePlugin not found in script! Delegating to project.
10:11:57.047 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: []
10:11:57.052 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: []
10:11:57.063 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: []
10:11:57.068 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: [init]
10:11:57.125 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: [resources]
10:11:57.230 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: [compile]
10:11:57.232 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: [testResources]
10:11:57.308 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: [testCompile]
10:11:57.313 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: [test]
10:11:57.379 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: []
10:11:57.400 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: [libs]
10:11:57.403 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: [uploadLibs]
10:11:57.404 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: [dists]
10:11:57.404 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: []
10:11:57.433 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: []
10:11:57.437 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: []
10:11:57.462 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: []
10:11:57.481 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: []
10:11:57.491 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: []
10:11:57.512 [main] DEBUG o.g.g.s.DefaultProjectScriptMetaData - Project: :
Method project not found in script! Delegating to project.
10:12:28.476 [main] DEBUG o.g.api.internal.project.TaskFactory - Adding
dependencies: [:uploadLibs]
1
...
Gradle seems to try to resolve something, although the build source
directory was not found - it takes nearly a minute. Looking at the source I
found code mentioning org.gradle#build;SNAPSHOT in Settings.java and
BuildSourceBuilder.java (but didn't analyze further).
Also, some configuration at the end of log takes another 30 seconds (with
network connectivity it's nearly nothing). What is happening?
> How would you set up Ivy for this?
See my previous mail on how to set up the resolver to use the .gradle/cache.
This is easy, if no resolver is configured - just add the .gradle/cache
resolver.
However, I'm not sure how to reliably find out, if a repository is available
or not. We just use FileSystemResolvers, so we can do a new
File(...).exists() on the base path of the repository. For other resolvers
it would be different - but maybe ivy has a method for it?
--
View this message in context:
http://www.nabble.com/Build-without-repository--tp20317789p20318996.html
Sent from the gradle-user mailing list archive at Nabble.com.