plugins - Gradle: illegal repetition error -


just started use artifactory manage libraries use..therefore had have artifactory plugin. used screencast tutorial @ http://www.jfrog.com/confluence/display/rtf/gradle+artifactory+plugin , added buildscript follows download plugin..

buildscript {   repositories {       maven { url 'http://localhost:8081/artifactory/plugins-release'           credentials {              username = "${artifactory_user}"              password = "${artifactory_password}"          }      }  }       dependencies {           classpath (             group: 'org.jfrog.buildinfo', name:                                   'build-info-extractor-gradle', version: '2.1.0'         )      }  

}

then in gradle.properties file in gradleuserhomedir, have following, password encrypted artifactory.

artifactory_user=admin artifactory_password={desede}ifw8dygu849gr8enzumolj/l8cwy6fqfrzghhtyj9l0= artifactory_contexturl=http://localhost:8081/artifactory 

then ran gradle tasks. plugin downloaded yes, going wrong. output

the taskcontainer.add() method has been deprecated , scheduled removed in gradle 2.0. please use create() method instead.

failure: build failed exception.

  • where: build file 's:\src\jee-workspace\movieplex7\build.gradle' line: 47

  • what went wrong: problem occurred evaluating root project 'movieplex7'.

    illegal repetition {desede}ifw8dygu849gr8enzumolj/l8cwy6fqfrzghhtyj9l0=

here build.gradle

buildscript {   repositories {       maven { url 'http://localhost:8081/artifactory/plugins-release'           credentials {              username = "${artifactory_user}"              password = "${artifactory_password}"          }      }  }       dependencies {           classpath (             group: 'org.jfrog.buildinfo',                              name: 'build-info-extractor-gradle', version: '2.1.0'         )      }  }   apply plugin: 'war' apply plugin: 'maven' apply plugin: 'eclipse-wtp' apply plugin: 'artifactory'   project.description = 'java ee 7 hands-on lab' version= '1.0' group = 'org.glassfish.movieplex7'  artifactory {   contexturl = "${artifactory_contexturl}" publish {     repository {         repokey = 'libs-release-local'          username = "${artifactory_user}"          password = "${artifactory_password}"          maven = true      }  }  resolve {       repository {          repokey = 'libs-release' username = "${artifactory_user}"                      password = "${artifactory_password}" maven = true      }  }    }  dependencies {  providedcompile 'javax:javaee-api:7.0' //providedcompile 'org.glassfish.main.extras:glassfish-embedded-web:4.0' 

}

it worked when put each property in own line this

`repokey = 'libs-release'

username = "${artifactory_user}"

password = "${artifactory_password}"

maven = true`


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -