-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from manoelcampos/dotenv3
Upgrade to dotenv-java 3.0.0 with supports JDK 11
- Loading branch information
Showing
16 changed files
with
258 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Spring example | ||
|
||
## Build and Running | ||
|
||
Set the release version as you wish (if you are creating a new release) or based on the latest version in GitHub. | ||
|
||
``` | ||
export RELEASE_VERSION=0.0.0 | ||
../../gradlew build | ||
java -cp build/libs/spring-app-example-$RELEASE_VERSION-all.jar examples.SpringAppDemoApplication | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
plugins { | ||
id 'application' | ||
id 'com.github.johnrengelman.shadow' version '7.0.0' | ||
} | ||
|
||
mainClassName = 'example.SpringDemoApplication' | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
sourceCompatibility = JavaVersion.VERSION_11 | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
|
||
jar { | ||
enabled = false | ||
enabled = true | ||
} | ||
|
||
shadowJar { | ||
version = prop('release.version', 'RELEASE_VERSION') | ||
manifest { | ||
attributes 'Main-Class': 'examples.SpringAppDemoApplication' | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation project(':spring-dotenv') | ||
implementation platform('org.springframework:spring-framework-bom:5.3.24') | ||
implementation 'org.springframework:spring-context' | ||
implementation 'org.slf4j:slf4j-api:2.0.3' | ||
runtimeOnly 'org.apache.logging.log4j:log4j-slf4j2-impl:2.19.0' | ||
runtimeOnly 'org.apache.logging.log4j:log4j-core:2.19.0' | ||
implementation 'org.slf4j:slf4j-api:2.0.7' | ||
runtimeOnly 'org.apache.logging.log4j:log4j-slf4j2-impl:2.20.0' | ||
runtimeOnly 'org.apache.logging.log4j:log4j-core:2.20.0' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Spring boot example | ||
|
||
## Running | ||
|
||
Set the release version as you wish (if you are creating a new release) or based on the latest version in GitHub. | ||
|
||
``` | ||
RELEASE_VERSION=0.0.0 ../../gradlew bootRun | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
## Spring framework example with Jakarta EE | ||
|
||
Does not work and not expected to work until Spring supports Jakarta EE. | ||
|
||
## Running | ||
|
||
Set the release version as you wish (if you are creating a new release) or based on the latest version in GitHub. | ||
|
||
``` | ||
RELEASE_VERSION=0.0.0 ../../gradlew appRun | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
## Spring framework example with Java EE | ||
|
||
## Running | ||
|
||
Set the release version as you wish (if you are creating a new release) or based on the latest version in GitHub. | ||
|
||
``` | ||
./gradlew appRun | ||
RELEASE_VERSION=0.0.0 ../../gradlew appRun | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.