Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for BuildScanClock (0.19 sec)

  1. platforms/enterprise/enterprise/src/main/java/org/gradle/internal/scan/time/BuildScanClock.java

    /**
     * A view of the Gradle runtime's clock used by build scans.
     *
     * The provider is _required_ to provide monotonic timestamps.
     *
     * @since 4.2
     */
    @ServiceScope(Scope.BuildTree.class)
    public interface BuildScanClock {
    
        /**
         * The current wall clock time.
         */
        long getCurrentTime();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/impl/legacy/DefaultBuildScanClock.java

     * limitations under the License.
     */
    
    package org.gradle.internal.enterprise.impl.legacy;
    
    import org.gradle.internal.scan.time.BuildScanClock;
    import org.gradle.internal.time.Clock;
    
    import javax.inject.Inject;
    
    public class DefaultBuildScanClock implements BuildScanClock {
    
        private final Clock clock;
    
        @Inject
        public DefaultBuildScanClock(Clock clock) {
            this.clock = clock;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 15 17:58:47 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/legacy/BuildScanClockIntegTest.groovy

    import org.gradle.integtests.fixtures.AbstractIntegrationSpec
    import org.gradle.internal.scan.time.BuildScanClock
    
    class BuildScanClockIntegTest extends AbstractIntegrationSpec {
    
        def "can access build scan time provider"() {
            when:
            buildFile << """
                def time = project.services.get($BuildScanClock.name).currentTime
                println "timestamp: \$time"
            """
    
            succeeds("help")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 17 10:17:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt

    Class <org.gradle.internal.scan.time.BuildScanClock> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (BuildScanClock.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 967.9K bytes
    - Viewed (0)
Back to top