Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 160 for serviceOf (0.36 sec)

  1. platforms/core-configuration/core-kotlin-extensions/src/main/kotlin/org/gradle/internal/extensions/core/TaskInternalExtensions.kt

    import org.gradle.internal.service.ServiceRegistry
    
    
    internal
    inline fun <reified T : Any> TaskInternal.serviceOf(): T =
        project.serviceOf()
    
    
    inline fun <reified T : Any> Project.serviceOf(): T =
        (this as ProjectInternal).services.get()
    
    
    inline fun <reified T : Any> GradleInternal.serviceOf(): T =
        services.get()
    
    
    inline fun <reified T : Any> ServiceRegistry.get(): T =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 16:55:36 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheState.kt

            }
            if (gradle.isRootBuild) {
                gradle.serviceOf<CacheConfigurationsInternal>().setCleanupHasBeenConfigured(true)
            }
        }
    
        private
        suspend fun DefaultWriteContext.writeBuildOutputCleanupRegistrations(gradle: GradleInternal) {
            val buildOutputCleanupRegistry = gradle.serviceOf<BuildOutputCleanupRegistry>()
            withGradleIsolate(gradle, userTypesCodec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/KotlinBuildScriptModelBuilder.kt

    internal
    fun ProjectInternal.accessorsClassPathOf(classPath: ClassPath): AccessorsClassPath {
        val stage1BlocksAccessorClassPathGenerator = serviceOf<Stage1BlocksAccessorClassPathGenerator>()
        val projectAccessorClassPathGenerator = serviceOf<ProjectAccessorsClassPathGenerator>()
        val dependenciesAccessors = serviceOf<DependenciesAccessors>()
        return (projectAccessorClassPathGenerator.projectAccessorsClassPath(this, classPath)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 11:06:08 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/services/DefaultIsolatedProjectEvaluationListenerProvider.kt

            beforeProject.clear()
            afterProject.clear()
        }
    
        private
        fun isolate(actions: IsolatedProjectActions, owner: IsolateOwner) =
            IsolatedActionSerializer(owner, owner.serviceOf(), owner.serviceOf())
                .serialize(actions)
    }
    
    
    private
    data class IsolatedProjectActions(
        val beforeProject: IsolatedProjectActionList,
        val afterProject: IsolatedProjectActionList
    )
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/internal/IsolatedProjectsSafeKotlinDslScriptsModelBuilder.kt

            rootProject.gradleSourceRoots()
        }
    
        val classPathModeExceptions: List<Exception> by unsafeLazy {
            rootProject.serviceOf<ClassPathModeExceptionCollector>().exceptions
        }
    
        val implicitImports: List<String> by unsafeLazy {
            rootProject.serviceOf<ImplicitImports>().list
        }
    
        val nonProjectScriptPaths: ScriptClassPath by unsafeLazy {
            ScriptClassPath(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 11:06:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/SettingsExtensions.kt

     */
    package org.gradle.kotlin.dsl
    
    import org.gradle.api.Plugin
    import org.gradle.api.initialization.Settings
    import org.gradle.api.plugins.PluginAware
    import org.gradle.kotlin.dsl.support.serviceOf
    
    import kotlin.reflect.KProperty
    
    
    /**
     * Applies the plugin of the given type [T]. Does nothing if the plugin has already been applied.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 09:50:04 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/tasks/GeneratePrecompiledScriptPluginAccessors.kt

            val dependencyManagementServices = gradle.serviceOf<DependencyManagementServices>()
            val fileCollectionFactory = gradle.serviceOf<FileCollectionFactory>()
            val dependencyResolutionServices = dependencyManagementServices.create(
                gradle.serviceOf<FileResolver>(),
                fileCollectionFactory,
                gradle.serviceOf<DependencyMetaDataProvider>(),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:10:49 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/provider/KotlinScriptClassPathProvider.kt

            "gradleKotlinDsl"
        )
    
    
    internal
    fun Project.fileCollectionOf(files: Collection<File>, name: String): FileCollection =
        serviceOf<FileCollectionFactory>().fixed(name, files)
    
    
    internal
    fun kotlinScriptClassPathProviderOf(project: Project) =
        project.serviceOf<KotlinScriptClassPathProvider>()
    
    
    internal
    typealias JarsProvider = () -> Collection<File>
    
    
    class KotlinScriptClassPathProvider(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:16:36 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/concurrent/IO.kt

     * limitations under the License.
     */
    
    package org.gradle.kotlin.dsl.concurrent
    
    import org.gradle.api.Project
    import org.gradle.internal.service.scopes.Scope
    import org.gradle.internal.service.scopes.ServiceScope
    
    import org.gradle.kotlin.dsl.support.serviceOf
    import org.gradle.kotlin.dsl.support.useToRun
    
    import java.io.File
    
    
    /**
     * A scheduler of IO actions.
     */
    interface IO {
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/BuildScanInfoCollectingServices.kt

    import org.gradle.build.event.BuildEventsListenerRegistry
    // Using star import to workaround https://youtrack.jetbrains.com/issue/KTIJ-24390
    import org.gradle.kotlin.dsl.*
    import org.gradle.kotlin.dsl.support.serviceOf
    
    /**
     * In build-logic and main build, register a BuildService instance separately,
     * which collects necessary information for build scan.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 03:34:53 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top