Files
spring-statemachine/buildSrc/build.gradle
Henning Pöttker 83f84fd587 Fix turnstile and showcase sample
Signed-off-by: Henning Pöttker <25299532+hpoettker@users.noreply.github.com>
2025-03-11 17:30:37 +01:00

68 lines
2.0 KiB
Groovy

plugins {
id "java-gradle-plugin"
id "java"
}
java {
sourceCompatibility = JavaVersion.VERSION_17
}
repositories {
gradlePluginPortal()
mavenCentral()
maven { url "https://repo.spring.io/milestone" }
maven { url "https://repo.spring.io/snapshot" }
maven { url 'https://repo.spring.io/plugins-release/' }
}
ext {
if (project.hasProperty('springBootVersion')) {
set("springBootVersion", springBootVersion)
}
else {
def propertiesFile = new File(new File("$projectDir").parentFile, "gradle.properties")
propertiesFile.withInputStream {
def properties = new Properties()
properties.load(it)
set("springBootVersion", properties["springBootVersion"])
}
}
}
dependencies {
implementation(platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}"))
implementation("org.springframework:spring-core")
implementation 'org.asciidoctor:asciidoctor-gradle-jvm:3.3.2'
implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.29.0'
implementation "org.springframework.boot:org.springframework.boot.gradle.plugin:${springBootVersion}"
}
gradlePlugin {
plugins {
modulePlugin {
id = "org.springframework.statemachine.module"
implementationClass = "org.springframework.statemachine.gradle.ModulePlugin"
}
starterPlugin {
id = "org.springframework.statemachine.starter"
implementationClass = "org.springframework.statemachine.gradle.StarterPlugin"
}
bomPlugin {
id = "org.springframework.statemachine.bom"
implementationClass = "org.springframework.statemachine.gradle.BomPlugin"
}
docsPlugin {
id = "org.springframework.statemachine.docs"
implementationClass = "org.springframework.statemachine.gradle.DocsPlugin"
}
distPlugin {
id = "org.springframework.statemachine.root"
implementationClass = "org.springframework.statemachine.gradle.RootPlugin"
}
samplePlugin {
id = "org.springframework.statemachine.sample"
implementationClass = "org.springframework.statemachine.gradle.SamplePlugin"
}
}
}