Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for compileScala (0.24 sec)

  1. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/IncrementalScalaCompileIntegrationTest.groovy

            expect:
            run('compileScala').assertTasksSkipped(':compileJava')
    
            when:
            file('build.gradle').text += '''
                compileScala.options.debug = false
            '''
            then:
            run('compileScala').assertTasksSkipped(':compileJava')
            run('compileScala').assertTasksSkipped(':compileJava', ':compileScala')
        }
    
        def recompilesDependentClasses() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. platforms/jvm/scala/src/test/groovy/org/gradle/api/plugins/scala/ScalaPluginTest.groovy

        }
    
        def "compile dependency to java compilation can be turned off by changing the compile task classpath"() {
            when:
            scalaPlugin.apply(project)
    
            then:
            def task = project.tasks['compileScala']
            task.setClasspath(project.sourceSets.main.compileClasspath)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/ScalaCompileJavaToolchainIntegrationTest.groovy

            when:
            withInstallations(currentJdk, otherJdk).run(":compileScala")
            then:
            executedAndNotSkipped(":compileScala")
    
            when:
            withInstallations(currentJdk, otherJdk).run(":compileScala")
            then:
            skipped(":compileScala")
    
            when:
            withInstallations(currentJdk, otherJdk).run(":compileScala", "-Pchanged", "--info")
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 03:32:33 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/UpToDateScalaCompileIntegrationTest.groovy

            when:
            run 'compileScala'
    
            then:
            executedAndNotSkipped ':compileScala'
    
            when:
            run 'compileScala'
    
            then:
            skipped ':compileScala'
    
            when:
            buildScript(scalaProjectBuildScript(newZincVersion, newScalaVersion))
            run 'compileScala'
    
            then:
            executedAndNotSkipped ':compileScala'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/BasicZincScalaCompilerIntegrationTest.groovy

                }
            """
    
            expect:
            succeeds("compileScala")
        }
    
        def "compile bad scala code do not fail the build when options.failOnError is false"() {
            given:
            badCode()
    
            and:
            buildFile << "compileScala.options.failOnError = false\n"
    
            expect:
            succeeds 'compileScala'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/ZincScalaCompilerIntegrationTest.groovy

            when:
            run("compileScala")
    
            then:
            executedAndNotSkipped(":compileScala")
    
            when:
            file("src/main/scala/Person.scala").delete()
            file("src/main/scala/Person.scala") << "class Person"
            args("-PscalaVersion=$version") // each run clears args (argh!)
            run("compileScala")
    
            then:
            executedAndNotSkipped(":compileScala")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  7. platforms/jvm/scala/src/integTest/groovy/org/gradle/integtests/ScalaAnnotationProcessingIntegrationTest.groovy

            given:
            buildFile << basicScalaProject()
            file('src/main/scala/MyClass.java') << javaClassWithCustomAnnotation()
    
            when:
            fails 'compileScala'
    
            then:
            skipped(':compileJava')
            executedAndNotSkipped(':compileScala')
            result.assertHasErrorOutput('error: package org.gradle does not exist')
            failure.assertHasCause('javac returned non-zero exit code')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  8. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/ScalaCompileIntegrationTest.groovy

            file("src/main/scala/JavaThing.java") << "public class JavaThing {}"
            file("src/main/scala/ScalaHall.scala") << "class ScalaHall(name: String)"
    
            when:
            run ":compileScala"
    
            then:
            executedAndNotSkipped(":compileScala")
    
            JavaVersion.forClass(scalaClassFile("JavaThing.class").bytes) == currentJdk.javaVersion
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  9. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/ForceScalaCompileIntegrationTest.groovy

    package org.test
    
    class Person(name: String) {
        def getName(): String = name
    }
    """
            when:
            succeeds 'compileScala'
    
            then:
            !file('build/tmp/scala/compilerAnalysis/compileScala.analysis').exists()
            file('build/tmp/scala/compilerAnalysis/compileScala.mapping').exists()
        }
    
        @Issue("gradle/gradle#13224")
        def 'changing one file only produces valid compilation output'() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 23:46:06 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. platforms/jvm/scala/src/integTest/groovy/org/gradle/integtests/ScalaProjectIntegrationTest.groovy

    dependencyResolutionManagement {
        ${mavenCentralRepository()}
    }
    """
            and:
            file('src/main/scala/Test.scala') << """
    class Test { }
    """
            when:
            succeeds 'compileScala'
    
            then:
            executedAndNotSkipped(':compileScala')
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top