Skip to content

Commit 9e26929

Browse files
committed
Tycho build
+ Upgrade and change dependencies for better integration into OSGi.
1 parent 4eb9ad3 commit 9e26929

15 files changed

Lines changed: 317 additions & 680 deletions

File tree

.github/workflows/CI.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
# ----------------- This workflow is documented internally on Confluence -----------------
10+
11+
name: Release + build P2 repository
12+
13+
on:
14+
push:
15+
tags:
16+
- '*.*.*.*'
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Set up JDK 17
26+
uses: actions/setup-java@v3
27+
with:
28+
distribution: 'temurin'
29+
java-version: 17
30+
# Below option needs to match the ID of the manifest BREE in order to pick the correct Java version for the build
31+
# Check pom.xml for more information about toolchains
32+
mvn-toolchain-id: JavaSE-17
33+
34+
- name: Load keystore
35+
run: |
36+
echo "${{ secrets.CODESIGN_KEYSTORE }}" > $RUNNER_TEMP/codesign.p12.b64
37+
base64 --decode $RUNNER_TEMP/codesign.p12.b64 > $RUNNER_TEMP/codesign.p12
38+
39+
- name: Build with Maven
40+
run: mvn -B package -Pflat-repo -Dkeystore=$RUNNER_TEMP/codesign.p12
41+
env:
42+
KEY_PASSWORD: ${{ secrets.CODESIGN_KEY_PASSWORD }}
43+
KEYSTORE_PASSWORD: ${{ secrets.CODESIGN_KEYSTORE_PASSWORD }}
44+
45+
- name: Release and upload flat P2 website
46+
uses: softprops/action-gh-release@v1
47+
with:
48+
name: "Release ${{ github.ref_name }}"
49+
files: |
50+
releng/target/flat-repository/*

.mvn/extensions.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<extensions>
2+
<extension>
3+
<groupId>org.eclipse.tycho</groupId>
4+
<artifactId>tycho-build</artifactId>
5+
<version>3.0.5</version>
6+
</extension>
7+
</extensions>

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
[![CI](h2/src/docsrc/images/h2-logo-2.png)](https://github.com/h2database/h2database/actions?query=workflow%3ACI)
2-
# Welcome to H2, the Java SQL database.
1+
# H2 Database Light version.
2+
3+
This fork of H2 Database is only a lighter version of the [original one](https://h2database.com).
4+
5+
The version number of this release refer to the original H2 Database, only the fourth number is incremented here.
6+
37

48
## The main features of H2 are:
59

610
* Very fast, open source, JDBC API
711
* Embedded and server modes; disk-based or in-memory databases
812
* Transaction support, multi-version concurrency
9-
* Browser based Console application
1013
* Encrypted databases
1114
* Fulltext search
1215
* Pure Java with small footprint: around 2.5 MB jar file size
1316
* ODBC driver
1417

1518
More information: https://h2database.com
1619

20+
This fork remove the following one:
21+
22+
* The command line console (i.e. shell).
23+
* The web-interface.
24+
* Text search engine using Apache Lucene.
25+
1726
## Downloads
1827

19-
[Download latest version](https://h2database.com/html/download.html) or add to `pom.xml`:
28+
The latest build can be downloaded in the [Releases](https://github.com/ARCAD-Software/h2database-light/releases) section.
29+
30+
This package is not published on Maven Central, yet.
2031

21-
```XML
22-
<dependency>
23-
<groupId>com.h2database</groupId>
24-
<artifactId>h2</artifactId>
25-
<version>2.4.240</version>
26-
</dependency>
27-
```
2832

2933
## Documentation
3034

31-
* [Tutorial](https://h2database.com/html/tutorial.html)
32-
* [SQL commands](https://h2database.com/html/commands.html)
33-
* [Functions](https://h2database.com/html/functions.html), [aggregate functions](https://h2database.com/html/functions-aggregate.html), [window functions](https://h2database.com/html/functions-window.html)
34-
* [Data types](https://h2database.com/html/datatypes.html)
35+
The Documentation of the original H2 database is still the documentation reference. This project does not provide any enhancement.
36+
3537

3638
## Support
3739

38-
* [Issue tracker](https://github.com/h2database/h2database/issues) for bug reports and feature requests
39-
* [Mailing list / forum](https://groups.google.com/g/h2-database) for questions about H2
40-
* ['h2' tag on Stack Overflow](https://stackoverflow.com/questions/tagged/h2) for other questions (Hibernate with H2 etc.)
40+
For any specific issue related to this build of H2 database you can report them in the [Github Issue Tracker](https://github.com/ARCAD-Software/h2database-light/issues).

h2/MAVEN.md

Lines changed: 0 additions & 64 deletions
This file was deleted.

h2/META-INF/MANIFEST.MF

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,32 @@ Multi-Release: true
1818
Import-Package: javax.crypto,
1919
javax.crypto.spec,
2020
javax.management,
21-
javax.naming;resolution:=optional,
22-
javax.naming.directory;resolution:=optional,
23-
javax.naming.spi;resolution:=optional,
21+
javax.naming,
22+
javax.naming.directory,
23+
javax.naming.spi,
2424
javax.net,
2525
javax.net.ssl,
26-
javax.script;resolution:=optional,
27-
javax.security.auth.callback;resolution:=optional,
28-
javax.security.auth.login;resolution:=optional,
26+
javax.script,
27+
javax.security.auth.callback,
28+
javax.security.auth.login,
2929
javax.sql,
30-
javax.tools;resolution:=optional,
31-
javax.transaction.xa;resolution:=optional,
32-
javax.xml.parsers;resolution:=optional,
33-
javax.xml.stream;resolution:=optional,
34-
javax.xml.transform;resolution:=optional,
35-
javax.xml.transform.dom;resolution:=optional,
36-
javax.xml.transform.sax;resolution:=optional,
37-
javax.xml.transform.stax;resolution:=optional,
38-
javax.xml.transform.stream;resolution:=optional,
39-
org.locationtech.jts.geom;version="[1.19.0,2.0.0)";resolution:=optional,
40-
org.locationtech.jts.geom.impl;version="[1.19.0,2.0.0)";resolution:=optional,
41-
org.osgi.framework;version="[1.5.0,2.0.0)",
42-
org.osgi.service.jdbc;version="[1.1.0,2.0.0)";resolution:=optional,
43-
org.slf4j;version="[1.7.0,2.0.0)";resolution:=optional,
44-
org.w3c.dom;resolution:=optional,
45-
org.xml.sax;resolution:=optional,
46-
org.xml.sax.helpers;resolution:=optional
30+
javax.tools,
31+
javax.transaction.xa,
32+
javax.xml.parsers,
33+
javax.xml.stream,
34+
javax.xml.transform,
35+
javax.xml.transform.dom,
36+
javax.xml.transform.sax,
37+
javax.xml.transform.stax,
38+
javax.xml.transform.stream,
39+
org.locationtech.jts.geom;version="[1.19.0,2.0.0)",
40+
org.locationtech.jts.geom.impl;version="[1.19.0,2.0.0)",
41+
org.osgi.framework;version="[1.1.0,2.0.0)",
42+
org.osgi.service.jdbc;version="[1.1.0,2.0.0)",
43+
org.slf4j;version="[2.0.0,3.0.0)",
44+
org.w3c.dom,
45+
org.xml.sax,
46+
org.xml.sax.helpers
4747
Export-Package: org.h2;version="2.3.232",
4848
org.h2.api;version="2.3.232",
4949
org.h2.fulltext;version="2.3.232",

h2/build.bat

Lines changed: 0 additions & 7 deletions
This file was deleted.

h2/build.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source.. = src/main/
2+
output.. = bin/
3+
bin.includes = META-INF/,\
4+
.

h2/build.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)