Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for buildTimestamp (0.08 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. .teamcity/src/main/kotlin/configurations/Gradleception.kt

                listOf(
                    stage.getBuildScanCustomValueParam(),
                    "-Pgradle_installPath=dogfood-first-for-hash",
                    "-PignoreIncomingBuildReceipt=true",
                    "-PbuildTimestamp=$dogfoodTimestamp1",
                    buildScanTagForType,
                ) + extraSysProp
                ).joinToString(" "),
            buildJvm = buildJvm,
            extraSteps = {
                script {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Oct 08 12:58:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top