Skip to content

Commit a0112d9

Browse files
authored
Merge pull request #3 from hathitrust/ETT-1758
ETT-1758 add maven build, release workflow, ci, and dependabot
2 parents 267a39e + 10c4342 commit a0112d9

6 files changed

Lines changed: 100 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
time: "06:00"
8+
day: "monday"
9+
timezone: "America/Detroit"
10+
commit-message:
11+
prefix: "fix: "
12+
open-pull-requests-limit: 5
13+
labels:
14+
- "dependencies"
15+
groups:
16+
all:
17+
patterns:
18+
- "*"
19+
cooldown:
20+
default-days: 7

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
13+
14+
- uses: actions/setup-java@0f481fcb613427c0f801b606911222b5b6f3083a # v5.5.0
15+
with:
16+
java-version: '17'
17+
distribution: 'temurin'
18+
cache: 'maven'
19+
20+
- name: Build
21+
run: mvn clean package -Dlucene.version=9.12.3 -DskipTests

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15+
16+
- uses: actions/setup-java@0f481fcb613427c0f801b606911222b5b6f3083a # v5.5.0
17+
with:
18+
# Lucene 9.12.3 is bundled in solr:9.10.1 — check /solr/admin/info/system for the exact version
19+
java-version: '17'
20+
distribution: 'temurin'
21+
cache: 'maven'
22+
23+
- name: Build
24+
run: mvn clean package -Dlucene.version=9.12.3 -DskipTests
25+
26+
- name: Publish release
27+
uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2
28+
with:
29+
files: target/HTPostingsFormat.jar

pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>org.hathitrust</groupId>
8+
<artifactId>lss-java-code</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
11+
<properties>
12+
<lucene.version>9.12.3</lucene.version>
13+
<java.version>17</java.version>
14+
<maven.compiler.release>${java.version}</maven.compiler.release>
15+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16+
</properties>
17+
18+
<dependencies>
19+
<dependency>
20+
<groupId>org.apache.lucene</groupId>
21+
<artifactId>lucene-core</artifactId>
22+
<version>${lucene.version}</version>
23+
<scope>provided</scope>
24+
</dependency>
25+
</dependencies>
26+
27+
<build>
28+
<finalName>HTPostingsFormat</finalName>
29+
</build>
30+
</project>

HTPostingsFormatWrapper.java renamed to src/main/java/org/apache/lucene/codecs/HTPostingsFormatWrapper.java

File renamed without changes.

org.apache.lucene.codecs.PostingsFormat renamed to src/main/resources/META-INF/services/org.apache.lucene.codecs.PostingsFormat

File renamed without changes.

0 commit comments

Comments
 (0)