mirror of https://github.com/apache/jmeter.git
chore: bump Gradle to 8.9
This commit is contained in:
parent
871aa60522
commit
3e9af5de35
|
@ -19,6 +19,10 @@ tasks.withType<AbstractArchiveTask>().configureEach {
|
|||
// Ensure builds are reproducible
|
||||
isPreserveFileTimestamps = false
|
||||
isReproducibleFileOrder = true
|
||||
dirMode = "775".toInt(8)
|
||||
fileMode = "664".toInt(8)
|
||||
filePermissions {
|
||||
unix("rw-r--r--")
|
||||
}
|
||||
dirPermissions {
|
||||
unix("rwxr-xr-x")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,17 +26,21 @@ java {
|
|||
withSourcesJar()
|
||||
}
|
||||
|
||||
val archivesBaseName = when (name) {
|
||||
// We maintain the file names for backward compatibility
|
||||
val archiveName = when (name) {
|
||||
"jorphan", "bshclient" -> name
|
||||
"launcher" -> "ApacheJMeter"
|
||||
else -> "ApacheJMeter_$name"
|
||||
}
|
||||
setProperty("archivesBaseName", archivesBaseName)
|
||||
|
||||
base {
|
||||
archivesName = archiveName
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("mavenJava") {
|
||||
artifactId = archivesBaseName
|
||||
artifactId = archiveName
|
||||
from(components["java"])
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,13 +21,16 @@ plugins {
|
|||
id("build-logic.publish-to-central")
|
||||
}
|
||||
|
||||
val archivesBaseName = "ApacheJMeter_$name"
|
||||
setProperty("archivesBaseName", archivesBaseName)
|
||||
val archiveName = "ApacheJMeter_$name"
|
||||
|
||||
base {
|
||||
archivesName = archiveName
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("mavenJavaPlatform") {
|
||||
artifactId = archivesBaseName
|
||||
artifactId = archiveName
|
||||
from(components["javaPlatform"])
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -17,8 +17,8 @@
|
|||
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionSha256Sum=9d926787066a081739e8200858338b4a69e837c3a821a33aca9db09dd4a41026
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
|
||||
distributionSha256Sum=d725d707bfabd4dfdc958c624003b3c80accc03f7037b5122c4b1d0ef15cecab
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
|
@ -55,7 +57,7 @@
|
|||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
|
@ -84,7 +86,8 @@ done
|
|||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||
' "$PWD" ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
@rem SPDX-License-Identifier: Apache-2.0
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
|
@ -43,11 +45,11 @@ set JAVA_EXE=java.exe
|
|||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if %ERRORLEVEL% equ 0 goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
echo. 1>&2
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
||||
echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
|
||||
|
@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
echo. 1>&2
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
||||
echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
|
||||
|
|
|
@ -82,8 +82,12 @@ val populateLibs by tasks.registering {
|
|||
doLast {
|
||||
val deps = extraTestDependencies.resolvedConfiguration.resolvedArtifacts
|
||||
with(libOpt) {
|
||||
fileMode = "644".toInt(8)
|
||||
dirMode = "755".toInt(8)
|
||||
filePermissions {
|
||||
unix("rw-r--r--")
|
||||
}
|
||||
dirPermissions {
|
||||
unix("rwxr-xr-x")
|
||||
}
|
||||
from(deps.map { it.file })
|
||||
}
|
||||
}
|
||||
|
|
|
@ -132,12 +132,16 @@ val populateLibs by tasks.registering {
|
|||
val bshclientProject = projects.src.bshclient.dependencyProject.path
|
||||
val jorphanProject = projects.src.jorphan.dependencyProject.path
|
||||
listOf(libs, libsExt, binLibs).forEach {
|
||||
it.fileMode = "644".toInt(8)
|
||||
it.dirMode = "755".toInt(8)
|
||||
it.filePermissions {
|
||||
unix("rw-r--r--")
|
||||
}
|
||||
it.dirPermissions {
|
||||
unix("rwxr-xr-x")
|
||||
}
|
||||
}
|
||||
for (dep in deps) {
|
||||
val compId = dep.id.componentIdentifier
|
||||
if (compId !is ProjectComponentIdentifier || !compId.build.isCurrentBuild) {
|
||||
if (compId !is ProjectComponentIdentifier) {
|
||||
// Move all non-JMeter jars to lib folder
|
||||
libs.from(dep.file)
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue