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 4, 2024
1 parent 9fb60d7 commit d829c6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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<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()
}

def architectures = [
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d829c6a

Please sign in to comment.