Skip to content

Commit d27e2ca

Browse files
committed
Replace Gradle conventions with configuration blocks. (#341)
Access to plugin conventions has been deprecated and is scheduled to be removed in Gradle 9.0. See: https://docs.gradle.org/8.6/userguide/upgrading_version_8.html#deprecated_access_to_conventions
1 parent 8a09c09 commit d27e2ca

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

gradle/source-layout.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ jar {
2222
}
2323

2424
plugins.withId('war') {
25-
webAppDirName = 'src/main/webapp'
25+
war {
26+
webAppDirectory = file('src/main/webapp')
27+
}
2628
}

metafix-ide/build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ dependencies {
1212
apply plugin: 'application'
1313
apply plugin: 'com.github.johnrengelman.shadow'
1414

15-
mainClassName = 'org.eclipse.xtext.ide.server.ServerLauncher'
16-
applicationName = 'xtext-server'
15+
application {
16+
mainClass = 'org.eclipse.xtext.ide.server.ServerLauncher'
17+
applicationName = 'xtext-server'
18+
}
1719

1820
shadowJar {
19-
from(project.convention.getPlugin(JavaPluginConvention).sourceSets.main.output)
21+
from(sourceSets.main.output)
2022
configurations = [project.configurations.runtimeClasspath]
2123

2224
exclude(

0 commit comments

Comments
 (0)