Dawid Weiss
d819a2eec4
Cherry pick the validateSourcePatterns. Correct exclusion patterns (.gradle and .idea are only at the root project level).
2021-11-02 12:18:51 +01:00
Jerome Prinet
d44e03b8b0
Make ratTask cacheable
2021-11-02 12:18:51 +01:00
Jerome Prinet
b3e59232f5
Make checkBrokenLinks cacheable
2021-11-02 12:18:51 +01:00
Dawid Weiss
1a38cac68e
LUCENE-10195: add commented-out org.gradle.caching=true to the generated local settings.
2021-11-02 12:18:51 +01:00
Dawid Weiss
0544819b78
LUCENE-10200: store git revision in the release folder and read it back from buildAndPushRelease ( #419 )
2021-11-01 09:29:06 +01:00
Dawid Weiss
6d8ea58ccd
LUCENE-10200: Rename pddl-10.txt to reference glove.
2021-10-31 10:41:16 +01:00
Mike Drob
23256a30fa
Replace deprecated Gradle 7.2 properties ( #417 )
2021-10-29 09:59:47 -05:00
Dawid Weiss
62eb9a809e
LUCENE-10200: remove unused dangling license exclusions. Add references to the remaining ones.
2021-10-27 20:40:39 +02:00
Dawid Weiss
780846a732
LUCENE-10198: Allow external JAVA_OPTS in gradlew scripts; use sane defaults (heap, stack and system proxies) ( #405 )
...
Co-authored-by: balmukundblr <balmukund.mandal@intel.com>
2021-10-26 09:15:55 +02:00
Dawid Weiss
81f5b4d642
LUCENE-9660: add tests.neverUpToDate=true option which, by default, makes test tasks always execute. ( #410 )
2021-10-25 14:51:11 +02:00
Dawid Weiss
6c21862a55
LUCENE-10186: Include manifest and legalese in source and javadoc jars. ( #395 )
2021-10-19 10:04:42 +02:00
Robert Muir
f8d431ae44
LUCENE-10185: pass --release 11 to ECJ linter, fix JDK 17 build ( #393 )
...
* LUCENE-10185: pass --release 11 to ECJ linter, fix JDK 17 build
Otherwise, new java releases such as JDK 18, JDK 19, ... may have even
more new deprecations, the build shouldn't fail in such cases.
Remove -source/-target now that we pass --release
Fix casting so ECJ understands it and creates correct call signature (UweSays: "It's ok. I know why it happens, but it's a bug in ECJ. The type safety is checked by the invokeexact")
Co-authored-by: Uwe Schindler <uschindler@apache.org>
2021-10-18 16:43:53 -04:00
Dawid Weiss
c4c3c3270e
LUCENE-9997: Collect signed maven artifacts if -Psign is passed. ( #392 )
...
* Collect signed maven artifacts if -Psign is passed.
* Configure signing using gpg across all projects.
2021-10-18 20:58:29 +02:00
Jan Høydahl
175a49e54a
LUCENE-10163 Move LICENSE and NOTICE file to top level ( #388 )
...
* Add changes entry, under a new "Build" headline
2021-10-18 01:24:11 +02:00
Dawid Weiss
8bcc3dc430
LUCENE-9488: rewrite distribution assembly, signing and checksum generation ( #372 )
2021-10-13 11:50:58 +02:00
Dawid Weiss
a613021ca4
LUCENE-10136: allow 'var' declarations in source code (be reasonable though). ( #368 )
2021-10-08 20:20:22 +02:00
Jan Høydahl
b20ffa5b2b
LUCENE-10152 Fix sha512 file syntax ( #356 )
2021-10-06 14:10:26 +02:00
Dawid Weiss
4d0fabf53b
LUCENE-9713: we don't need those symbol-escape checks. They're valid adoc and we don't produce PDFs.
2021-09-30 15:27:56 +02:00
Dawid Weiss
93c66e1400
LUCENE-9713: exclude .idea/ (sync with Solr's version).
2021-09-30 15:19:19 +02:00
Dawid Weiss
3aa0676194
LUCENE-9713: apply source validation to txt files outside of src/* folders. Fix offenders. ( #339 )
2021-09-30 15:13:42 +02:00
Uwe Schindler
fc475360a8
Only pass "--illegal-access=deny" up to JDK-15, later versions deprecate the option and default to "deny"
2021-09-22 19:41:59 +02:00
Dawid Weiss
de45b68c90
LUCENE-9448, LUCENE-9990: fix Luke's launcher task.
2021-09-16 08:49:26 +02:00
Dawid Weiss
e470535072
LUCENE-9654: Expressions module gramar antlr code regeneration ( #269 )
2021-08-27 12:47:19 +02:00
Dawid Weiss
39a2fc62d4
LUCENE-10066: Build does not work with JDK16 as gradle's runtime ( #259 )
2021-08-26 10:08:37 +02:00
David Smiley
8ac2673791
LUCENE-10003: No C style array declaration ( #206 )
...
Most cases of C-style array declarations have been switched. The Google Java Format, that which we adhere to, disallows C-style array declarations: https://google.github.io/styleguide/javaguide.html#s4.8.3-arrays
Some cases (esp. Snowball) can't be updated.
2021-08-25 17:06:41 -04:00
Dawid Weiss
a8d4f658de
Upgrade to gradle 7.2
2021-08-25 10:03:59 +02:00
Dawid Weiss
0cbafa4879
Fix gradle error hints.
2021-08-25 10:03:59 +02:00
Dawid Weiss
fdccdee734
Move logging to info leve.
2021-08-25 10:03:59 +02:00
Dawid Weiss
26eb84a3b5
Fix immutable properties. Fix ant uri namespace no longer working (seems like gradle regression).
2021-08-25 10:03:59 +02:00
Dawid Weiss
2b0378cd4a
Use JavaInfo instead of toolchains. Internal but works and is free of toolchain's quirks.
2021-08-25 10:03:59 +02:00
Dawid Weiss
68cf86ba35
Experiments with the new apis.
2021-08-25 10:03:59 +02:00
Dawid Weiss
3ff4263535
Upgrade gradle to 7.1.1
2021-08-25 10:03:59 +02:00
Dawid Weiss
523cea2c5d
Revert "Adding initial patch by Gautam Worah" (restore pristine main)
...
This reverts commit 067ab4f503aabea59639e692e3ea9ee30750c68e.
2021-08-25 10:03:59 +02:00
Dawid Weiss
bac22d6116
Adding initial patch by Gautam Worah
2021-08-25 10:03:59 +02:00
Michael Sokolov
a37844aedd
LUCENE-10016: Added KnnVector index/query support to demo
2021-08-18 08:13:59 -04:00
Dawid Weiss
b016c8dc2a
LUCENE-10042: JAR minimal manifest JDK entries are incorrectly set to build-JVM
2021-08-01 14:14:42 +02:00
Dawid Weiss
3bedc0871e
LUCENE-9977: rat task corrections (proper up-to-date checks, cleanup and rewrite of the task itself). ( #178 )
2021-06-11 09:26:34 +02:00
Dawid Weiss
332405e7ad
LUCENE-9995: JDK17 generates wbr tags which make javadocs checker angry.
2021-06-09 10:45:01 +02:00
Dawid Weiss
0a316b2495
LUCENE-9975: don't require signing of 'unsignedJars' publication (maven artifacts published to the user's maven local repository, build folder and apache nexus). ( #156 )
2021-05-28 11:51:28 +02:00
Dawid Weiss
5912e65434
LUCENE-9974: The test-framework module should apply the test ruleset for forbidden APIs. ( #153 )
2021-05-26 10:19:55 +02:00
Houston Putman
f919672647
LUCENE-9936: Add Gpg Signing help info to gradle help command
2021-05-19 10:43:31 -05:00
Dawid Weiss
aac6581f6e
LUCENE-9915: Add generation/ checksumming task for gen_ForUtil.py ( #126 )
2021-05-05 22:03:06 +02:00
Dawid Weiss
8eb4eb2611
LUCENE-9909: add checksums of included files for some jflex generation tasks. Fix a task ordering issue with spotless. ( #121 )
...
* LUCENE-9909: Some jflex regeneration tasks should have proper dependencies and also check the checksums of included files.
* Force a dependency on low-level spotless tasks so that they're always properly ordered (hell!). Update ASCIITLD and regenerate the remaining code. Add cross-dependencies between generation tasks that take includes as input.
2021-05-02 19:17:18 +02:00
Robert Muir
06907a2c12
LUCENE-9188: Add jacoco code coverage support to gradle ( #119 )
...
Co-authored-by: Dawid Weiss <dawid.weiss@carrotsearch.com>
Co-authored-by: Uwe Schindler <uschindler@apache.org>
2021-05-02 16:24:06 +02:00
Tomoko Uchida
7acd3dd54a
LUCENE-9947: Exclude luke javadocs from the documentation site. ( #120 )
2021-05-01 18:10:56 +09:00
Tomoko Uchida
44a8d7ce39
LUCENE-9947: Exclude luke from the published jar list ( #118 )
2021-05-01 15:50:46 +09:00
Robert Muir
044d152d95
LUCENE-9928: speed up analysis/icu regeneration ( #82 )
...
The compilation of the library is slow, disable optimization as it doesn't speed up our usage of the gennorm2 tool.
Use better heuristic for make parallelism (tests.jvms rather than just hardcoded value of four).
2021-04-22 07:24:44 -04:00
John Carlson
2c43f57f91
Update gradle to 6.8.3 ( #100 )
2021-04-21 21:02:37 +02:00
Ignacio Vera
e0436872c4
LUCENE-9907: Move PackedInts#getReaderNoHeader() to backwards codec
2021-04-20 09:09:38 +02:00
Ignacio Vera
b0662c807c
LUCENE-9907: Remove unused method PackedInts.Mutable#save
2021-04-19 14:52:21 +02:00
Dawid Weiss
bd8f182b13
LUCENE-9933: Add non-file properties to wrapped regenerate checksums ( #95 )
2021-04-19 13:37:47 +02:00
Dawid Weiss
beafd113de
LUCENE-9931: Rename checksummed regen. tasks FooInternal and generated wrappers Foo ( #88 )
2021-04-16 22:35:51 +02:00
Dawid Weiss
0b1d8ccba6
LUCENE-9925: add checksums to snowball-generated files ( #80 )
2021-04-13 08:59:31 +02:00
Dawid Weiss
3f3917d504
LUCENE-9914: remove stale file.
2021-04-12 20:19:14 +02:00
Dawid Weiss
f91700a713
LUCENE-9914: Modernize Emoji regeneration scripts ( #78 )
2021-04-12 20:16:43 +02:00
Robert Muir
9d15435b15
LUCENE-9916: add a simple regeneration help doc ( #73 )
...
Add a simple regeneration help doc
Improve task help and checksum failure message (include corresponding regeneration task). Sorry for being verbose. Maybe somebody will read it. :)
Co-authored-by: Dawid Weiss <dawid.weiss@carrotsearch.com>
2021-04-11 11:28:41 -04:00
Robert Muir
b0bd64c620
LUCENE-9924: generate TLD list from IANA TLD db, rather than root zone db ( #77 )
...
This adds a bit of simplicity as the file is a simple domain list,
rather than a DNS zone. So the regexes parsing DNS can be removed.
Also the file may change less often as it contains JUST the list of
TLDs, and not any additional DNS metadata.
2021-04-11 11:25:15 -04:00
Robert Muir
15bfb28d7f
LUCENE-9922: checksum files should use a deterministic sort order ( #75 )
...
This way the files don't unnecessarily change, depending on filesystem
order or anything else.
2021-04-10 16:00:55 -04:00
Dawid Weiss
4818a83cb2
LUCENE-9920: Remove binary gradle-wrapper.jar from the repository
2021-04-10 16:08:39 +02:00
Uwe Schindler
779e00542c
Make the character printout code uniform (always print at least 4 hex chars)
2021-04-08 16:38:31 +02:00
Dawid Weiss
4c2384a1f3
LUCENE-9872: load input/output checksums prior to executing the target task, even if regenerate is not called.
2021-04-08 15:00:20 +02:00
Robert Muir
2971f311a2
LUCENE-9911: enable ecjLint unusedExceptionParameter ( #70 )
...
Fails the linter if an exception is swallowed (e.g. variable completely
unused).
If this is intentional for some reason, the exception can simply by
annotated with @SuppressWarnings("unused").
2021-04-08 08:19:01 -04:00
Robert Muir
df25653cbd
LUCENE-9882: better synchronize eclipse formatter with spotless. ( #47 )
...
Import the spotless formatting settings to our eclipse IDE setting, so
that it is a closer match.
2021-04-07 06:20:42 -04:00
Robert Muir
4026753744
LUCENE-9910: maximize javac lint ( #68 )
...
This enables quite a few javac warnings from java11+ that weren't
enabled for some reason. None of them fail, so lock them in.
Additionally some newer checks are only recognized for newer JDK
versions, so they are only enabled based on the javac version used. They
will cause no annoyance because they relate to newer language features.
2021-04-07 06:10:29 -04:00
Dawid Weiss
39071dbc54
LUCENE-9904: Port GenerateJflexTLDMacros.java regeneration to gradle and regenerate UAX tokenizer with up-to-date TLDs
2021-04-07 10:56:21 +02:00
Dawid Weiss
fbf9191abf
LUCENE-9901: UnicodeData.java has no regeneration task ( #63 )
2021-04-05 20:12:56 +02:00
Dawid Weiss
010e3a1ba9
LUCENE-9900: Regenerate/ run ICU only if inputs changed ( #61 )
2021-04-02 11:46:43 +02:00
Dawid Weiss
e3ae57a3c1
LUCENE-9872: Make the most painful tasks in regenerate fully incremental ( #60 )
2021-04-02 09:56:47 +02:00
zacharymorn
79fcd99f4c
LUCENE-9883: Turn on ecj missingEnumCaseDespiteDefault setting ( #56 )
2021-03-31 15:50:52 +09:00
Dawid Weiss
32e891c60f
LUCENE-9871: move dummy outputs aspect into a separate file.
2021-03-30 20:15:55 +02:00
Dawid Weiss
39b8e97613
LUCENE-9896: Add 'quiet exec' utility suppressing exec output unless a failure occurs
2021-03-30 14:38:13 +02:00
Dawid Weiss
fd685682be
This removes the last of ant-compatibility hacks - cross-project dependency on test classes. Replaced with gradle's test fixture artifact sharing. Cleaned up spatial3d classes a bit too.
2021-03-30 12:35:33 +02:00
Dawid Weiss
f83c9462bb
Remove legacy ant hacks - add conf to test sourceSet. Correct jvm options hack (don't apply to benchmarks run).
2021-03-30 11:33:27 +02:00
Dawid Weiss
89024a466b
Remove exceptional test exclusions for forked non-tests and inner classes.
2021-03-30 11:13:41 +02:00
Dawid Weiss
78bfbe0bad
We don't need to exclude inner classes explicitly.
2021-03-30 10:57:15 +02:00
Dawid Weiss
3115797463
LUCENE-9871: clean up some old cruft and shuffle files around. Correct inputs/outputs on check broken links so that it's incremental.
2021-03-30 10:55:19 +02:00
Dawid Weiss
974e4bc5e8
LUCENE-9880: correct task ordering for clean.
2021-03-30 10:08:44 +02:00
Robert Muir
3596e05e5c
LUCENE-9878: enable redundantNullCheck in ecjLint ( #44 )
...
Detects common cases of unreachable/dead code.
For generated javacc code, the check is disabled via
SuppressWarnings("unused") because javacc generates strange/bad code such as:
if ("" == null)
For TestStressNRTReplication's startNode() method, the check is also
disabled because analysis folds the "test evilness controls" which are
static final constants. This itself is a WTF, shouldn't we instead
randomize these evil things in our tests rather than hardcoding them to
specific values?
2021-03-27 11:43:47 -04:00
Uwe Schindler
3538709269
Improvement for LUCENE-9881 ( #46 ): Completely disable Eclipse plugins's eclipseJdt task and replace by owur own just copying the filtered config files. This now works correctly with inputs/outputs.
2021-03-27 12:08:12 +01:00
Robert Muir
690e256ec9
LUCENE-9881: synchronize ECJ linter with Eclipse IDE ( #46 )
...
Co-authored-by: Uwe Schindler <uschindler@apache.org>
2021-03-27 00:42:29 +01:00
Dawid Weiss
f02799c511
Skip errorprone on non-nightlies. ( #45 )
2021-03-26 21:42:15 +01:00
zacharymorn
3ed87c867a
LUCENE-9864: Enforce @Override annotation everywhere ( #40 )
...
Requiring the annotation is helpful because if an abstract method is removed, the concrete methods will then show up as compile errors: preventing dead code from being accidentally left behind.
Co-authored-by: Robert Muir <rmuir@apache.org>
2021-03-25 17:50:38 -04:00
Dawid Weiss
a38713907d
LUCENE-9866: regenerate kuromoji dict in regenerate
2021-03-25 11:43:37 +01:00
Uwe Schindler
3214e365e3
LUCENE-9856: Static analysis take 3: Remove redundant interfaces ( #38 )
...
Co-authored-by: Robert Muir <rmuir@apache.org>
2021-03-24 18:26:12 +01:00
Dawid Weiss
108cd85375
Avoid creating a circular dependency between shared subtasks.
2021-03-24 16:01:36 +01:00
Dawid Weiss
4c2de7ef43
Correct soft task ordering between tidy and any other dependency of regenerate.
2021-03-24 15:39:45 +01:00
Dawid Weiss
bb5db1e16d
Correct snowball download/unzip sequence to be always consistent.
2021-03-24 15:39:45 +01:00
Dawid Weiss
34f589b0aa
Correct run order between tidy and regenerate's deps. Make snowball not fail on Windows (just emit an error).
2021-03-24 15:39:45 +01:00
Dawid Weiss
27510d5f2f
LUCENE-9862: cleanup of all regenerate tasks; moved common code into shared bit. Added failOnError for ant.patch. Included jflexStandardTokenizerImpl.
2021-03-24 15:39:45 +01:00
Robert Muir
945b1cb872
LUCENE-9856: fail precommit on unused local variables, take two ( #37 )
...
Enable ecj unused local variable, private instance and method detection. Allow SuppressWarnings("unused") to disable unused checks (e.g. for generated code or very special tests). Fix gradlew regenerate for python 3.9 SuppressWarnings("unused") for generated javacc and jflex code. Enable a few other easy ecj checks such as Deprecated annotation, hashcode/equals, equals across different types.
Co-authored-by: Mike McCandless <mikemccand@apache.org>
2021-03-23 13:59:00 -04:00
Robert Muir
e6c4956cf6
Revert "LUCENE-9856: fail precommit on unused local variables ( #34 )"
...
This reverts commit 20dba278bb
.
2021-03-23 12:46:36 -04:00
Robert Muir
20dba278bb
LUCENE-9856: fail precommit on unused local variables ( #34 )
...
Enable ecj unused local variable, private instance and method detection. Allow SuppressWarnings("unused") to disable unused checks (e.g. for generated code or very special tests). Fix gradlew regenerate for python 3.9 SuppressWarnings("unused") for generated javacc and jflex code. Enable a few other easy ecj checks such as Deprecated annotation, hashcode/equals, equals across different types.
Co-authored-by: Mike McCandless <mikemccand@apache.org>
2021-03-23 11:09:24 -04:00
Dawid Weiss
078d0079d1
LUCENE-9861: pull tuned vm options into a separate aspect. ( #33 )
2021-03-23 10:39:09 +01:00
András Salamon
2678d68be8
SOLR-14024 Invalid html generated by changes2html.pl ( #31 )
2021-03-22 17:35:32 -04:00
Dawid Weiss
246c4beb22
LUCENE-9854: Clean up utilities to download and extract test/ benchmark data sets. ( #27 )
2021-03-22 12:22:39 +01:00
Dawid Weiss
a5996dbecd
Follow-up to help/validateLogCalls.txt removal.
2021-03-19 15:14:42 +01:00
Dawid Weiss
c0852d1e9c
Follow-up to help/ant.txt removal.
2021-03-19 15:13:55 +01:00
Dawid Weiss
53bea54669
LUCENE-9375: cleaning up post-split conditional build logic and solr refs. ( #22 )
2021-03-18 11:04:45 +01:00
Dawid Weiss
ca3de30aff
Don't cross-link between modules for interim snapshot builds. ( #21 )
2021-03-18 10:18:07 +01:00
Dawid Weiss
f8040c0ecf
LUCENE-9650: errorprone plugin doesn't work on jdk16. A different workaround that keeps the dependency.
2021-03-15 10:19:27 +01:00
Dawid Weiss
4f5389bfa8
Flush output on javadoc emitting a failure.
2021-03-12 11:39:40 +01:00
Dawid Weiss
8bbcc39583
Always include errorprone dependency, even if we're not checking. This ensures consistent use patterns across JVMs.
2021-03-11 22:27:25 +01:00
Dawid Weiss
7f5e660395
LUCENE-9375: some build file cleanups. ( #10 )
2021-03-10 21:47:37 +01:00
Dawid Weiss
ee4871f24a
make gradlew mavenToLocalRepo work.
2021-03-10 13:03:48 +01:00
Dawid Weiss
fdf486ba54
LUCENE-9375: post-repo-split removal of solr counterpart.
2021-03-10 11:20:08 +01:00
Dawid Weiss
b591daad38
SOLR-14759: correct build logic.
2021-03-08 15:04:20 +01:00
Dawid Weiss
409bc37c13
SOLR-14759: a few initial changes so that Lucene can be built independently while Solr code is still in place. ( #2448 )
2021-03-08 14:59:08 +01:00
Bruno Roustant
19e6560b7f
Restore read-only permission in solr-tests.policy
2021-03-04 16:20:17 +01:00
Dawid Weiss
7dc43f46fd
LUCENE-9818: print slowest suites, add an option to enable/ disable the function from options. ( #2439 )
2021-03-01 16:02:18 +01:00
Robert Muir
7d3f3d61ce
Fix tests.profile output to not run many many times ( #2417 )
...
The profiler should only be invoked once at the end of the build. During
refactoring the buildFinished() hook became nested underneath stuff such
as allProjects which causes it to run too many times.
2021-02-23 06:54:39 -05:00
Dawid Weiss
d2fb89c22f
LUCENE-9793: Add task time aggregation utility (enabled with -Ptask.times=true).
2021-02-20 20:18:16 +01:00
Dawid Weiss
224843a2ba
Clean up stale comments a bit.
2021-02-20 20:18:02 +01:00
Eric Pugh
f70a518f1b
SOLR-8138: Simple UI for issuing SQL queries ( #2381 )
...
* Updated SOLR-8138 files for Solr 9.
This code was mostly written by Michael Suzuki, i just tweaked it to load, and updated the version of ui-grid to the 4.10 version.
* unused file, we use the .min version.
* add an entry for the ui-grid project to license file.
Co-authored-by: epugh@opensourceconnections.com <>
2021-02-18 17:21:21 -05:00
Houston Putman
4bd4f7063b
LUCENE-9780: Only validate JARs for tasks that are enabled ( #2382 )
2021-02-17 18:12:27 -05:00
Kevin Watters
890f570bf5
LUCENE-9659 inequality support in payload check query ( #2185 )
...
Changes from SOLR-14787 supporting inequalities in SpanPayloadCheckQuery
2021-02-17 09:48:50 -05:00
Tobias Kaessmann
f142bf9c54
SOLR-15038: Add elevateOnlyDocsMatchingQuery and collectElevatedDocsWhenCollapsing parameters to query elevation.
...
Closes #2134
2021-02-17 10:54:17 +01:00
Robert Muir
dd91f5ca82
LUCENE-9773: upgrade icu to 68.2 ( #2372 )
...
Upgrade from icu 62.2 to 68.2, with Unicode 13 support.
Modify GenerateUTR30DataFiles to take the release tag as a program
argument. Gradle populates this automatically, removing a manual step
from regeneration process.
2021-02-15 14:56:13 -05:00
Dawid Weiss
8f56ae0a4b
LUCENE-9767: infrastructure for icu regeneration in place. ( #2362 )
2021-02-14 21:07:39 +01:00
Dawid Weiss
f7e42bdb35
LUCENE-9768: Add source sets for src/tools, clean up forbidden API and formatting errors ( #2361 )
2021-02-12 17:03:54 +01:00
Dawid Weiss
d89cb72fa7
Remove leftover debug statement.
2021-02-12 17:02:30 +01:00
Dawid Weiss
903782d756
LUCENE-9727: build side support for running Hunspell tests. ( #2313 )
2021-02-08 10:50:25 +01:00
Peter Gromov
82f8d7ba1d
LUCENE-9728: Hunspell: add a performance test ( #2296 )
2021-02-05 09:47:02 +01:00
Peter Gromov
84aa683b6b
LUCENE-9723: Hunspell: update sanity tests that load all dictionaries ( #2290 )
2021-02-03 10:45:35 +01:00
Peter Gromov
b48d5beb34
LUCENE-9707: Hunspell: check Lucene's implementation against Hunspel's test data ( #2267 )
2021-02-02 10:46:14 +01:00
Peter Gromov
8a34cc7afd
LUCENE-9701: Hunspell: implement simple REP-based suggestion algorithm ( #2251 )
2021-02-01 10:23:54 +01:00
Eric Pugh
6d71a0aced
SOLR-14067: v4 Create /contrib/scripting module with ScriptingUpdateProcessor ( #2257 )
...
* Creating Scripting contrib module to centralize the less secure code related to scripts.
* tweak the changelog and update notice to explain why the name changed and the security posture thinking
* the test script happens to be a currency.xml, which made me think we were doing something specific to currency types, but instead any xml formatted file will suffice for the test.
* Update solr/contrib/scripting/src/java/org/apache/solr/scripting/update/ScriptUpdateProcessorFactory.java
* Update solr/contrib/scripting/src/java/org/apache/solr/scripting/update/package-info.java
* drop the ing, and be more specific on the name of the ref guide page
* comment out the script update chain.
The sample techproducts configSet is used by many of the solr unit tests, and by default doesn't have access to the jar file in the contrib module. This is commented out, similar to how the lang contrib is.
* using a Mock for the script processor in order to keep the trusted configSets tests all together.
* tweak since we are using a mock script processor
Co-authored-by: David Smiley <dsmiley@apache.org>
2021-01-29 12:27:36 -05:00
Mike Drob
b335034615
Require Thread Names in Solr ( #2264 )
...
When we are creating a new thread we should give it a descriptive name and enforce this via ForbiddenAPIs. This doesn't apply to Runnable or Callable objects that we pass to an executor, since those should be getting named by the executor itself.
We don't require this in tests because the tests should be more self contained and there is less benefit in descriptive names. If somebody is already profiling a test, then they likely have the context to understand what the unnamed threads are doing, whereas a thread dump from a running Solr instance should have good thread names for everything. This is especially helpful when doing profiling, otherwise we end up with a bunch of Thread-# that are hard to tell apart and search on.
2021-01-28 15:04:15 -06:00
Houston Putman
2b8d7bcd6a
SOLR-15075: Solr docker gradle improvements ( #2197 )
...
* Removed docker plugin from gradle builds.
* Removed package docker image.
* Tasks now have correct inputs/outputs/dependencies.
* Move gradle help text to docker folder.
* Reduce duplicated Docker layer by doing file removal and chmod in another stage.
Co-authored-by: David Smiley <dsmiley@apache.org>
2021-01-26 10:22:50 -05:00
epugh@opensourceconnections.com
ce1bba6d66
Revert "SOLR-14067: v3 Create /contrib/scripting module with ScriptingUpdateProcessor ( #2215 )"
...
This reverts commit cf5db8d651
.
2021-01-25 09:53:36 -05:00
Eric Pugh
cf5db8d651
SOLR-14067: v3 Create /contrib/scripting module with ScriptingUpdateProcessor ( #2215 )
...
* Creating Scripting contrib module to centralize the less secure code related to scripts.
* tweak the changelog and update notice to explain why the name changed and the security posture thinking
* the test script happens to be a currency.xml, which made me think we were doing something specific to currency types, but instead any xml formatted file will suffice for the test.
* drop the ing, and be more specific on the name of the ref guide page
* use the same name everywhere
Co-authored-by: David Smiley <dsmiley@apache.org>
2021-01-21 13:32:46 -05:00
András Salamon
83e0397c42
SOLR-14297: Replace commons-codec Base64 with JDK8 Base64 ( #2222 )
2021-01-21 13:10:33 -05:00
Dawid Weiss
053060b925
LUCENE-9670: Workaround for gradle not liking the same stream for stdout and stderr sinks.
2021-01-21 09:51:56 +01:00
Peter Gromov
939699f550
LUCENE-9667: Hunspell: add spellchecker API, support BREAK and FORBIDDENWORD affix rules ( #2207 )
2021-01-20 10:57:27 +01:00
zacharymorn
a7747b63b4
LUCENE-8982: Make NativeUnixDirectory pure java with FileChannel direct IO flag, and rename to DirectIODirectory ( #2052 )
...
LUCENE-8982: Make NativeUnixDirectory pure java with FileChannel direct IO flag, and rename to DirectIODirectory
2021-01-17 23:57:56 +01:00
Dawid Weiss
5b734fb94a
Make :localSettings always available, even if it's a noop on subsequent runs. ( #2190 )
2021-01-08 20:26:35 +01:00
Dawid Weiss
0ab9cb8079
LUCENE-9658: temporarily hook up spotlessCheck to precommit.
2021-01-07 10:57:57 +01:00
Dawid Weiss
2cbf261032
LUCENE-9570: code reformatting [final].
2021-01-05 13:44:05 +01:00
Dawid Weiss
7f8b7ffbca
LUCENE-9570: code reformatting [partial].
2021-01-03 21:46:01 +01:00
Dawid Weiss
38c9d2ab76
LUCENE-9650: disable errorprone on jdk16+ ( #2171 )
2020-12-28 23:20:52 +01:00
Dawid Weiss
8ef6a0da56
LUCENE-9570: code reformatting [partial].
2020-12-28 12:26:13 +01:00
Dawid Weiss
2d6ad2fee6
LUCENE-9570: code reformatting [partial].
2020-12-23 12:41:23 +01:00
Dawid Weiss
6faa4f98e0
LUCENE-9570: code reformatting [partial].
2020-12-18 13:02:08 +01:00
Dawid Weiss
c94b035df8
LUCENE-9564: add spotless and gjf (automatic code formatter)
2020-12-17 13:11:54 +01:00
Przemek Bruski
ccf3e60453
LUCENE-9021 QueryParser: re-use the LookaheadSuccess exception ( #962 )
...
* LUCENE-9021 QueryParser: re-use the LookaheadSuccess exception
Authored-by: Przemek Bruski <pbruski@atlassian.com>
2020-12-12 06:05:46 -08:00
David Smiley
021de9f45f
SOLR-14915: Prometheus-exporter should not depend on Solr-core ( #1972 )
...
* Reduced dependencies from Solr server down to just SolrJ. Don't add WEB-INF/lib.
* Was missing some dependencies in lib/; now has all except SolrJ & logging.
* Can run via gradle, "gradlew run"
* Has own log4j2.xml now
Has own CHANGES.md now.
2020-11-27 15:08:33 -05:00
Dawid Weiss
fd3ffd0d38
LUCENE-8982: make native builds disabled by default (CI complains).
2020-11-16 17:23:21 +01:00
zacharymorn
ebc87a8a27
LUCENE-8982: Separate out native code to another module to allow cpp build with gradle ( #2068 )
...
* LUCENE-8982: Separate out native code to another module to allow cpp build with gradle
2020-11-16 09:40:03 +01:00
Robert Muir
52f581e351
LUCENE-9605: update snowball to d8cf01ddf37a, adds Yiddish ( #2077 )
2020-11-14 09:27:08 -05:00
Tomoko Uchida
8bac4e7f74
LUCENE-9499: javadoc split package workaroud should be applied only to test-framework.
2020-11-13 21:31:37 +09:00
Houston Putman
212b0f8657
SOLR-14949: Ability to customize Solr Docker build ( #2020 )
...
Also added a gradlew helpDocker page.
2020-11-10 10:42:38 -05:00
Tomoko Uchida
426a9c25c2
LUCENE-9499: migrate package.html files into package-info.java ( #2072 )
2020-11-10 23:57:09 +09:00
Tomoko Uchida
d1110394e9
LUCENE-9600: Clean up package name conflicts between misc and core modules ( #2064 )
2020-11-10 22:24:48 +09:00
Dawid Weiss
22296f28a2
SOLR-14912: Unify solr-contrib-extraction with the artifact it produces ( #2060 )
2020-11-03 14:15:26 +01:00
Dawid Weiss
a29d7c70d5
LUCENE-9597: checkWorkingCopyClean shouldn't complain about untracked empty folders (similar to git status). Piggybacking jgit update. ( #2061 )
2020-11-03 12:50:05 +01:00
Dawid Weiss
63c4dfa454
LUCENE-9596: Reproduce line for failed tests should have method-level accuracy
2020-11-03 10:56:05 +01:00
Tomoko Uchida
6a7131ee24
LUCENE-9319: Clean up package name conflicts for sandbox module ( #2023 )
2020-11-03 12:01:02 +09:00
Uwe Schindler
9ce4b98af2
LUCENE-9587: Add '--illegal-access=deny' to test runner ( #2039 )
2020-10-27 23:28:25 +01:00
Tomoko Uchida
44c1bd42c5
LUCENE-9318: Clean up package name conflicts for backward-codecs ( #2000 )
2020-10-19 21:32:06 +09:00
Robert Muir
4c42cbc5c9
LUCENE-9576: give solr back its getFileStoreAttributes permission
...
Solr apparently needs this for its IndexFetcher.
2020-10-18 12:30:47 -04:00
Michael Sokolov
c02f07f2d5
LUCENE-9322: Add Lucene90 codec, including VectorFormat
...
This commit adds support for dense floating point VectorFields.
The new VectorValues class provides access to the indexed vectors.
2020-10-18 07:49:36 -04:00
Robert Muir
85b58c262a
LUCENE-9576: nuke SSD detection, modernize CMS defaults
2020-10-17 10:55:35 -04:00
gezapeti
cf6e831394
SOLR-14887 Upgrade JQuery to 3.5.1 ( #1947 )
2020-10-13 19:41:57 -04:00
Dawid Weiss
e444df1435
SOLR-14922: Include solr-ref-guide tasks in sourceSets for IntelliJ ( #1973 )
2020-10-12 12:25:13 +02:00
Dawid Weiss
c5cf13259e
LUCENE-9562: All binary analysis packages (and corresponding Maven artifacts) with names containing '-analyzers-' have been renamed to '-analysis-'. ( #1968 )
2020-10-12 09:15:56 +02:00
Uwe Schindler
6acb7b4293
LUCENE-9577: move the checkBrokenLinks task to the documentation subprojects
2020-10-09 16:44:36 +02:00
Uwe Schindler
f97208a790
LUCENE-9577: fix changed task name
2020-10-09 16:18:59 +02:00
Uwe Schindler
2329423e5c
LUCENE-9577: Move Lucene/Solr Documentation assembly to subproject ( #1967 )
2020-10-09 14:56:44 +02:00
Mike Drob
08e38d3452
LUCENE-9488 Create Release Artifacts with Gradle ( #1905 )
...
* Build Lucene binary distribution using Gradle
* Generate SHA-512 checksums for all release artifacts
* Update documentation artifacts included in binaries
* Delete some additional Ant relics
Co-authored-by: Dawid Weiss <dawid.weiss@carrotsearch.com>
Co-authored-by: Uwe Schindler <uschindler@apache.org>
2020-10-08 14:25:51 -05:00
Tomoko Uchida
b70eaeee5a
LUCENE-9558: Clean up package name conflicts for analyzers-icu. ( #1946 )
2020-10-05 17:52:23 +09:00
Dawid Weiss
34776ed640
LUCENE-9561: workaround for POMs that have superfluous dependencyManagement section.
2020-10-04 21:39:58 +02:00
Timothy Potter
e879a52291
SOLR-14659: Remove restlet as dependency for the ManagedResource API ( #1938 )
...
Co-authored-by: noblepaul <noble.paul@gmail.com>
2020-10-04 11:21:49 -06:00
Dawid Weiss
d9a410920a
LUCENE-9548: Apache repository publishing ( #1929 )
2020-10-04 19:18:29 +02:00
Robert Muir
7eee4fd102
LUCENE-9557: regeneration should use python3, not python2
...
python2 will change the DFA, but using python3 re-generates the sources
as they exist today. plus, we don't want to depend on EOL python2.
2020-10-03 12:30:22 -04:00
Erick Erickson
f6c4f8a755
SOLR-14910: Use in-line tags for logger declarations in Gradle ValidateLogCalls that are non-standard, change //logok to //nowarn
2020-10-03 09:47:37 -04:00
Adrien Grand
f8b7a60562
LUCENE-9550: Upgrade to Gradle 6.6.1. ( #1933 )
2020-09-30 11:17:55 +02:00
Dawid Weiss
9bfaca0606
LUCENE-9549: add command-line quotes for 'reproduce with'.
2020-09-30 09:49:52 +02:00
Dawid Weiss
2b692ccb71
LUCENE-9547: Race condition in maven artifact configuration results in wrong group/ artifact name
2020-09-29 10:24:17 +02:00
Dawid Weiss
3ae0b50646
LUCENE-9546: Configure Nori and Kuromoji generation lazily when java plugin is applied to the projects
2020-09-29 10:24:17 +02:00
Namgyu Kim
00d7f5ea68
LUCENE-9544: Port Nori dictionary compilation ( #1926 )
2020-09-28 20:28:21 +09:00
Dawid Weiss
6b0149ec1a
Revert "add regenerate gradle script for nori dictionary ( #1924 )"
...
This reverts commit e28e8c0e0c
.
2020-09-28 09:52:34 +02:00
Tomoko Uchida
5e617ccc33
LUCENE-9317: Clean up split package in analyzers-common ( #1836 )
2020-09-28 16:49:28 +09:00
Namgyu Kim
e28e8c0e0c
add regenerate gradle script for nori dictionary ( #1924 )
2020-09-28 08:54:27 +02:00
Dawid Weiss
5ec2bac91c
LUCENE-9531: Consolidate duplicated generated classes CharStream and FastCharStream ( #1886 )
2020-09-18 08:53:30 +02:00
Erik Hatcher
2364a7aded
SOLR-14792: Remove VelocityResponseWriter
2020-09-17 08:45:13 -04:00
Dawid Weiss
6c9d7adf79
LUCENE-9527: upgrade javacc to 7.0.4 ( #1884 )
2020-09-17 13:29:18 +02:00
Dawid Weiss
4f344cb0d4
LUCENE-9530: cleaned up javacc gradle generation scripts. ( #1883 )
...
* LUCENE-9530: cleaned up gradle javacc generation/ tweaks script so that it's consistent across runs. Removed ant remnants.
2020-09-17 10:53:02 +02:00
Uwe Schindler
8debc9d0c2
LUCENE-9517: Don't subclass Deflater and instead create a patch for setDictionary() using a functional interface ( #1850 )
2020-09-10 11:12:59 +02:00
Dawid Weiss
a05a055d9d
LUCENE-9518: Add sanity to gradle archiving tasks (predictable order, default permissions, fail on duplicates) ( #1851 )
2020-09-10 09:48:04 +02:00
Uwe Schindler
f0d3bab321
LUCENE-9512: Move LockFactory stress test to be a unit/integration test ( #1842 )
...
Co-authored-by: Dawid Weiss <dawid.weiss@carrotsearch.com>
2020-09-09 18:42:30 +02:00
Dawid Weiss
b988d557d7
LUCENE-9506: Gradle: split validateSourcePatterns into per-project an… ( #1830 )
...
* LUCENE-9506: Gradle: split validateSourcePatterns into per-project and root-specific tasks (allow parallelism)
Co-authored-by: Uwe Schindler <uschindler@apache.org>
2020-09-08 10:08:51 +02:00
Varun Thacker
121b262389
LUCENE-9497: Integerate Error Prone ( Static Analysis Tool ) during compilation ( #1816 )
...
LUCENE-9497: Integrate Error Prone, a static analysis tool during compilation
2020-09-07 14:42:48 -07:00
Erick Erickson
8c5ce090dd
LUCENE-9475: Enhance the Gradle build as necessary after removing Ant support, some minor text changes to solr/README.md and help.gradle
2020-09-06 17:16:08 -04:00
Dawid Weiss
e3437a467e
LUCENE-9475: remove obsolete ant-only jar sha's from Solr.
2020-09-06 22:42:28 +02:00
Dawid Weiss
d31a42763b
LUCENE-9505: add dummy outputs. ( #1829 )
2020-09-04 11:11:57 +02:00
Uwe Schindler
469d742384
Remove the explicit dependency to "check", as fobiddenapis installs it automatically (especially for all source sets; if we want this explicit dependency, it should depend on 'forbiddenApis' not each task). In addition precommit, also adds it.
2020-09-03 17:50:57 +02:00
Adrien Grand
7f68272575
LUCENE-9438: Add resources to the Eclipse classpath.
2020-09-03 09:46:54 +02:00
Robert Muir
784ede4eda
LUCENE-9215: replace checkJavaDocs.py with doclet ( #1802 )
...
This has the same logic as the previous python, but no longer relies
upon parsing HTML output, instead using java's doclet processor.
The errors are reported like "normal" javadoc errors with source file
name and line number and happen when running "gradlew javadoc"
Although the "rules" are the same as the previous python, the python had
some bugs where the checker didn't quite do exactly what we wanted, so
some fixes were applied throughout.
Co-authored-by: Dawid Weiss <dawid.weiss@carrotsearch.com>
Co-authored-by: Uwe Schindler <uschindler@apache.org>
2020-09-02 08:29:17 -04:00
Uwe Schindler
f8329378af
LUCENE-9492: Fix beasting to accept also task names in form ":project:beast"; fix bug with default value rejected by Integer.parseInt ( #1808 )
2020-08-31 18:09:21 +02:00
Dawid Weiss
9445d2c10e
Move Solr-specific config.
2020-08-31 15:43:56 +02:00
Dawid Weiss
3e47bfb7b4
Cleanup remaining scripts to use script-relative resource location.
2020-08-31 15:35:14 +02:00