It says in the documentation to download the gradle build script from my
repo.  I did.  It also says that you can use it as a gradle build init
script.  However when I do I get...  What's going on here

C:\SourceCode\builddev\AutoTest>gradle -I ..\repo-init.gradle build

FAILURE: Build failed with an exception.

* Where:
Initialization script 'C:\SourceCode\builddev\repo-init.gradle' line: 1

* What went wrong:
A problem occurred evaluating initialization script.
> Cannot change configuration 'classpath' after it has been resolved.

the repo-init.gradle script has not been changed and below are the
contents...

buildscript {
    repositories {
        maven {
            url 'http://localhost:8081/artifactory/plugins-release'

        }

    }
    dependencies {
        //Check for the latest version here:
http://plugins.gradle.org/plugin/com.jfrog.artifactory
        classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.0.3"
    }
}

allprojects {
    apply plugin: "com.jfrog.artifactory"
}

artifactory {
    contextUrl = "${artifactory_contextUrl}"   //The base Artifactory URL if
not overridden by the publisher/resolver
    publish {
        repository {
            repoKey = 'libs-release-local'
            maven = true

        }
    }
    resolve {
        repository {
            repoKey = 'libs-release'
            maven = true

        }
  



--
View this message in context: 
http://forums.jfrog.org/Not-getting-Gradle-example-to-work-Cannot-change-configuration-classpath-tp7580236.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to