Skip to content

Commit

Permalink
build: rename properties to camel case for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
sergej-koscejev committed Nov 1, 2024
1 parent 6b51ee5 commit 4db48f0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ plugins {
import de.undercouch.gradle.tasks.download.Download

group 'com.jetbrains.jdk'
def versionString = provider {
if (!project.hasProperty('jdk_version')) {
throw new GradleException("Project property 'jdk_version' must be set")
Provider<String> 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()
}

version = new Object() {
Expand Down Expand Up @@ -76,7 +76,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)
Expand Down

0 comments on commit 4db48f0

Please sign in to comment.