scripts

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Artificially create a class loader scope for Groovy script classes

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -2
    • +6
    ./DefaultScriptCompilerFactoryTest.groovy
    • -1
    • +5
    ./internal/BuildScriptTransformerSpec.groovy
    • -8
    • +12
    ./internal/DefaultScriptCompilationHandlerTest.groovy
    • -4
    • +6
    ./internal/FileCacheBackedScriptClassCompilerTest.groovy
  1. … 11 more files in changeset.
Artificially create a class loader scope for Groovy script classes

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -2
    • +6
    ./DefaultScriptCompilerFactoryTest.groovy
    • -1
    • +5
    ./internal/BuildScriptTransformerSpec.groovy
    • -8
    • +12
    ./internal/DefaultScriptCompilationHandlerTest.groovy
    • -4
    • +6
    ./internal/FileCacheBackedScriptClassCompilerTest.groovy
  1. … 11 more files in changeset.
Artificially create a class loader scope for Groovy script classes

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -2
    • +6
    ./DefaultScriptCompilerFactoryTest.groovy
    • -1
    • +5
    ./internal/BuildScriptTransformerSpec.groovy
    • -8
    • +12
    ./internal/DefaultScriptCompilationHandlerTest.groovy
    • -4
    • +6
    ./internal/FileCacheBackedScriptClassCompilerTest.groovy
  1. … 11 more files in changeset.
Artificially create a class loader scope for Groovy script classes

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -2
    • +6
    ./DefaultScriptCompilerFactoryTest.groovy
    • -1
    • +5
    ./internal/BuildScriptTransformerSpec.groovy
    • -8
    • +12
    ./internal/DefaultScriptCompilationHandlerTest.groovy
    • -4
    • +6
    ./internal/FileCacheBackedScriptClassCompilerTest.groovy
  1. … 11 more files in changeset.
Artificially create a class loader scope for Groovy script classes

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -2
    • +6
    ./DefaultScriptCompilerFactoryTest.groovy
    • -1
    • +5
    ./internal/BuildScriptTransformerSpec.groovy
    • -8
    • +12
    ./internal/DefaultScriptCompilationHandlerTest.groovy
    • -4
    • +6
    ./internal/FileCacheBackedScriptClassCompilerTest.groovy
  1. … 11 more files in changeset.
Artificially create a class loader scope for Groovy script classes

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -2
    • +6
    ./DefaultScriptCompilerFactoryTest.groovy
    • -1
    • +5
    ./internal/BuildScriptTransformerSpec.groovy
    • -8
    • +12
    ./internal/DefaultScriptCompilationHandlerTest.groovy
    • -4
    • +6
    ./internal/FileCacheBackedScriptClassCompilerTest.groovy
  1. … 11 more files in changeset.
Revert "Merge remote-tracking branch 'origin/sg/merges/pr-9419'"

This reverts commit 2f79026f5e127a8175e25844522237615b19ed52 because of a performance regression,

reversing changes made to 7f1e66079ce629ecde3e09e549e9796ab85761dc.

  1. … 90 more files in changeset.
Move ClassLoaderHierarchyHasher to :hashing

    • -1
    • +1
    ./internal/FileCacheBackedScriptClassCompilerTest.groovy
  1. … 34 more files in changeset.
Move ClassLoaderHierarchyHasher to :hashing

    • -1
    • +1
    ./internal/FileCacheBackedScriptClassCompilerTest.groovy
  1. … 34 more files in changeset.
Add integration tests for TextResources and remote script plugins

  1. … 6 more files in changeset.
Add integration tests for TextResources and remote script plugins

  1. … 6 more files in changeset.
Remove TextResourceLoader.Factory

  1. … 32 more files in changeset.
Merge branch 'master' into deprecate_http_download

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

  1. … 5 more files in changeset.
Replace 'Matchers' with 'CoreMatchers'

So we do not require 'org.hamcrest:hamcrest-library' as additional

dependency anymore. Which was only available for most of the tests

