Commit Graph

38 Commits

Author SHA1 Message Date
Karsten Loesing
92e78eda6a Make ant docs work with excluded sources.
Turns out that Javadoc needs to know about other classes even if we
exclude their sources. The reason for excluding sources is that we
don't want to include their documentation in the generated
documentation. We can fix this by including compiled classes while
still excluding their sources.
2020-06-18 08:59:14 +02:00
Karsten Loesing
b5e1a2d7b2 Set default locale and default time zone for tests.
Set default locale `US` and default time zone `UTC` using Java
properties before when running unit tests.

Part of #33655.
2020-04-01 12:22:32 +02:00
Karsten Loesing
fd856466bc Simplify logging configuration across code bases. 2020-03-08 08:58:37 +01:00
Karsten Loesing
264e498f54 Stop using a security manager for executing tests.
A while ago we started using a security manager for executing tests in
order to prevent them from bothering production servers.

However, keeping the security policy up to date for testing new
functionality is becoming difficult:

 - The recently extended CollecTor module for indexing files
   asynchronously and creating hard links broke tests in unexpected
   way by requiring permission java.nio.file.LinkPermission "hard";

 - Turns out that parallel streams used for sanitizing web server logs
   internally create threads that do not have the permissions as
   defined in our custom security policy.

All in all it seems better to throw out the security manager at all
and prevent tests from bothering production servers simply by not
executing them on production servers.
2019-12-12 09:44:06 +01:00
Karsten Loesing
eb16cb359d Add permission for tests to create hard links.
This is going to be required by the tests for CollecTor's #31204.
2019-11-01 09:01:13 +01:00
Karsten Loesing
d82fff9846 Add missing Jetty servlets dependency.
Fixes #32062.
2019-10-14 16:30:13 +02:00
Karsten Loesing
62a964a770 Add Mockito as dependency.
Required for #31599, but likely useful for other purposes as well.
2019-09-27 10:30:02 +02:00
Karsten Loesing
07c2a00c27 Add ant task to fetch metrics-lib from dist.
Implements part of #31649.
2019-09-23 15:27:32 +02:00
Karsten Loesing
0674958512 Update PostgreSQL JDBC driver version.
There's an issue with Java 9+ complaining about an ilegal reflective
access [...] to field java.util.TimeZone.defaultTimeZone which is
fixed in PostgreSQL JDBC driver version 42.2.0. Updating to 42.2.5
which happens to be in Debian buster under the assumption that is has
seen more usage than 42.2.0 (containing the fix) or 42.2.7 (latest at
the moment).

Found while running integration tests using metrics-test.
2019-09-17 09:31:47 +02:00
Karsten Loesing
75cda35ba7 Remove Cobertura from the build process.
We're having trouble with Cobertura and Java 8, most likely due to it
not being maintained anymore. We're removing it now and will be
replacing it with something else later.

Resolves #31361.
2019-08-12 09:23:47 +02:00
Karsten Loesing
256e6192ad Use Ivy for resolving external dependencies.
With this change all depending code bases start using Ivy for
resolving external dependencies rather than relying on files found in
Debian stable packages. Requires installing Ivy (using `apt-get
install ivy`, `brew install ivy`, or similar) and running `ant
resolve`. Retrieved files are then copied to the `lib/` directory,
except for dependencies on other metrics libraries that still need to
be copied to the `lib/` directory manually. Current dependency
versions resolved by Ivy are the same as in Debian stretch with few
exceptions.

Implements part of #31326.
2019-08-03 11:54:11 +02:00
Karsten Loesing
ed4819215a Revert all Debian buster library upgrades.
Turns out that updating all dependencies, including those in
metrics-web and exonerator using servlets and JSPs, is much harder
than expected. We decided to revert all these changes for now, so that
we can merge patches again. We're going to investigate alternatives
like Ant + Ivy, Maven, or Gradle in the near future.
2019-07-28 21:32:05 +02:00
Karsten Loesing
42ee1fc086 Fix Checkstyle check for do-while statements. 2019-07-24 19:00:35 +02:00
Karsten Loesing
2c4541c0e3 Add a few more dependencies of Checkstyle.
Turns out that these dependencies are required for Checkstyle, too.
2019-07-24 16:10:58 +02:00
Karsten Loesing
ca352d3ef2 Update Checkstyle to Debian buster libraries.
Resolves #25217.
2019-07-24 14:27:47 +02:00
Karsten Loesing
e12ba96aa0 Update to Debian buster libraries.
Note that Checkstyle is excluded from this update, because there's a
yet unresolved issue with the new version: ("Unable to create Root
Module") that we'll have to address in a separate patch. But given
that Checkstyle is not required for the build it's okay to keep the
old version for now. It'll be in the release tarball.
2019-07-17 17:52:20 +02:00
Karsten Loesing
e639c697e9 Stop signing jars. 2018-11-22 16:53:36 +01:00
Karsten Loesing
08514a32af Add new *-thin.jar file without dependencies.
Implements part of #23549.
2018-07-26 14:03:23 +02:00
iwakeh
23c6e0be5f Let the jdbc driver service configuration be part of the jar.
This is part of task-21145.
2017-10-05 18:03:29 +00:00
iwakeh
4b34756ddd Create the 'jar' before the 'other' artifact.
At the time this only affects the Onionoo build.
2017-10-05 18:03:28 +00:00
iwakeh
78e533fdc8 Make build revision properties file project-specific. 2017-10-05 20:03:27 +02:00
iwakeh
6f9698a4f6 Create a build revision containing properties file.
Implements part of task-21414 by providing this file and addinng it to the jar.
2017-07-03 09:15:19 +00:00
iwakeh
a64b94a635 Set target and source to Java 8.
Prepares migration to Java 8 for all Metrics' products.
2017-07-03 09:15:18 +00:00
Karsten Loesing
b491c845ab Update to Debian stretch libraries.
Note that Checkstyle and Cobertura are excluded from this update,
because they're not required for the build and because we're still
using newer versions than what's in stretch. We could attempt to
downgrade and see if the versions in stretch are new enough. But
that's not part of this patch.
2017-07-03 11:15:16 +02:00
iwakeh
e130139e1a Add release version to headline and in case of 'dev' versions also the git revision.
Implements 21614.
2017-02-14 16:21:33 +00:00
iwakeh
6940759436 Enable exclude patterns, part of task-21469. 2017-02-14 16:21:32 +00:00
iwakeh
34e703de06 Remove import of non-existing css. Spotted by Karsten. 2017-02-14 17:21:31 +01:00
iwakeh
fb2b1171b1 Add new style to metrics-base. Implements task-21376. 2017-02-14 17:21:18 +01:00
iwakeh
bb0e1e50ba Only include resources in binary jar, neither in javadoc nor sources jars.
Improved comments in build template.
2017-01-05 14:31:31 +01:00
iwakeh
78c62497eb squash! squash! Corrected source-jar contents, enabled additonal target execution before signing using a new property, and cleaned up jar-task. Corrected path for javadoc-jar.
Add Main-Class attribute only to executable jar.
2017-01-04 17:51:49 +01:00
iwakeh
fe608f854d squash! Corrected source-jar contents, enabled additonal target execution before signing using a new property, and cleaned up jar-task.
Added Implemented-By property to manifest.
2017-01-04 17:33:57 +01:00
iwakeh
60dabe9036 squash! squash! Corrected source-jar contents, enabled additonal target execution before signing using a new property, and cleaned up jar-task. Corrected path for javadoc-jar.
Removed wrong property definition.
2017-01-04 17:08:39 +01:00
iwakeh
4c0106bf45 squash! Corrected source-jar contents, enabled additonal target execution before signing using a new property, and cleaned up jar-task.
Corrected path for javadoc-jar.
2017-01-04 15:00:27 +01:00
iwakeh
f31e65829d Corrected source-jar contents,
enabled additonal target execution before signing using a new property,
and cleaned up jar-task.
2017-01-04 12:58:10 +01:00
iwakeh
832624476c Tweaked base.xml and build template. The copyright year for javadoc is now computed from the current time UTC. 2017-01-03 20:28:51 +01:00
iwakeh
540b072483 Limit line length to 80. Removed property 'maxLineLength' from 'LeftCurly', because it is deprecated (since 6.10) and defaults to 80 anyway. 2017-01-03 20:28:42 +01:00
iwakeh
7b95469c84 Implements part of task-20596. All currently released Metrics products are supported, i.e., CollecTor, metrics-lib, Onionoo. 2017-01-02 15:37:00 +01:00
iwakeh
7a01d68f81 Initial commit. Implements part of task-20596. 2016-12-22 18:03:12 +01:00