mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
release: changes to second release
This commit is contained in:
parent
351f3a4ea8
commit
ff620da1e3
2 changed files with 16 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
[See the presentation here](https://speakerdeck.com/michaelisvy/spring-petclinic-sample-application)
|
[See the presentation here](https://speakerdeck.com/michaelisvy/spring-petclinic-sample-application)
|
||||||
|
|
||||||
|
|
||||||
## Run Petclinic locally
|
## Run Petclinic locally
|
||||||
|
|
||||||
Spring Petclinic is a [Spring Boot](https://spring.io/guides/gs/spring-boot) application built using [Maven](https://spring.io/guides/gs/maven/) or [Gradle](https://spring.io/guides/gs/gradle/). You can build a jar file and run it from the command line (it should work just as well with Java 17 or newer):
|
Spring Petclinic is a [Spring Boot](https://spring.io/guides/gs/spring-boot) application built using [Maven](https://spring.io/guides/gs/maven/) or [Gradle](https://spring.io/guides/gs/gradle/). You can build a jar file and run it from the command line (it should work just as well with Java 17 or newer):
|
||||||
|
|
15
build.gradle
15
build.gradle
|
@ -18,6 +18,21 @@ gradle.startParameter.excludedTaskNames += [ "checkFormatAot", "checkFormatAotTe
|
||||||
group = 'org.springframework.samples'
|
group = 'org.springframework.samples'
|
||||||
version = scmVersion.version
|
version = scmVersion.version
|
||||||
|
|
||||||
|
|
||||||
|
task customRelease {
|
||||||
|
dependsOn 'release'
|
||||||
|
doFirst {
|
||||||
|
def githubToken = System.getenv('GH_TOKEN') // Get token from environment variable
|
||||||
|
if (githubToken == null) {
|
||||||
|
throw new GradleException("GH_TOKEN environment variable is not set.")
|
||||||
|
}
|
||||||
|
|
||||||
|
scmVersion.repository.customUsername.set('idvylyuk') // Your GitHub username
|
||||||
|
scmVersion.repository.customPassword.set(githubToken) // Token from the environment variable
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_17
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue