Split pages support n function and other stuff
This commit is contained in:
19
build.gradle
19
build.gradle
@@ -2,6 +2,7 @@ plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '3.1.0'
|
||||
id 'io.spring.dependency-management' version '1.1.0'
|
||||
id 'org.springdoc.openapi-gradle-plugin' version '1.6.0'
|
||||
}
|
||||
|
||||
group = 'stirling.software'
|
||||
@@ -12,6 +13,12 @@ repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
openApi {
|
||||
apiDocsUrl = "http://localhost:8080/v3/api-docs"
|
||||
outputDir = file("/")
|
||||
outputFileName = "SwaggerDoc.json"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web:3.1.0'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf:3.1.0'
|
||||
@@ -34,6 +41,18 @@ dependencies {
|
||||
|
||||
}
|
||||
|
||||
task writeVersion {
|
||||
def propsFile = file('src/main/resources/version.properties')
|
||||
def props = new Properties()
|
||||
props.setProperty('version', version)
|
||||
props.store(propsFile.newWriter(), null)
|
||||
}
|
||||
|
||||
tasks.matching { it.name == 'generateOpenApiDocs' }.all {
|
||||
dependsOn writeVersion
|
||||
}
|
||||
|
||||
|
||||
jar {
|
||||
enabled = false
|
||||
manifest {
|
||||
|
||||
Reference in New Issue
Block a user