Skip to content

Commit 31f2811

Browse files
committed
Set Publish build and update README.md about dependency control
1 parent ccb86dc commit 31f2811

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# Spring Sheet Ease
2-
> This library in developing stage, we will update this to maven soon
3-
42
In services run on the Spring web framework, sometimes data must be offered in Excel instead of JSON. This library simplifies the process, allowing the conversion of JSON data to Excel files for download with just one annotation, bypassing the complexity of using tools like Apache POI
53
# Usage
4+
Append dependency
5+
```xml
6+
<dependency>
7+
<groupId>com.beoks</groupId>
8+
<artifactId>spring-web-excel</artifactId>
9+
<version>0.0.1-SNAPSHOT</version>
10+
</dependency>
11+
```
612
You need only append `@ExcelDownload` annotation to Controller Method.
713
```java
814
@RestController

build.gradle

+19
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id 'java'
33
id 'org.springframework.boot' version '3.2.3'
44
id 'io.spring.dependency-management' version '1.1.4'
5+
id "maven-publish"
56
}
67

78
group = 'com.beoks'
@@ -15,6 +16,24 @@ repositories {
1516
mavenCentral()
1617
}
1718

19+
publishing {
20+
repositories {
21+
maven {
22+
name = "GitHubPackages"
23+
url = uri("https://maven.pkg.github.com/BEOKS/SpringSheetEase")
24+
credentials {
25+
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
26+
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_PUBLISH_TOKEN")
27+
}
28+
}
29+
}
30+
publications {
31+
gpr(MavenPublication) {
32+
from(components.java)
33+
}
34+
}
35+
}
36+
1837
dependencies {
1938
implementation 'org.springframework.boot:spring-boot-starter-web'
2039
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'

0 commit comments

Comments
 (0)