Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for withClassJar (0.18 sec)

  1. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinDslJvmTargetIntegrationTest.kt

    import org.junit.Test
    
    
    class KotlinDslJvmTargetIntegrationTest : AbstractKotlinIntegrationTest() {
    
        @Test
        fun `scripts are compiled using the build jvm target`() {
    
            withClassJar("utils.jar", JavaClassUtil::class.java)
    
            withBuildScript("""
                buildscript {
                    dependencies {
                        classpath(files("utils.jar"))
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 08:31:21 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/support/ClassBytesRepositoryTest.kt

                }
            }
        }
    
        @Test
        fun `ignores invalid classpath entries`() {
    
            val entries = listOf(
                withClassJar("some.JAR", DeepThought::class.java),
                withClassJar("some.zip", LightThought::class.java),
                withClassJar("some.tar.gz", ZeroThought::class.java),
                withFile("some.xml")
            )
    
            ClassBytesRepository(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 17:45:10 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/codegen/ApiTypeProviderTest.kt

    
    class ApiTypeProviderTest : AbstractKotlinIntegrationTest() {
    
        @Test
        fun `provides a source code generation oriented model over a classpath`() {
    
            val jars = listOf(
                withClassJar(
                    "some.jar",
                    Plugin::class.java,
                    PluginCollection::class.java,
                    ObjectFactory::class.java
                )
            )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinInitScriptIntegrationTest.kt

    import org.hamcrest.MatcherAssert.assertThat
    
    import org.junit.Test
    
    
    class KotlinInitScriptIntegrationTest : AbstractKotlinIntegrationTest() {
    
        @Test
        fun `initscript classpath`() {
    
            withClassJar("fixture.jar", DeepThought::class.java)
    
            val initScript =
                withFile(
                    "init.gradle.kts",
                    """
    
                    initscript {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Sep 24 17:45:43 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslIntegrationTest.kt

                    """
                )
            )
        }
    
        @Test
        fun `can cross configure buildscript`() {
    
            withClassJar("zero.jar", ZeroThought::class.java)
            withClassJar("light.jar", LightThought::class.java)
            withClassJar("deep.jar", DeepThought::class.java)
    
            val init = withFile(
                "some.init.gradle.kts",
                """
                projectsLoaded {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 18:26:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  6. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/ScriptCachingIntegrationTest.kt

                }
            }
        }
    
        @Test
        fun `same script & target type different classpath`() {
    
            // given: different classpath
            withClassJar("left/fixture.jar")
            withClassJar("right/fixture.jar", DeepThought::class.java)
    
            // and: same script & target type
            val sameContent = """
                buildscript {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:33:23 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinSettingsScriptIntegrationTest.kt

            )
        }
    
        @Test
        fun `given a script plugin with a buildscript block, it will be used to compute its classpath`() {
    
            withClassJar("fixture.jar", DeepThought::class.java)
    
            withFile(
                "other.settings.gradle.kts",
                """
                buildscript {
                    dependencies { classpath(files("fixture.jar")) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/AbstractKotlinIntegrationTest.kt

        protected
        fun compileKotlin(taskName: String = "classes"): ExecutionResult =
            build(taskName).assertTaskExecuted(":compileKotlin")
    
        protected
        fun withClassJar(fileName: String, vararg classes: Class<*>) =
            withZip(fileName, classEntriesFor(*classes))
    
        protected
        fun withZip(fileName: String, entries: Sequence<Pair<String, ByteArray>>): File =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 16:44:39 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top