Skip to content

Commit

Permalink
Clean up used gradle deprecated features.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacek-mankowski committed Nov 8, 2023
1 parent 7f554f0 commit 8af76cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ extensions.configure(NexusPublishExtension) { NexusPublishExtension extension ->

project.group = 'info.fingo.xactus'

extensions.configure(JavaPluginExtension) { javaPluginExtension ->
javaPluginExtension.toolchain { javaToolchainSec ->
javaToolchainSec.languageVersion = JavaLanguageVersion.of(8)
extensions.configure(JavaPluginExtension) {
it.toolchain { toolchain ->
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
}
}

Expand All @@ -48,7 +48,7 @@ interface Constants {

def generateJFlexTaskProvider = tasks.register('generateJFlex', JavaExec) {
jFlexExec ->
def outputDirectory = "$buildDir/jflex-generated"
def outputDirectory = "${project.layout.buildDirectory.get()}/jflex-generated"
def classesDestinationDirectory = file("$outputDirectory/$Constants.CODE_GENERATION_TARGET_DIRECTORY")
def inputFile = file('src/main/jflex/xpath.lex')

Expand All @@ -71,7 +71,7 @@ def generateJFlexTaskProvider = tasks.register('generateJFlex', JavaExec) {

def generateJCupTaskProvider = tasks.register('generateJCup', JavaExec) {
jCupExec ->
def outputDirectory = "$buildDir/jcup-generated"
def outputDirectory = "${project.layout.buildDirectory.get()}/jcup-generated"
def classesDestinationDirectory = file("$outputDirectory/$Constants.CODE_GENERATION_TARGET_DIRECTORY")
def inputFile = file('src/main/jcup/xpath.cup')

Expand Down Expand Up @@ -144,7 +144,7 @@ extensions.configure(JavaPluginExtension) {
extensions.configure(PublishingExtension) { publishingExtension ->
publishingExtension.repositories.maven { MavenArtifactRepository repo ->
repo.name = 'local'
repo.url = uri(isSnapshot() ? "$buildDir/repos/snapshots" : "$buildDir/repos/releases")
repo.url = uri(isSnapshot() ? "${project.layout.buildDirectory.get()}/repos/snapshots" : "${project.layout.buildDirectory.get()}/repos/releases")
}

publishingExtension.publications.register(Constants.PUBLICATION_NAME, MavenPublication) {
Expand Down

0 comments on commit 8af76cc

Please sign in to comment.