Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gradlew text eol=lf
gradlew.bat text eol=crlf
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build

on:
pull_request:
push:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17', '21', '25' ]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: ${{ matrix.java }}
- uses: gradle/actions/setup-gradle@v6
- run: ./gradlew test

build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '17'
- uses: gradle/actions/setup-gradle@v6
- run: ./gradlew build -x test
- uses: actions/upload-artifact@v7
with:
name: montonio-sdk
path: build/libs/*.jar
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.idea
/initial-docs
/build
/.gradle
.DS_Store
1 change: 1 addition & 0 deletions .sdkmanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java=17.0.14-tem
27 changes: 27 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

## Project Overview

Montonio Java SDK — a type-safe Java client for the Montonio payment gateway REST API (V2 + Stargate). Covers payment order lifecycle, payment method discovery, and JWT webhook/return validation. MIT licensed, owned by Bitweb.

## Build & Test Commands

Requires Java 17 (managed via `.sdkmanrc`). Uses Gradle 9.4.1 with Groovy DSL.

```bash
./gradlew build # full build
./gradlew test # all tests
./gradlew unitTest # unit tests only (excludes @Tag("integration"))
./gradlew integrationTest # integration tests only (@Tag("integration"))
./gradlew testAndReport # all tests + jacoco reports
./gradlew test --tests 'com.example.MyTest.myMethod' # single test
```

## Gradle Structure

Build is split across files following BitWeb conventions:
- `build.gradle` — plugins, dependencies, Java config
- `test.gradle` — JUnit Platform, jacoco, unit/integration test tasks
- `library.gradle` — java-library, maven-publish, signing, nexus publishing
35 changes: 35 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
buildscript {
dependencies {
classpath 'org.owasp:dependency-check-gradle'
}
}

plugins {
id 'java'
id "org.owasp.dependencycheck" version "12.2.0"
id "io.freefair.lombok" version "9.2.0"
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
}

group 'ee.bitweb'
version '0.1.0'
java {
sourceCompatibility = '17'
}

tasks.withType(JavaCompile).configureEach {
options.compilerArgs.add("-parameters")
}

apply from: "test.gradle"
apply from: "library.gradle"

repositories {
mavenCentral()
}

dependencies {
testImplementation platform('org.junit:junit-bom:5.14.3')
testImplementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.welcome=never
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
251 changes: 251 additions & 0 deletions gradlew

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

Loading