Files
spring-shell/buildSrc/build.gradle
Janne Valkealahti bad75882e1 Initial ffm support
- Starter for jline ffm terminal provider
- Build changes for compiling with gradle toolchains
  defaulting to jdk22
- spring-shell-sample-ffm which compiles with jdk22
- ci workflow setups jdk 17/22
- Relates #1131
2024-08-30 07:05:03 +01:00

61 lines
1.8 KiB
Groovy

plugins {
id "java-gradle-plugin"
id "java"
}
sourceCompatibility = JavaVersion.VERSION_17
repositories {
gradlePluginPortal()
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
}
ext {
def propertiesFile = new File(new File("$projectDir").parentFile, "gradle.properties")
propertiesFile.withInputStream {
def properties = new Properties()
properties.load(it)
set("springBootVersion", properties["springBootVersion"])
set("nativeBuildToolsVersion", properties["nativeBuildToolsVersion"])
}
}
dependencies {
implementation(platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}"))
implementation "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
implementation("org.springframework:spring-core")
implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.29.0'
implementation "org.graalvm.buildtools:native-gradle-plugin:${nativeBuildToolsVersion}"
}
gradlePlugin {
plugins {
modulePlugin {
id = "org.springframework.shell.module"
implementationClass = "org.springframework.shell.gradle.ModulePlugin"
}
starterPlugin {
id = "org.springframework.shell.starter"
implementationClass = "org.springframework.shell.gradle.StarterPlugin"
}
bomPlugin {
id = "org.springframework.shell.bom"
implementationClass = "org.springframework.shell.gradle.BomPlugin"
}
docsPlugin {
id = "org.springframework.shell.docs"
implementationClass = "org.springframework.shell.gradle.DocsPlugin"
}
samplePlugin {
id = "org.springframework.shell.sample"
implementationClass = "org.springframework.shell.gradle.SamplePlugin"
}
toolchainPlugin {
id = "org.springframework.shell.toolchain"
implementationClass = "org.springframework.shell.gradle.ToolchainPlugin"
}
}
}