You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Jared Stewart (JIRA)" <ji...@apache.org> on 2016/09/16 17:54:20 UTC

[jira] [Commented] (GEODE-1905) Address UnknownPropertyException when running tests with Gradle 3.0+

    [ https://issues.apache.org/jira/browse/GEODE-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15496929#comment-15496929 ] 

Jared Stewart commented on GEODE-1905:
--------------------------------------

AvailablePortFinder was deprecated in [Gradle 2.8 | https://docs.gradle.org/2.8/release-notes#deprecated-classes-and-constants] and removed in Gradle 3.0.  

I took a look into how the Gradle project itself dealt with this change, and they [use| https://github.com/gradle/gradle/blob/2703311c33e8a295ba7ccb29a62ed8be761ef66f/subprojects/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/HonestProfilerCollector.groovy]  the Apache MINA library's {{[org.apache.mina.util.AvailablePortFinder|https://mina.apache.org/mina-project/apidocs/src-html/org/apache/mina/util/AvailablePortFinder.html]}} class.

> Address UnknownPropertyException when running tests with Gradle 3.0+
> --------------------------------------------------------------------
>
>                 Key: GEODE-1905
>                 URL: https://issues.apache.org/jira/browse/GEODE-1905
>             Project: Geode
>          Issue Type: Improvement
>            Reporter: Jared Stewart
>
> When executing 'gradle test' with a Gradle version >=3.0, the task fails with the following exception:
> {code}
> FAILURE: Build completed with 15 failures.
> 1: Task failed with an exception.
> -----------
> * Where:
> Script 'geode/gradle/test.gradle' line: 22
> * What went wrong:
> Execution failed for task ':extensions/geode-modules:test'.
> > Could not get unknown property 'AvailablePortFinder' for root project 'geode' of type org.gradle.api.Project.
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
> ==============================================================================
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)