Commit Graph

579 Commits

Author SHA1 Message Date
Michael Peter Christen
aeb4c7a660 removed warnings during normal build 2023-10-04 22:00:30 +02:00
okybaca
1de37bc60b added restartYACY.sh so it's included in release package 2023-08-28 13:17:30 +02:00
Thomas Koch
ffd66bc1b4 turn compiler warnings on again
closes #561
2023-02-11 17:19:24 +02:00
Michael Christen
51cf17d252 removed warnings 2022-10-04 22:28:15 +02:00
Michael Peter Christen
60c9986a0e new release file names with date and git hash
...without reference to 9000ish SVN
2022-10-04 15:31:47 +02:00
Michael Peter Christen
ede9efe50c write git revision number to yacyBuild.properties 2022-10-04 01:50:56 +02:00
Michael Christen
56aa23a3ca create release file path in ant process and explicitly make build dir 2022-10-03 12:01:23 +02:00
Michael Christen
8b37a5dc6f removed log4j properties because we don't have a log4j any more 2022-10-03 10:44:03 +02:00
Michael Christen
347b676b76 changed system to load build properties 2022-10-03 10:12:47 +02:00
Michael Peter Christen
1e1107c97c clean-up and new servlet method caching 2022-10-02 23:39:00 +02:00
Thomas Koch
04ca24d7dc rm dead stuff from build.xml 2022-07-10 12:33:32 +00:00
Thomas Koch
e611305787 rm nsis ant task, call makesis command with exec
This allows to remove another jar file from the git repo and the
whole libbuild folder.
The ant task is just a wrapper to call the makensis command. So
there should not be any drawback to remove it.
2022-07-10 12:33:32 +00:00
Thomas Koch
c98d09b664 rm GitRevTask
The releaseNr is now set to a static value in build.properties. We
can increment it there manually and eventually switch to another
version number scheme if we like.
2022-07-10 12:33:28 +00:00
Thomas Koch
3116713672 rm buildDate from build.xml and its usages
The https://reproducible-builds.org project invests a lot of work
to make builds reproducible. This is a security property. It allows
to compare the build of binaries from different builder machines.
If they are identical, it means that either the builds have not
been manipulated or an attacker managed to attack all builder
machines in exactly the same way.

One problem that the reproducible-builds project often sees is
that projects include the build time in their binaries. This
makes builds unreproducible for apparently no reason. The build
date should not be of interest since binaries built on different
dates but from the same source code should not be different.

Thus I decided to remove the build date instead of re-implementing
the functionality without the GitRev task. Anyways the reported
date was not the build date but the date of the last git commit
which is even less informative. The git commit ID would have
information value but should only be relevant for "nightly builds".
2022-07-10 11:32:38 +00:00
Thomas Koch
572558244a rm unused build properties PKGMANAGER, RESTARTCMD, DESTDIR
PKGMANAGER is always false, thus the java code wrapped in
if statements for this property is dead code and can also
be removed.

The Debian packaging removed in c4659f0fb0
did set the PKGMANAGER property to true. When we do distro
packages again, we can revisit this commit and redo it with
property files instead.

RESTARTCMD is only used inside those dead code.

DESTDIR is never used even in the build.xml
2022-07-10 10:14:51 +00:00
Thomas Koch
b661cc56d8 remove unused branch property in build.xml
First commit of a series to get rid of the git based versioning
implemented in libbuild/ folder as Ant task. It counts commits
since the last tagged version and uses this number added with
9000 as the last part of the version number.

This is a legacy from Subversion times.
2022-07-10 10:14:46 +00:00
Thomas Koch
1c3c59de85 fix ant build failure on multiple call to resolve target
Failed build:
https://github.com/yacy/yacy_search_server/runs/6859314856

Relevant build log:

resolve:
[ivy:retrieve] ivy.instance reference an ivy:settings defined in an other classloader.  An new default one will be used in this project.
[ivy:retrieve] :: Apache Ivy non official version -  :: http://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: url = jar:file:/usr/share/java/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
BUILD FAILED
/home/yacy/actions-runner/_work/yacy_search_server/yacy_search_server/build.xml:111:
 java.lang.ClassCastException: org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor
 cannot be cast to org.apache.ivy.core.module.descriptor.ModuleDescriptor

Finding:

The second call to the resolve target in ant failed apparently due to
two instances of Ivy in the java runtime.
Without full investigation, the problem could be fixed by ensuring that
the resolve target is only called once within one ant build.
2022-06-13 14:27:53 +03:00
Thomas Koch
9eb4570df6 download ivy on non-Debian platforms 2022-04-09 14:50:34 +00:00
Thomas Koch
8fbd6386fd use ivy to manage jars 2022-04-08 18:33:20 +00:00
Thomas Koch
4c0ae2ca36 rename langdetect.jar to name in maven repo
The maven jar contains the language profiles that yacy also ships
in the langdetect/ folder.
2022-04-08 18:33:00 +00:00
Thomas Koch
474898da26 rename chardet.jar to name from maven
The class files in the yacy jar differs from the one downloaded
from maven. But the file tree is equal.
2022-04-08 18:32:47 +00:00
Thomas Koch
5309ca3a5a rename jars to correspond to maven repos 2022-04-08 18:32:23 +00:00
reger24
6c5b282919 Some Gradle build script cleanup
- added multiproject in libbuild to compile and install all needed jars (reproduceing old maven build)
- adjusted GitComInf (use a project version, build script with less hardcoded strings)
- adjusted J7Zip-modified
	- include common version number for output jar
	- add task installJarToRoot to copy output jar to yacycore /lib
- adjust main build with updated jar names

as files are the same - updated also old build.xml

And the Eclipse specific .classpath (with shall be deleted until complete move to gradle)
2022-02-01 14:04:38 +01:00
reger24
4df29edd03 Implement the Ant javac task to compile htroot direct in Gradle
- import of the build.xml not longer needed and removed
2022-01-21 07:42:47 +01:00
reger24
e39bb5fbab Modified GitRevNr Ant-Plugin to work in Gradle
- new support library GitComInf to generate a property file for use in Gradle
- adjusted build.gradle to make use of it to create the yacyBuildProperties.java
   - including additon of properties ext.filterTokens as store for Gradle
- added gradle-compile-htroot (w/o depends) to old build.xml as target until complete migration
  as it is imho important

imho: much to complicated to get a running number - should be supplied by repo or simplified
2022-01-20 09:59:34 +01:00
reger24
3e34f7c596 Import Ant build.xml into Gradle and use old compile of servlets in Gradle
to be able to use/reuse Ant targets where task has not been implemented in Gradle build.
- use the import to include the compile of htroot as first important task

  ! it is possible that first build fails an compile of GitRevTask.jar !
  ! solution/workaround -> use "ant all" once to compile GitRevTask.jar !

- adjusted build.xml a little
   - split compile-core into compile-core and compile-htroot to have a target for htroot comp. only
   - set build-path to reuse Gradles build directory
   - (fix javadoc failure)

