From d829c6accce494e9957409881f0cf9dfa744cce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergej=20Ko=C5=A1=C4=8Dejev?= Date: Fri, 1 Nov 2024 23:11:57 +0100 Subject: [PATCH] build: rename properties to camel case for consistency --- .github/workflows/gradle.yml | 2 +- build.gradle | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 6c2ad9a..775292b 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -15,4 +15,4 @@ jobs: java-version: '17' distribution: 'temurin' - name: Test publishing - run: ./gradlew publishToMavenLocal -Pjdk_version=21.0.4 -Pjdk_build=b631.2 + run: ./gradlew publishToMavenLocal -PjdkVersion=21.0.4 -PjdkBuild=b631.2 diff --git a/build.gradle b/build.gradle index de4270a..827e236 100644 --- a/build.gradle +++ b/build.gradle @@ -7,15 +7,15 @@ import de.undercouch.gradle.tasks.download.Download import org.gradle.api.publish.maven.internal.publication.MavenPomInternal group 'com.jetbrains.jdk' -def versionString = provider { - if (!project.hasProperty('jdk_version')) { - throw new GradleException("Project property 'jdk_version' must be set") +Provider versionString = provider { + if (!project.hasProperty('jdkVersion')) { + throw new GradleException("Project property 'jdkVersion' must be set") } - if (!project.hasProperty('jdk_build')) { - throw new GradleException("Project property 'jdk_build' must be set") + if (!project.hasProperty('jdkBuild')) { + throw new GradleException("Project property 'jdkBuild' must be set") } - "$jdk_version-$jdk_build".toString() + "$jdkVersion-$jdkBuild".toString() } def architectures = [ @@ -73,7 +73,7 @@ distroTypes.each { distroType -> architectures.each { architecture -> def downloadTask = tasks.register('get_' + distroType + '_' + architecture, Download) { - def fileName = provider { "${distroType}-${jdk_version}-${architecture}-${jdk_build}.tar.gz".toString() } + def fileName = provider { "${distroType}-${jdkVersion}-${architecture}-${jdkBuild}.tar.gz".toString() } src fileName.map { "https://cache-redirector.jetbrains.com/intellij-jbr/$it" } dest layout.buildDirectory.file(fileName)