Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 38 additions & 44 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven-publish'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
apply plugin: 'checkstyle'
apply plugin: 'signing'

import org.apache.tools.ant.filters.*

plugins {
id 'java'
id 'idea'
id 'maven-publish'
id 'eclipse'
id 'jacoco'
id 'checkstyle'
id 'signing'
id 'org.owasp.dependencycheck' version '5.3.2.1'
id 'com.github.johnrengelman.shadow' version '5.2.0'
}

repositories {
jcenter()
mavenCentral()
}

buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'org.owasp:dependency-check-gradle:5.3.2.1'
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
}
}

apply plugin: 'org.owasp.dependencycheck'
apply plugin: 'com.github.johnrengelman.shadow'

configurations {
ecj
lombok
Expand Down Expand Up @@ -60,33 +50,39 @@ compileJava {
dependencies {
compileOnly('org.projectlombok:lombok:1.18.12')
annotationProcessor('org.projectlombok:lombok:1.18.12')
compile ("org.seleniumhq.selenium:selenium-java:${project.property('selenium.version')}") {
force = true
implementation ("org.seleniumhq.selenium:selenium-java") {
version {
strictly "${project.property('selenium.version')}"
}

exclude group: 'com.google.code.gson'
exclude module: 'htmlunit-driver'
exclude group: 'net.sourceforge.htmlunit'

}
compile ("org.seleniumhq.selenium:selenium-support:${project.property('selenium.version')}") {
force = true
implementation ("org.seleniumhq.selenium:selenium-support") {
version {
strictly "${project.property('selenium.version')}"
}
}
compile ("org.seleniumhq.selenium:selenium-api:${project.property('selenium.version')}") {
force = true
implementation ("org.seleniumhq.selenium:selenium-api") {
version {
strictly "${project.property('selenium.version')}"
}
}
compile 'com.google.code.gson:gson:2.8.6'
compile 'org.apache.httpcomponents:httpclient:4.5.12'
compile 'cglib:cglib:3.3.0'
compile 'commons-validator:commons-validator:1.7'
compile 'org.apache.commons:commons-lang3:3.11'
compile 'commons-io:commons-io:2.7'
compile 'org.springframework:spring-context:5.2.8.RELEASE'
compile 'org.aspectj:aspectjweaver:1.9.6'
compile 'org.slf4j:slf4j-api:1.7.30'

testCompile 'junit:junit:4.13'
testCompile 'org.hamcrest:hamcrest:2.2'
testCompile (group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '4.2.0') {
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'org.apache.httpcomponents:httpclient:4.5.12'
implementation 'cglib:cglib:3.3.0'
implementation 'commons-validator:commons-validator:1.7'
implementation 'org.apache.commons:commons-lang3:3.11'
implementation 'commons-io:commons-io:2.7'
implementation 'org.springframework:spring-context:5.2.8.RELEASE'
implementation 'org.aspectj:aspectjweaver:1.9.6'
implementation 'org.slf4j:slf4j-api:1.7.30'

testImplementation 'junit:junit:4.13'
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation (group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '4.2.0') {
exclude group: 'org.seleniumhq.selenium'
}
}
Expand Down Expand Up @@ -134,8 +130,6 @@ publishing {
artifactId = 'java-client'
version = '7.3.0'
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'java-client'
description = 'Java client for Appium Mobile Webdriver'
Expand Down Expand Up @@ -199,7 +193,7 @@ signing {
}

wrapper {
gradleVersion = '5.4'
gradleVersion = '6.6.1'
distributionType = Wrapper.DistributionType.ALL
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void checkAbilityToStartServiceUsingCapabilities() {
caps.setCapability(APP_PACKAGE, "io.appium.android.apis");
caps.setCapability(APP_ACTIVITY, ".view.WebView1");
caps.setCapability(APP, apiDemosApk().toAbsolutePath().toString());
caps.setCapability(CHROMEDRIVER_EXECUTABLE, chromeManager.getBinaryPath());
caps.setCapability(CHROMEDRIVER_EXECUTABLE, chromeManager.getDownloadedDriverPath());

service = new AppiumServiceBuilder().withCapabilities(caps).build();
service.start();
Expand All @@ -184,7 +184,7 @@ public void checkAbilityToStartServiceUsingCapabilitiesAndFlags() {
caps.setCapability("quotes", "\"'");
caps.setCapability("goog:chromeOptions",
ImmutableMap.of("env", ImmutableMap.of("test", "value"), "val2", 0));
caps.setCapability(CHROMEDRIVER_EXECUTABLE, chromeManager.getBinaryPath());
caps.setCapability(CHROMEDRIVER_EXECUTABLE, chromeManager.getDownloadedDriverPath());

service = new AppiumServiceBuilder()
.withArgument(CALLBACK_ADDRESS, testIP)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public class StartingAppLocallyTest {
WebDriverManager chromeManager = chromedriver();
chromeManager.setup();
serverCapabilities.setCapability(AndroidMobileCapabilityType.CHROMEDRIVER_EXECUTABLE,
chromeManager.getBinaryPath());
chromeManager.getDownloadedDriverPath());

AppiumServiceBuilder builder = new AppiumServiceBuilder()
.withArgument(GeneralServerFlag.SESSION_OVERRIDE)
Expand Down