Skip to content

Commit

Permalink
Fix example native dependencies requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
besidev committed Mar 8, 2024
1 parent a9d5dc5 commit 56f931c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
17 changes: 5 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,6 @@ repositories {
}
```

## Lunch the examples
The [example](https://github.com/JPro-one/jpro-platform/blob/main/example/src/main/java/one/jpro/platform/example/Main.java)
subproject holds different examples from the other modules. To run it, you can use the following command:
* As web application via JPro server
```shell
./gradlew example:jproRun
```
* As desktop application
```shell
./gradlew example:run
```

## JPro Auth
Rely on this library to add sophisticated authentication and authorization to your **JPro/JavaFX** applications.
Finely control access with a degree of customization that can accommodate even the most complex security requirements.
Expand Down Expand Up @@ -473,9 +461,12 @@ dependencies {
```

## Launch the examples
To run the examples, you can use the following commands:

- As desktop application
```shell
./gradlew example:run

./gradlew jpro-auth:example:run -Psample=basic-login
./gradlew jpro-auth:example:run -Psample=google-login
./gradlew jpro-auth:example:run -Psample=oauth
Expand All @@ -490,6 +481,8 @@ dependencies {

- As JPro application
```shell
./gradlew example:jproRun

./gradlew jpro-auth:example:jproRun -Psample=basic-login
./gradlew jpro-auth:example:jproRun -Psample=google-login
./gradlew jpro-auth:example:jproRun -Psample=oauth
Expand Down
5 changes: 5 additions & 0 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ plugins {
id 'jpro-gradle-plugin'
}

ext {
// Add more needed platforms here
javacppPlatform = 'linux-x86_64,macosx-x86_64,macosx-arm64,windows-x86_64'
}

dependencies {
implementation project(":jpro-routing:core")
implementation project(":jpro-routing:dev")
Expand Down
5 changes: 0 additions & 5 deletions jpro-media/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ plugins {
id 'org.bytedeco.gradle-javacpp-platform' version "$JAVACPP_VERSION"
}

ext {
// Add more needed platforms here
javacppPlatform = 'linux-x86_64,macosx-x86_64,macosx-arm64,windows-x86_64'
}

dependencies {
implementation "com.sandec.jpro:jpro-webapi:$JPRO_VERSION"
compileOnly "org.bytedeco:javacv-platform:$JAVACV_VERSION"
Expand Down
5 changes: 5 additions & 0 deletions jpro-media/example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ plugins {
id 'jpro-gradle-plugin'
}

ext {
// Add more needed platforms here
javacppPlatform = 'linux-x86_64,macosx-x86_64,macosx-arm64,windows-x86_64'
}

dependencies {
implementation project(":jpro-media")
implementation project(":jpro-file")
Expand Down

0 comments on commit 56f931c

Please sign in to comment.