selenium - How to run build.gradle with Sikuli integrated into the project? -


i using sikuli in project handle flash buttons. it's working fine while running scripts locally. issue when need run build.gradle, need have sikuli dependency in build.gradle. how have written build.gradle. when run build, error:

  • what went wrong: not resolve dependencies configuration ':compile'.

    could not find com.googlecode.javacpp:javacpp:0.1. required by: :new_qa_automation:1.0 > org.sikuli:sikuli-api:1.0.2 > org.sikuli:sikuli-c ore:1.0.1 not find com.googlecode.javacv:javacv:0.1. required by: :new_qa_automation:1.0 > org.sikuli:sikuli-api:1.0.2 > org.sikuli:sikuli-c ore:1.0.1

  • try: run --stacktrace option stack trace. run --info or --debug option more log output.

build failed.

here build.gradle file

apply plugin: 'java' version = '1.0' apply plugin: 'project-report'

repositories { mavencentral() maven { url "http://repo.springsource.org/release" url "http://oss.sonatype.org/content/groups/public/" } }

sourcecompatibility = 1.6 targetcompatibility = 1.6

configurations { cucumberruntime { extendsfrom testruntime } }

task test(overwrite: true) { dependson assemble, processtestresources, compiletestjava dolast { javaexec { main = "cucumber.api.cli.main" classpath = configurations.cucumberruntime + sourcesets.main.output + sourcesets.test.output
//some args

        systemproperties system.properties     } } }    

dependencies { compile 'org.seleniumhq.selenium:selenium-java:2.32.+' compile 'org.apache.commons:commons-lang3:3.1' compile 'org.springframework:spring-context:3.2.3.release' compile group: 'org.sikuli', name: 'sikuli-api', version: '1.0.+' compile group: 'commons-collections', name: 'commons-collections', version: '3.+' testcompile 'info.cukes:cucumber-java:1.1.2' testcompile 'info.cukes:cucumber-spring:1.1.2'
testcompile 'info.cukes:cucumber-junit:1.1.2'
testcompile 'junit:junit:4.11' testcompile 'org.easytesting:fest-assert-core:2.0+' }

edit:

i added url maven repositry. error has changed

epage.java:9: error: package org.sikuli.script not exist import org.sikuli.script.findfailed;

sikuli-script.jar in sikuli ide project not provide in repository must use 3rd party jar

see: "mavan's central repository not answer on sikuli stuff" https://answers.launchpad.net/sikuli/+question/185713

"gradle: make 3rd party jar available local gradle repository" gradle: make 3rd party jar available local gradle repository


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -