Skip to content

Commit a34104f

Browse files
committed
Initial release — zero-dependency Java SDK with Jakarta Servlet Filter and Spring Boot auto-config
0 parents  commit a34104f

25 files changed

+3866
-0
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
9+
[*.java]
10+
indent_style = space
11+
indent_size = 4
12+
13+
[*.{kts,kt}]
14+
indent_style = space
15+
indent_size = 4
16+
17+
[*.{yml,yaml}]
18+
indent_style = space
19+
indent_size = 2

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: peekapi-dev

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Report a bug or request a feature
4+
url: https://github.com/peekapi-dev/community/issues/new/choose
5+
about: All issues and feature requests are tracked in the community repo

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Summary
2+
3+
<!-- What does this PR do? -->
4+
5+
## Checklist
6+
7+
- [ ] Tests pass
8+
- [ ] No breaking changes (or documented in description)

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-java@v4
15+
with:
16+
distribution: temurin
17+
java-version: 17
18+
- uses: gradle/actions/setup-gradle@v4
19+
- run: ./gradlew test
20+
- run: ./gradlew spotlessCheck

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
build/
2+
.gradle/
3+
*.class
4+
.idea/
5+
*.iml
6+
out/
7+
bin/

build.gradle.kts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
plugins {
2+
`java-library`
3+
id("com.diffplug.spotless") version "7.0.2"
4+
}
5+
6+
group = "dev.peekapi"
7+
version = "0.1.0"
8+
9+
java {
10+
toolchain {
11+
languageVersion = JavaLanguageVersion.of(17)
12+
}
13+
}
14+
15+
repositories {
16+
mavenCentral()
17+
}
18+
19+
dependencies {
20+
compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0")
21+
compileOnly("org.springframework.boot:spring-boot-autoconfigure:3.2.0")
22+
compileOnly("org.springframework:spring-web:6.1.0")
23+
24+
testImplementation(platform("org.junit:junit-bom:5.11.4"))
25+
testImplementation("org.junit.jupiter:junit-jupiter")
26+
testImplementation("org.mockito:mockito-core:5.14.2")
27+
testImplementation("jakarta.servlet:jakarta.servlet-api:6.0.0")
28+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
29+
}
30+
31+
tasks.test {
32+
useJUnitPlatform()
33+
testLogging {
34+
events("passed", "skipped", "failed")
35+
}
36+
}
37+
38+
tasks.jar {
39+
manifest {
40+
attributes(
41+
"Implementation-Title" to "PeekAPI Java SDK",
42+
"Implementation-Version" to project.version,
43+
)
44+
}
45+
}
46+
47+
spotless {
48+
java {
49+
googleJavaFormat("1.25.2")
50+
removeUnusedImports()
51+
}
52+
}

gradle/wrapper/gradle-wrapper.jar

42.7 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.4-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

gradlew

Lines changed: 251 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)