Skip to content

Commit

Permalink
Replace Gradle conventions with configuration blocks. (#341)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
blackwinter committed Feb 16, 2024
1 parent 8a09c09 commit d27e2ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion gradle/source-layout.gradle
Expand Up @@ -22,5 +22,7 @@ jar {
}

plugins.withId('war') {
webAppDirName = 'src/main/webapp'
war {
webAppDirectory = file('src/main/webapp')
}
}
8 changes: 5 additions & 3 deletions metafix-ide/build.gradle
Expand Up @@ -12,11 +12,13 @@ dependencies {
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'

mainClassName = 'org.eclipse.xtext.ide.server.ServerLauncher'
applicationName = 'xtext-server'
application {
mainClass = 'org.eclipse.xtext.ide.server.ServerLauncher'
applicationName = 'xtext-server'
}

shadowJar {
from(project.convention.getPlugin(JavaPluginConvention).sourceSets.main.output)
from(sourceSets.main.output)
configurations = [project.configurations.runtimeClasspath]

exclude(
Expand Down

0 comments on commit d27e2ca

Please sign in to comment.