Skip to content

Use Gradle to build instead of Maven #214

Closed

Description

@Jonahss

suggested by @bootstraponline to align with other Android and Appium projects. Maven is unsupported by Google.

Activity

  1. bootstraponline commented on Jul 7, 2015

    @bootstraponline
    Member

    Important: Support for the Android Developer Tools (ADT) in Eclipse is ending, per our announcement. You should migrate your app development projects to Android Studio as soon as possible. For more information on transitioning to Android Studio, see Migrating to Android Studio.

    https://developer.android.com/tools/help/adt.html

  2. Jonahss commented on Jul 7, 2015

    @Jonahss
    MemberAuthor

    I use intellij. That all right?

  3. bootstraponline commented on Jul 7, 2015

    @bootstraponline
    Member

    Android Studio is built on Intellij so Intellij has excellent gradle support.

  4. Jonahss commented on Jul 7, 2015

    @Jonahss
    MemberAuthor

    👍

  5. coding-yogi commented on Sep 15, 2015

    @coding-yogi
    Contributor

    I am using intellij, I can look into this one

  6. coding-yogi commented on Oct 19, 2015

    @coding-yogi
    Contributor

    Was trying to get my fork running with Gradle and having a hard time compiling this List

    I get the below error
    javaclient\java-client\src\main\java\io\appium\java_client\AppiumDriver.java:84: error: findElements(By) in AppiumDriver cannot implement findElements(By) in WebDriver
    public List findElements(By by){
    ^
    return type List is not compatible with List
    where RequiredElementType is a type-variable:
    RequiredElementType extends WebElement declared in class AppiumDriver

    I tried typecasting return value to List with no luck

  7. coding-yogi commented on Oct 19, 2015

    @coding-yogi
    Contributor

    javaclient\java-client\src\main\java\io\appium\java_client\AppiumDriver.java:84: error: findElements(By) in AppiumDriver cannot implement findElements(By) in WebDriver
    public List< RequiredElementType > findElements(By by){
    ^
    return type List< RequiredElementType > is not compatible with List< WebElement >
    where RequiredElementType is a type-variable:
    RequiredElementType extends WebElement declared in class AppiumDriver

  8. coding-yogi commented on Oct 22, 2015

    @coding-yogi
    Contributor

    @Jonahss @TikhomirovSergey , Gradle uses javac and it seems it is pretty stringent than eclipse or intellij compilers when it comes to Generics. I am not sure if there can be a workaround to overcome this w/o making code changes around handling generics

    Per error even if RequiredElementType extends WebElement, it doesn't translate into List < RequiredElementType > extends List < WebElement >
    and hence the declaration of overridden method is invalid as per the compiler

  9. TikhomirovSergey commented on Nov 2, 2015

    @TikhomirovSergey
    Contributor

    @aniket-21 Sorry for my late responce Too busy.
    The fix is here:
    SeleniumHQ/selenium#863
    We need the Selenium version with these changes. Also I'll try to find a way to avoid this problem with Gradle too.

  10. TikhomirovSergey commented on Nov 2, 2015

    @TikhomirovSergey
    Contributor
  11. coding-yogi commented on Nov 3, 2015

    @coding-yogi
    Contributor

    Thanks @TikhomirovSergey , It would be good to have the implementation changes at Selenium end rather than forcing the compilers to accept current one with warnings :)

  12. added this to the 4.0.0 milestone on Mar 7, 2016
  13. TikhomirovSergey commented on Sep 7, 2016

    @TikhomirovSergey
    Contributor

    Was implemented at #442 #465. @aniket-21 Please wait for v5.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions