Hi All,
I am new to Gradle I am trying to convert my Ant scripts into Gradle script , my project structure is bit different than the gradle project structure ,So I have used sourceSets to build my java code please find more reference below.
my build.gradle file is like below
allprojects {
repositories {
maven {
url '${url}'
credentials {
username = "${user}"
password = "${password}"
}
}
}
}
project(':axisUtility'){
apply plugin: 'java'
sourceSets {
main {
java {
java.srcDirs = ['/']
}
resources {
srcDirs = ['/']
include '*.properties'
}
}
}
dependencies {
compile(group: 'commons-logging', name: 'commons-logging', version: '1.1.2')
compile(group: 'axis', name: 'axis', version: '1.4') {
exclude group:'org.apache.axis', module:'axis-saaj'
exclude group:'org.apache.axis', module:'axis-jaxrpc'
}
}
}
And the settings.gradle
include 'axisUtility'
gradle.properties
version=
sourceVersion=1.8
targetVersion=1.8
artifactory_user=test
artifactory_password=test
artifactory_contextUrl=<nexusurl>
I am facing below issue.
08:28:08.962 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Transitioning model element 'projectIdentifier' to state Discovered.
08:28:08.962 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Running model element 'proxyFactory' rule action AbstractProject.BasicServicesRules#proxyFactory
08:28:08.962 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Mutating proxyFactory using AbstractProject.BasicServicesRules#proxyFactory
08:28:08.962 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Transitioning model element 'proxyFactory' to state Discovered.
08:28:08.962 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Running model element 'schemaStore' rule action AbstractProject.BasicServicesRules#schemaStore
08:28:08.962 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Mutating schemaStore using AbstractProject.BasicServicesRules#schemaStore
08:28:08.962 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Transitioning model element 'schemaStore' to state Discovered.
08:28:08.962 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Running model element 'serviceRegistry' rule action Project.<init>.serviceRegistry()
08:28:08.962 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Mutating serviceRegistry using Project.<init>.serviceRegistry()
08:28:08.962 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Transitioning model element 'serviceRegistry' to state Discovered.
08:28:08.962 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Running model element 'sourceDirectorySetFactory' rule action AbstractProject.BasicServicesRules#sourceDirectorySetFactory
08:28:08.962 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Mutating sourceDirectorySetFactory using AbstractProject.BasicServicesRules#sourceDirectorySetFactory
08:28:08.962 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Transitioning model element 'sourceDirectorySetFactory' to state Discovered.
08:28:08.963 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Running model element 'structBindingsStore' rule action AbstractProject.BasicServicesRules#structBindingsStore
08:28:08.963 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Mutating structBindingsStore using AbstractProject.BasicServicesRules#structBindingsStore
08:28:08.963 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Transitioning model element 'structBindingsStore' to state Discovered.
08:28:08.963 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Running model element 'taskFactory' rule action AbstractProject.BasicServicesRules#taskFactory
08:28:08.963 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Mutating taskFactory using AbstractProject.BasicServicesRules#taskFactory
08:28:08.963 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Transitioning model element 'taskFactory' to state Discovered.
08:28:08.963 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Running model element 'typeConverter' rule action AbstractProject.BasicServicesRules#typeConverter
08:28:08.963 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Mutating typeConverter using AbstractProject.BasicServicesRules#typeConverter
08:28:08.963 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project :test - Transitioning model element 'typeConverter' to state Discovered.
08:28:08.985 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :axisUtility:compileJava (Thread[main,5,main]) started.
08:28:08.986 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :axisUtility:compileJava
08:28:08.988 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':axisUtility:compileJava'
> Building 0% > :axisUtility:compileJava
I am not moving ahead of the step compileJava , it’s in continues waiting state and after 30 min I am killing the task manually.
My Gradle version: 2.13 , OS: Linux 64bit,