Change from java plugin to java-library plugin

The java-library plugin is an extension of the older java plugin.
It introduces the api dependency configuration and helps us to get
the right scope in the generated POM.
This commit is contained in:
Ian Young
2022-05-09 18:12:54 +01:00
committed by rstoyanchev
parent 3f8c133ad1
commit 7cb8c3d9ae
3 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ ext {
allprojects {
group = "org.springframework.webflow"
apply plugin: "java"
apply plugin: "java-library"
apply plugin: "io.spring.dependency-management"
apply plugin: "org.springframework.build.optional-dependencies"
apply from: "${rootProject.projectDir}/ide.gradle"

View File

@@ -10,7 +10,7 @@ publishing {
}
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
fromResolutionOf('compileClasspath')
}
usage('java-runtime') {
fromResolutionResult()

View File

@@ -1,7 +1,7 @@
description = "Spring Web Flow"
dependencies {
implementation(project(":spring-binding"))
api(project(":spring-binding"))
implementation("org.springframework:spring-web")
implementation("org.springframework:spring-webmvc")