Skip to content

Commit

Permalink
Merge pull request #11 from spacious-team/develop
Browse files Browse the repository at this point in the history
Релиз 2023.1
  • Loading branch information
vananiev committed May 31, 2023
2 parents 04ffefb + 946e2d2 commit 4a563ac
Show file tree
Hide file tree
Showing 29 changed files with 1,665 additions and 349 deletions.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Отчет об ошибке
about: Создайте отчет об ошибке, чтобы улучшить приложение
title: ''
labels: bug
assignees: ''

---

**Опишите ошибку**
Ясное и краткое описание ошибки.

**Последовательность действий для воспроизведения**
Шаги по воспроизведению ошибки.

**Ожидаемый результат**
Ясное и краткое описание того, что вы ожидали.

**Скриншоты**
Если возможно, добавьте скриншоты, чтобы объяснить проблему.

**Окружение:**
- ОС: [например windows 10]
- Версия Java [например 19]
- Версия приложения[например 2020.1]

**Дополнительный контекст**
Любой другой контекст проблемы.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Запрос новой функциональности
about: Предложите идею для этого проекта
title: ''
labels: feature
assignees: ''

---

**Связан ли ваш запрос новой функциональности с проблемой? Пожалуйста, опишите.**
Четкое и краткое описание проблемы. Например, я всегда расстраиваюсь, когда [...]

**Опишите желаемое решение**
Четкое и краткое описание того, что вы хотите сделать.

**Опишите альтернативы, которые вы рассмотрели**
Четкое и краткое описание любых рассмотренных вами альтернативных решений или функций.

**Дополнительный контекст**
Любой другой контекст.
45 changes: 45 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Unit Tests

on:
workflow_dispatch:
pull_request:
branches:
- 'master'
- 'develop'
push:
branches:
- 'master'
- 'develop'

jobs:
tests:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'liberica'
cache: maven

- name: Maven Tests
run: mvn --batch-mode clean test

- name: Test Coverage
uses: codecov/codecov-action@v3

- name: SonarCloud Analyze
run: >
mvn --batch-mode sonar:sonar
-Dsonar.projectKey=spacious-team_table-wrapper-excel-impl
-Dsonar.organization=spacious-team
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.login=$SONAR_TOKEN
-Dsonar.coverage.jacoco.xmlReportPaths=./target/site/jacoco/jacoco.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
target/
.mvn
!.mvn/wrapper/maven-wrapper.properties
!.mvn/wrapper/MavenWrapperDownloader.java
!**/src/main/**
!**/src/test/**

Expand All @@ -22,6 +21,7 @@ target/
!.idea/runConfigurations
!.idea/codeStyles
!.idea/copyright
!.idea/inspectionProfiles

### NetBeans ###
/nbproject/private/
Expand Down
2 changes: 1 addition & 1 deletion .idea/copyright/GNU_AGPLv3.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions .idea/inspectionProfiles/Inspections.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 0 additions & 117 deletions .mvn/wrapper/MavenWrapperDownloader.java

This file was deleted.

18 changes: 17 additions & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
![java-version](https://img.shields.io/badge/Java-14-brightgreen?style=flat-square)
![java-version](https://img.shields.io/badge/Java-11-brightgreen?style=flat-square)
![jitpack-last-release](https://jitpack.io/v/spacious-team/table-wrapper-excel-impl.svg?style=flat-square)
[![Unit tests](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fspacious-team%2Ftable-wrapper-excel-impl%2Fbadge%3Fref%3Ddevelop&style=flat-square&label=Test&logo=none)](
https://github.com/spacious-team/table-wrapper-excel-impl/actions/workflows/unit-tests.yml)
[![Coverage](https://img.shields.io/codecov/c/github/spacious-team/table-wrapper-excel-impl/develop?label=Coverage&style=flat-square&token=5DMBQMR6B0)](
https://codecov.io/gh/spacious-team/table-wrapper-excel-impl)

### Назначение
Предоставляет реализацию `Table Wrapper API` для удобного доступа к табличным данным, сохраненным в файлах формата
Microsoft Office Excel (xls) и [Office Open XML](https://ru.wikipedia.org/wiki/Office_Open_XML) (xlsx).

Если не используется [Spring Boot Starter](https://github.com/spacious-team/table-wrapper-spring-boot-starter),
то сначала в реестр доступных фабрик нужно зарегистрировать фабрику excel таблиц:
```java
TableFactoryRegistry.add(new ExcelTableFactory());
```

Пример создания таблиц с первого листа файла `1.xlsx`
```java
Workbook book = new XSSFWorkbook(Files.newInputStream(Path.of("1.xlsx")));
Expand Down
14 changes: 6 additions & 8 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Workaround for any java version not supported by Jitpack.io yet
# https://github.com/jitpack/jitpack.io/issues/4260
before_install:
- wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
- source install-jdk.sh --feature 14
- jshell --version

# Laster may be supported by
#jdk:
# - openjdk14
#before_install:
# - wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
# - source install-jdk.sh --feature 15
# - jshell --version
jdk:
- openjdk11
Loading

0 comments on commit 4a563ac

Please sign in to comment.