because it leaked onto the test compile classpath.

    • -1
    • +1
    ./internal/DefaultScriptCompilationHandlerTest.groovy
  1. … 160 more files in changeset.
Fix compilation errors introduced by TextUrlResource.Factory change

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

  1. … 11 more files in changeset.
Use 'implementation' dependencies everywhere

    • -1
    • +1
    ./internal/DefaultScriptCompilationHandlerTest.groovy
  1. … 284 more files in changeset.
Use 'implementation' dependencies everywhere

    • -1
    • +1
    ./internal/DefaultScriptCompilationHandlerTest.groovy
  1. … 281 more files in changeset.
Use 'implementation' dependencies everywhere

    • -1
    • +1
    ./internal/DefaultScriptCompilationHandlerTest.groovy
  1. … 284 more files in changeset.
Use 'implementation' dependencies everywhere

    • -1
    • +1
    ./internal/DefaultScriptCompilationHandlerTest.groovy
  1. … 282 more files in changeset.
Use 'implementation' dependencies everywhere

    • -1
    • +1
    ./internal/DefaultScriptCompilationHandlerTest.groovy
  1. … 283 more files in changeset.
Use 'implementation' dependencies everywhere

    • -1
    • +1
    ./internal/DefaultScriptCompilationHandlerTest.groovy
  1. … 283 more files in changeset.
Make script source hashing faster

Do not calcualte the hash for the same script multiple times.

The hash is now stored in the text resource itself so we don't need

an externall managed cache. The UriTextResource implementation has

been thoroughly optimized for local file URIs. Previously reading

those in was a major bottleneck due to copying every byte into 4(!)

different buffers.

Adding the HashCode to the TextResource made me aware of the fact

that the tooling API depended on these interfaces, although it should

never be reading scripts. It turns out that the script was attached to

the BuildLayout, where it didn't really belong. It is now only created

once the build is running and we are actually trying to load the settings

file. There were a few changes to types marked with @UsedByScanPlugin.

These were all checked against the scan plugin code base to ensure they

are safe. The reported data is now more accurate as it returns a `null`

value for a non-existing settings file instead of reporting a dummy path.

    • -98
    • +0
    ./internal/DefaultScriptSourceHasherTest.groovy
    • -4
    • +2
    ./internal/FileCacheBackedScriptClassCompilerTest.groovy
  1. … 23 more files in changeset.
Reuse cached content when hashing scripts

This ensures that the hash and the compiled script are taken from

the same source code and neither picks up any changes that the user

does during the build.

Fixes #7992

    • -17
    • +49
    ./internal/DefaultScriptSourceHasherTest.groovy
  1. … 2 more files in changeset.
Reuse cached content when hashing scripts

This ensures that the hash and the compiled script are taken from

the same source code and neither picks up any changes that the user

does during the build.

Fixes #7992

    • -17
    • +49
    ./internal/DefaultScriptSourceHasherTest.groovy
  1. … 2 more files in changeset.
Got rid of the last of the `@RunWith(JMock)`

  1. … 15 more files in changeset.
Converted a bunch more tests from JMock -> Spock

    • -0
    • +117
    ./internal/DefaultScriptRunnerFactoryTest.groovy
    • -189
    • +0
    ./internal/DefaultScriptRunnerFactoryTest.java
  1. … 8 more files in changeset.
Remove --recompile-scripts option

The corresponding `StartParameter` property is now deprecated.

Resolves #6306.

    • -26
    • +1
    ./internal/FileCacheBackedScriptClassCompilerTest.groovy
  1. … 23 more files in changeset.
Remove --recompile-scripts option

The corresponding `StartParameter` property is now deprecated.

Resolves #6306.

    • -26
    • +1
    ./internal/FileCacheBackedScriptClassCompilerTest.groovy
  1. … 23 more files in changeset.
Remove unused code

ContentHasherFactory has no real use, so let's decrease complexity.

    • -12
    • +2
    ./internal/DefaultScriptSourceHasherTest.groovy
  1. … 11 more files in changeset.
Update JMock to 2.8.4

  1. … 2 more files in changeset.