- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for buildTimeStamp (0.1 sec)
-
build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-identity.gradle.kts
// TODO Simplify the buildTimestamp() calculation if possible fun Project.buildTimestamp(): Provider<String> = providers.of(BuildTimestampValueSource::class) { parameters { buildTimestampFromBuildReceipt = buildTimestampFromBuildReceipt() buildTimestampFromGradleProperty = buildTimestamp runningOnCi = buildRunningOnCi
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 4.9K bytes - Viewed (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/tasks/BuildReceipt.kt
@get:Input abstract val promotionBuild: Property<Boolean> @get:Input @get:Optional abstract val buildTimestamp: Property<Date> @get:OutputDirectory abstract val receiptFolder: DirectoryProperty fun buildTimestampFrom(provider: Provider<String>) { buildTimestamp = provider.map { buildTimestampString -> timestampFormat.parse(buildTimestampString) } } @TaskAction
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 4.2K bytes - Viewed (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/extension/ModuleIdentityExtension.kt
abstract class ModuleIdentityExtension(val tasks: TaskContainer, val objects: ObjectFactory) { abstract val version: Property<GradleVersion> abstract val baseName: Property<String> abstract val buildTimestamp: Property<String> abstract val snapshot: Property<Boolean> abstract val promotionBuild: Property<Boolean> abstract val releasedVersions: Property<ReleasedVersionsDetails> fun createBuildReceipt() {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 2.1K bytes - Viewed (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/provider/BuildTimestampValueSource.kt
get() = parameters.run { when { buildTimestampFromBuildReceipt.isPresent -> "from build receipt" buildTimestampFromGradleProperty.isPresent -> "from buildTimestamp property" runningInstallTask.get() -> "from current time because installing" runningDocsTestTask.get() -> "from current time because testing docs"
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 3.1K bytes - Viewed (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/extension/ReleasedVersionsDetails.kt
listOf(releasedVersions.latestReleaseSnapshot, releasedVersions.latestRc) .filter { it.gradleVersion() > latestFinalRelease.gradleVersion() }.maxByOrNull { it.buildTimeStamp() } ?: latestFinalRelease val previousVersions = (listOf(latestRelease) + releasedVersions.finalReleases) .filter { it.gradleVersion() >= lowestInterestingVersion &&
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Jun 10 06:17:20 UTC 2024 - 3.3K bytes - Viewed (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/model/ReleasedVersion.kt
import java.util.Date import java.util.TimeZone data class ReleasedVersion(val version: String, val buildTime: String) { fun gradleVersion() = GradleVersion.version(version) fun buildTimeStamp(): Date = SimpleDateFormat("yyyyMMddHHmmssZ").apply { timeZone = TimeZone.getTimeZone("UTC") }.parse(buildTime)
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 1K bytes - Viewed (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/provider/BuildTimestampFromBuildReceiptValueSource.kt
} override fun obtain(): String? = parameters.run { buildReceiptString() ?.let(BuildReceipt::readBuildReceiptFromString) ?.let { buildReceipt -> buildReceipt["buildTimestamp"] as String } } override fun getDisplayName(): String = "the build timestamp extracted from the build receipt".let { when {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 1.9K bytes - Viewed (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildParams.kt
const val BUILD_MILESTONE_NUMBER = "milestoneNumber" const val BUILD_PROMOTION_COMMIT_ID = "promotionCommitId" const val BUILD_RC_NUMBER = "rcNumber" const val BUILD_TIMESTAMP = "buildTimestamp" const val BUILD_VCS_NUMBER = "BUILD_VCS_NUMBER" const val BUILD_VERSION_QUALIFIER = "versionQualifier" const val CI_ENVIRONMENT_VARIABLE = "CI"
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Oct 09 08:19:42 UTC 2024 - 16.9K bytes - Viewed (0)