Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Unable to install this dependency using gradle #1

Description

@perwezalamnewscorp

I have been trying to install the webdriver binaries using this plugin but, it gets failed. Throwing an error.

I am using the below Gradle code for this. But its not working. Please try in your system and fin an issue if exist or need i to change anything init. I have taken this from Geb code repo

plugins {
id "idea"
id "groovy"
id "com.energizedwork.webdriver-binaries" version "1.0"
id "com.energizedwork.idea-base" version "1.2"
}

ext {
// The drivers we want to use
drivers = ["firefox", "chrome", "chromeHeadless"]

ext {
    groovyVersion = '2.4.12'
    gebVersion = '2.0'
    seleniumVersion = '3.5.3'
    chromeDriverVersion = '2.32'
    geckoDriverVersion = '0.18.0'
}

}

repositories {
mavenCentral()
}

dependencies {
// If using Spock, need to depend on geb-spock
testCompile "org.gebish:geb-spock:$gebVersion"
testCompile("org.spockframework:spock-core:1.1-groovy-2.4") {
exclude group: "org.codehaus.groovy"
}
testCompile "org.codehaus.groovy:groovy-all:$groovyVersion"

// If using JUnit, need to depend on geb-junit (3 or 4)
testCompile "org.gebish:geb-junit4:$gebVersion"

// Drivers
testCompile "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
testCompile "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"

}

webdriverBinaries {
chromedriver chromeDriverVersion
geckodriver geckoDriverVersion
}

drivers.each { driver ->
task "${driver}Test"(type: Test) {
outputs.upToDateWhen { false } // Always run tests

    systemProperty "geb.build.reportsDir", reporting.file("geb/$name")
    systemProperty "geb.env", driver
}

}

test {
dependsOn drivers.collect { tasks["${it}Test"] }
enabled = false
}

tasks.withType(Test) {
maxHeapSize = "1g"
jvmArgs '-XX:MaxMetaspaceSize=128m'
testLogging {
exceptionFormat = 'full'
}
}

tasks.withType(GroovyCompile) {
groovyOptions.forkOptions.memoryMaximumSize = '256m'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions