Update deprecated Gradle task creation
Backport Bot / build (push) Waiting to run
Details
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:17], map[id:ubuntu-latest name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:ubuntu-latest name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:23], map[id:ubuntu-latest name:Linux]) (push) Waiting to run
Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run
Details
Backport Bot / build (push) Waiting to run
Details
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:17], map[id:ubuntu-latest name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:ubuntu-latest name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:23], map[id:ubuntu-latest name:Linux]) (push) Waiting to run
Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run
Details
This commit replaces use of the deprecated Gradle `task` method with the new `tasks.register` method. Closes gh-34617 Signed-off-by: Dmitry Sulman <dmitry.sulman@gmail.com>
This commit is contained in:
parent
adb4b675fc
commit
5455c645f0
|
@ -98,7 +98,7 @@ if (project.name == "spring-oxm") {
|
|||
}
|
||||
|
||||
// Include project specific settings
|
||||
task eclipseSettings(type: Copy) {
|
||||
tasks.register('eclipseSettings', Copy) {
|
||||
from rootProject.files(
|
||||
'src/eclipse/org.eclipse.core.resources.prefs',
|
||||
'src/eclipse/org.eclipse.jdt.core.prefs',
|
||||
|
@ -107,7 +107,7 @@ task eclipseSettings(type: Copy) {
|
|||
outputs.upToDateWhen { false }
|
||||
}
|
||||
|
||||
task cleanEclipseSettings(type: Delete) {
|
||||
tasks.register('cleanEclipseSettings', Delete) {
|
||||
delete project.file('.settings/org.eclipse.core.resources.prefs')
|
||||
delete project.file('.settings/org.eclipse.jdt.core.prefs')
|
||||
delete project.file('.settings/org.eclipse.jdt.ui.prefs')
|
||||
|
|
|
@ -87,14 +87,15 @@ javadoc {
|
|||
logging.captureStandardOutput LogLevel.INFO // suppress "## warnings" message
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
tasks.register('sourcesJar', Jar) {
|
||||
dependsOn classes
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
archiveClassifier.set("sources")
|
||||
from sourceSets.main.allSource
|
||||
// Don't include or exclude anything explicitly by default. See SPR-12085.
|
||||
}
|
||||
|
||||
task javadocJar(type: Jar) {
|
||||
tasks.register('javadocJar', Jar) {
|
||||
archiveClassifier.set("javadoc")
|
||||
from javadoc
|
||||
}
|
||||
|
|
|
@ -25,40 +25,40 @@ configurations {
|
|||
graalvm
|
||||
}
|
||||
|
||||
task javapoetRepackJar(type: ShadowJar) {
|
||||
tasks.register('javapoetRepackJar', ShadowJar) {
|
||||
archiveBaseName = 'spring-javapoet-repack'
|
||||
archiveVersion = javapoetVersion
|
||||
configurations = [project.configurations.javapoet]
|
||||
relocate('com.squareup.javapoet', 'org.springframework.javapoet')
|
||||
}
|
||||
|
||||
task javapoetSource(type: ShadowSource) {
|
||||
tasks.register('javapoetSource', ShadowSource) {
|
||||
configurations = [project.configurations.javapoet]
|
||||
relocate('com.squareup.javapoet', 'org.springframework.javapoet')
|
||||
outputDirectory = file("build/shadow-source/javapoet")
|
||||
}
|
||||
|
||||
task javapoetSourceJar(type: Jar) {
|
||||
tasks.register('javapoetSourceJar', Jar) {
|
||||
archiveBaseName = 'spring-javapoet-repack'
|
||||
archiveVersion = javapoetVersion
|
||||
archiveClassifier = 'sources'
|
||||
from javapoetSource
|
||||
}
|
||||
|
||||
task objenesisRepackJar(type: ShadowJar) {
|
||||
tasks.register('objenesisRepackJar', ShadowJar) {
|
||||
archiveBaseName = 'spring-objenesis-repack'
|
||||
archiveVersion = objenesisVersion
|
||||
configurations = [project.configurations.objenesis]
|
||||
relocate('org.objenesis', 'org.springframework.objenesis')
|
||||
}
|
||||
|
||||
task objenesisSource(type: ShadowSource) {
|
||||
tasks.register('objenesisSource', ShadowSource) {
|
||||
configurations = [project.configurations.objenesis]
|
||||
relocate('org.objenesis', 'org.springframework.objenesis')
|
||||
outputDirectory = file("build/shadow-source/objenesis")
|
||||
}
|
||||
|
||||
task objenesisSourceJar(type: Jar) {
|
||||
tasks.register('objenesisSourceJar', Jar) {
|
||||
archiveBaseName = 'spring-objenesis-repack'
|
||||
archiveVersion = objenesisVersion
|
||||
archiveClassifier = 'sources'
|
||||
|
|
Loading…
Reference in New Issue