Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 80 for LockMode (0.28 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/signatures/CrossBuildCachingKeyService.java

            BuildCommencedTimeProvider timeProvider,
            boolean refreshKeys) {
            cache = cacheBuilderFactory
                .createCrossVersionCacheBuilder("keyrings")
                .withInitialLockMode(FileLockManager.LockMode.OnDemand)
                .open();
            this.buildOperationRunner = buildOperationRunner;
            this.delegate = delegate;
            this.timeProvider = timeProvider;
            this.refreshKeys = refreshKeys;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:44:56 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheRepository.kt

        private
        val cache = cacheBuilderFactory
            .createCrossVersionCacheBuilder("configuration-cache")
            .withDisplayName("Configuration Cache")
            .withInitialLockMode(FileLockManager.LockMode.OnDemand) // Don't need to lock anything until we use the caches
            .withLruCacheCleanup()
            .open()
    
        private
        fun CacheBuilder.withLruCacheCleanup(): CacheBuilder =
            withCleanupStrategy(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_6.adoc

    The value is now set via a `Property<LockMode>` instead of a direct setter.
    This means that the notation to set the value has to be updated for the Kotlin DSL:
    
    ```
    dependencyLocking {
        lockMode.set(LockMode.STRICT)
    }
    ```
    
    Users of the Groovy DSL should not be impacted as the notation `lockMode = LockMode.STRICT` remains valid.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  4. platforms/jvm/scala/src/main/java/org/gradle/api/internal/tasks/scala/ZincScalaCompilerFactory.java

            final PersistentCache zincCache = globalScopedCacheBuilderFactory.createCacheBuilder(zincCacheKey)
                .withDisplayName(zincCacheName)
                .withInitialLockMode(FileLockManager.LockMode.OnDemand)
                .open();
    
    
            File compilerBridgeJar;
            if (isScala3(scalaVersion)) {
                compilerBridgeJar = findFile("scala3-sbt-bridge", hashedScalaClasspath.getClasspath());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache-example-client/src/main/java/org/gradle/caching/example/BuildCacheClientModule.java

    import java.net.InetSocketAddress;
    import java.net.UnknownHostException;
    import java.nio.file.Files;
    import java.util.Collections;
    import java.util.function.Supplier;
    
    import static org.gradle.cache.FileLockManager.LockMode.OnDemand;
    import static org.gradle.internal.snapshot.CaseSensitivity.CASE_SENSITIVE;
    
    @SuppressWarnings("MethodMayBeStatic")
    class BuildCacheClientModule extends AbstractModule {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 07:11:58 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/internal/resolve/caching/CrossBuildCachingRuleExecutor.java

            this.keyToSnapshottable = keyToSnapshottable;
            this.timeProvider = timeProvider;
            this.cache = cacheBuilderFactory
                .createCacheBuilder(name)
                .withInitialLockMode(FileLockManager.LockMode.OnDemand)
                .open();
            IndexedCacheParameters<HashCode, CachedEntry<RESULT>> cacheParams = createCacheConfiguration(name, resultSerializer, cacheDecoratorFactory);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  7. platforms/jvm/toolchains-jvm-shared/src/main/java/org/gradle/jvm/toolchain/internal/install/DefaultJdkCacheDirectory.java

        }
    
        public FileLock acquireWriteLock(File destinationFile, String operationName) {
            return lockManager.lock(destinationFile, DefaultLockOptions.mode(FileLockManager.LockMode.Exclusive), destinationFile.getName(), operationName);
        }
    
        public File getDownloadLocation() {
            return jdkDirectory;
        }
    
        private static String getNameWithoutExtension(File file) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 23:47:49 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/signatures/CrossBuildSignatureVerificationService.java

            store = cacheBuilderFactory.createCacheBuilder("signature-verification")
                .withDisplayName("Signature verification cache")
                .withInitialLockMode(FileLockManager.LockMode.OnDemand)
                .open();
            InterningStringSerializer stringSerializer = new InterningStringSerializer(new StringInterner());
            cache = store.createIndexedCache(
                IndexedCacheParameters.of(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:42:50 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCoordinator.java

    import java.util.concurrent.locks.Lock;
    import java.util.concurrent.locks.ReentrantLock;
    import java.util.function.Consumer;
    import java.util.function.Supplier;
    
    import static org.gradle.cache.FileLockManager.LockMode.Exclusive;
    
    @ThreadSafe
    public class DefaultCacheCoordinator implements CacheCreationCoordinator, ExclusiveCacheAccessCoordinator {
        private final static Logger LOG = LoggerFactory.getLogger(DefaultCacheCoordinator.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 01 12:21:15 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/parsing/ImportTest.kt

            assertTrue(analysisContext.errorCollector.errors.isEmpty())
        }
    
        private
        fun importOf(vararg nameParts: String) = Import(AccessChain(listOf(*nameParts)), mockSourceData)
    
        private
        val mockNode = object : LighterASTNode {
            override fun getTokenType(): IElementType = KtNodeTypes.FUN // whatever, doesn't matter
    
            override fun getStartOffset(): Int = 0
    
            override fun getEndOffset(): Int = 0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:46 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top