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 .sdkmanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
java=25.0.1-amzn
gradle=9.4.0
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Clone this project in order to create your own jPOS based application.

The template ships with a `.sdkmanrc` file that pins Java 25.0.1-amzn and Gradle 9.4.0 so every shell can run `sdk env install && sdk env` to reproduce the toolchain.
It also applies the published `org.jpos.jposapp` Gradle plugin (v0.0.16), which replaces the legacy `jpos-app.gradle` helper and provides the `installApp`, `dist`, `distnc`, `zip`, and `run` tasks out of the box.

We recommend that you install [Gradle](http://gradle.org/) in order to build your jPOS projects, but if you don't have it installed, you can use the Gradle wrapper scripts `gradlew` and `gradlew.bat`. In the following instructions, when we say `gradle` we really mean either your installed Gradle or one of the wrapper scripts (depending if you are on Unix or DOS based platforms).

### Build an eclipse project
Expand Down
25 changes: 16 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'idea'
apply plugin: 'eclipse'
plugins {
id 'java-library'
id 'maven-publish'
id 'idea'
id 'eclipse'
id 'org.jpos.jposapp' version '0.0.16'
}

group = 'org.jpos.template'
version = '3.0.1-SNAPSHOT'
sourceCompatibility = 25
targetCompatibility = 25

java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
}

repositories {
mavenCentral()
maven { url = uri('https://jpos.org/maven') }
mavenLocal()

}

dependencies {
implementation 'org.jpos:jpos:3.0.1-SNAPSHOT'
}

apply from: 'jpos-app.gradle'

jpos {
distDir.set('src/dist')
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
50 changes: 32 additions & 18 deletions gradlew

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

40 changes: 22 additions & 18 deletions gradlew.bat

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

Loading