[
https://issues.apache.org/jira/browse/SOLR-13452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16844245#comment-16844245
]
Mark Miller edited comment on SOLR-13452 at 5/20/19 8:59 PM:
-------------------------------------------------------------
The above commit let's you test the build using your local check out in docker.
This is very basic at the moment and just runs a few targets. By doing this in
docker we can control various isolation levels, a clean dependency cache
environment and can install certain target pre-requisites like python.
We could shorten the dependency gathering phase with an apt cache image or by
sharing local caches with Docker if wanted to.
The test is in buildSrc and implemented as a new target called buildTest (I
have not tested that much yet, just running from eclipse directly so far). It's
implemented as a Java junit test that calls out to bash. A test script is run
and configured to fail the junit test if any command fails. The test has an
assume that basically checks for unix and docker command availability.
was (Author: [email protected]):
The above commit let's you test the build using your local check out in docker.
This is very basic at the moment and just runs a few targets. By doing this in
docker we can control various isolation levels, a clean dependency cache
environment and can install certain target pre-requisites like python.
We could shorten the dependency gathering phase with an apt cache image or by
sharing local caches with Docker if wanted to.
The test is in buildSrc and implemented as a new target called testBuild (I
have not tested that much yet, just running from eclipse directly so far). It's
implemented as a Java junit test that calls out to bash. A test script is run
and configured to fail the junit test if any command fails. The test has an
assume that basically checks for unix and docker command availability.
> Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to Gradle.
> -------------------------------------------------------------------------
>
> Key: SOLR-13452
> URL: https://issues.apache.org/jira/browse/SOLR-13452
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Build
> Reporter: Mark Miller
> Priority: Major
>
> I took some things from the great work that Dat did in
> [https://github.com/apache/lucene-solr/tree/jira/gradle] and took the ball a
> little further.
>
> When working with gradle in sub modules directly, I recommend
> [https://github.com/dougborg/gdub]
> This gradle branch uses the following plugin for version locking, version
> configuration and version consistency across modules:
> [https://github.com/palantir/gradle-consistent-versions]
> By default, dependencies are not transitive, but there is a special
> Configuration for adding dependencies on other project internal modules that
> are transitive to their direct external dependencies (their jar libs).
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]