- changed the filtered-copy of yacyBuildProperties.java to ! the build path :-(
  as current (copy,delete,exclude) is complicated and not migration worthy,
  used simple/straigt forward approach (using a yacyBuildProperties.java.template file as copy source)
2022-01-18 20:00:55 +01:00
Michael Peter Christen
3dc6613096 updating slf4j 1.7.25 -> 1.7.32 2021-12-13 12:26:49 +01:00
admin
fbf8ddd32d upgrade of jsoup 1.12.1 -> 1.14.2 2021-08-24 12:23:57 +02:00
Michael Peter Christen
4c889b7ff9 fixed build paths 2021-08-18 19:05:44 +02:00
Michael Peter Christen
8a2adb2b15 upgraded commons-compress lib
cause: alert in
https://github.com/yacy/yacy_search_server/security/dependabot/pom.xml/org.apache.commons:commons-compress/open
2021-08-07 18:21:54 +02:00
Michael Peter Christen
c4659f0fb0 removed Debian and Red Hat build process
as announced in
https://twitter.com/yacy_search/status/1414608643241152516
because of lack of community support for these kind of
distributions. We will still support
tarball, Windows, Mac and Docker releases.
2021-07-19 20:33:52 +02:00
Michael Peter Christen
15b7461bc7 removed Xms java memory startup parameter
We will use the default value for now on.
This is much better for resource economy and fits better into a
container/docker/kubernetes strategy.
Furthermore, a small memory footprint is essential for the usage on
small devices like RaspberryPi.
2021-07-19 20:04:11 +02:00
Michael Peter Christen
1cdb21592b added hazelcast and some modifications to align legacy YaCy with
YaCyGrid
2021-04-15 20:39:22 +02:00
sgaebel
88c6bc8cd7 adds missing solr lib: opentracing 0.33.0 2021-03-18 21:42:58 +01:00
Michael Peter Christen
8b4394a6c5 fixes for solr 8.8.1 migration
- replace new guava 30 with older 25 because that is the correct
dependency for solr 8.8.1. The newer one did actually not work!
- index will be crated in a DATA/INDEX/freeworld/SEGMENTS/solr_8_8_1
subfolder. The older solr_6_6 index is not touched but also not
migrated. The index starts with fresh (empty) content.
- Older indexes must be migrated by hand (export/import) so far until a
better solution is found.
- Large schema adoptions for lucene 8.8.1
2021-03-08 13:39:27 +01:00
Michael Peter Christen
f4f3808d43 added missing new dependencies for migration to Solr 8
after pulling https://github.com/yacy/yacy_search_server/pull/403
2021-03-06 13:35:32 +01:00
Al Sutton
f4dd6e6d41 Update Lucene to 8.8.1 2021-03-04 17:44:01 +00:00
Al Sutton
721dd3e1ba Update Guava to match version pulled through from solr dependencies 2021-03-04 17:32:07 +00:00
Al Sutton
b5203de923 Update ant build solr dependency to 8.8.1 2021-03-04 16:48:10 +00:00
Michael Peter Christen
43a9f4f574 updated solr 6.6.6 -> 7.7.3
dropped GSA support (GSA API is still in YaCy Grid)
The 6.6.6 solr index works without migration also with 7.7.3
2020-12-12 02:06:43 +01:00
Michael Peter Christen
3213d9db37 updated jetty from 9.4.17 to 9.4.35
and fixed a bug in ServerSideIncludes that appeared only in that recent
version of jetty
2020-12-03 00:21:15 +01:00
sgaebel
e039a797d2 bump to commons-codec-1.14, commons-compress-1.20,
commons-fileupload-1.4, commons-io-2.7, httpclient-4.5.12,
httpcore-4.4.13, httpmime-4.5.12 + remove unused commons-jxpath-1.3,
htmllexer
2020-07-26 21:58:15 +02:00
reger
20748e4e95 upd to jsoup-1.12.1.jar 2019-12-14 21:02:10 +01:00
luccioman
8d3e029247 Upgraded Lucene/Solr dependencies from 6.6.5 to 6.6.6 2019-04-27 21:27:11 +02:00
luccioman
385c6a079d Upgraded Jetty dependencies from 9.4.15.v20190215 to 9.4.17.v20190418 2019-04-24 09:50:56 +02:00
luccioman
f8b94f9891 Upgraded PDFBox dependency from 2.0.14 to 2.0.15 2019-04-19 10:33:58 +02:00
luccioman
fc83d35f3f Upgraded PDFBox dependency from 2.0.11 to 2.0.14 2019-03-22 09:52:57 +01:00
luccioman
4c1428bd63 Upgraded Jetty dependencies from 9.4.14.v20181114 to 9.4.15.v20190215 2019-03-18 14:13:10 +01:00
luccioman
d3a114c7a9 Upgraded icu4j dependency from 62.1 to 63.1 2019-01-19 11:29:17 +01:00
sgaebel
eeae816cc4 bump to HTTPclient-4.5.6 2019-01-08 20:45:59 +01:00