unittestandcompile

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix empty REPO_MIRROR_URLS

Enable incremental compilation for Groovy (#9803)

In https://github.com/gradle/gradle/pull/9616 we did preliminary support for Groovy incremental compilation. This PR enables Groovy incremental compilation for Gradle build.

  1. … 1 more file in changeset.
Dogfood native test fixtures

This commit replaces our custom test fixtures with the native "Java test fixtures".

The `TestFixturesPlugin` of our build has been simplified to leverage the native

test fixtures capabilities. Some noticeable changes:

- the `testFixtures` extension has been replaced with regular dependency declaration

- dependencies on test fixtures are now declared using the `testFixtures` keyword

- test fixtures properly declare an API and an implementation, meaning that the

implementation dependencies of test fixtures no longer leak into the compile

classpath of consumers (in particular tests)

  1. … 84 more files in changeset.
Change all subprojects to use 'implementation' dependencies

This includes:

- All projects now explicitly declare all dependencies to other

subprojects. This makes issues more visible, guards for accidental

addition of new dependencies, and leaks much less transitive

dependencies on the compile classpathes.

- All usages of 'runtime' to declare dependencies have been replaced

with 'runtimeOnly'

- All projects are now `java-library` (and declare this explicitly)

- Most remaining Groovy scripts are translated to Kotlin

- The old 'compile' and 'runtime' configurations are not

configured/created anymore for the 'testFixture' and 'integTest'

source sets.

- Some obsolete dependencies (see previous commits) are removed

- 'api' is used scarcely on purpose as the current project structure is

not well designed for this. The projects contain code for several

concerns of the build tool and thus putting complete projects on the

API of others exposes too much. They should be split up along

functional concerns first.

  1. … 112 more files in changeset.
Add PORTAL_PLUGINS module type for independently published modules

These require the distribution platform dependency to be handled

differently.

  1. … 1 more file in changeset.
Make more subprojects use Java 8 and remove redundant module types (#9447)

  1. … 28 more files in changeset.
Update tagging plugin to 0.56

  1. … 1 more file in changeset.
Update tagging plugin to 0.57

  1. … 1 more file in changeset.
Improve tagging process

Update tagging plugin and fix incorrect parameter.

  1. … 3 more files in changeset.
Improve tagging process

Update tagging plugin and fix incorrect parameter.

  1. … 3 more files in changeset.
Add an opt-out to automatic target jvm setting

Builds like Gradle have "incorrect" module setups: some modules

built for Java 6 have dependencies on Java 8 modules. This, in

general, shouldn't be allowed. However in Gradle it's "fine"

because we know that when we run on Java 6, the classes which

actually need Java 8 features or dependencies are not in use.

  1. … 6 more files in changeset.
Refine GRADLE_RERUNNER (#8522)

This is the followup of https://github.com/gradle/gradle/pull/8470 : there're two issues unresolved:

- `GRADLE_RERUNNER` is configured to `Gradleception`/`compileAll`/`sanityCheck`, etc. , which makes no sense.

- We want to skip `GRADLE_RERUNNER` if there're too many failures.

This PR does:

- Extract another function `applyTestDefaults` in addition to `applyDefaults`. Functional test build and smoke test build apply `applyTestDefaults`.

- Slightly refactor `applyDefaults` function.

- Add unit tests for `applyTestDefaults`/`applyDefaults`.

- Switch to JUnit 5 for `.teamcity` project.

- Ignore the rerun if test failures are > 10.

  1. … 6 more files in changeset.
Add a build step which reruns previous failed test classes (#8470)

This closes https://github.com/gradle/gradle-private/issues/1774

We've been bitten by flaky tests for a long time. This PR adds an extra build step which reruns failed test classes again.

  1. … 3 more files in changeset.
Revert "Mark `compile` and `runtime` configurations as not resolvable"

The IDEA sync resolves the compile and runtime configurations and fails

if these cannot be resolved.

This reverts commit 15043188d7bce27d5536343cd82246ad3de9a73f.

Mark `compile` and `runtime` configurations as not resolvable

This doesn't fix anything, but allows us to capture some errors sooner,

in particular badly behaving plugins.

Let buildSrc kotlin code satisfy comment formating ktlint rule

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

  1. … 5 more files in changeset.
Add comments to IDEA import workarounds in build scripts

  1. … 1 more file in changeset.
Revert "Do not add Gradle out folders as source folders to IDEA when using Sync"

This reverts commit 5d47f9be477247f5b972cbe051e94eb88adf5fda.

Do not add Gradle out folders as source folders to IDEA when using Sync

This is not needed, because IDEA adds the addition resource folders

automatically as additional dependencies to the corresponding modules.

See also: https://youtrack.jetbrains.com/issue/IDEA-202346

Fix deprecations in buildSrc

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

  1. … 2 more files in changeset.
Revert "Revert "Merge pull request #7296 from gradle/oehme/java9/suppress-groovy-warnings""

This reverts commit 44f9cc7346b1dfbc4fdeff8421da368660749fd4.

  1. … 9 more files in changeset.
Revert "Merge pull request #7296 from gradle/oehme/java9/suppress-groovy-warnings"

This reverts commit 166f63359900f1ef7115113cdf4a0699e425f645, reversing

changes made to cc54813e66af95f14764a40abbf4a72f200c60f2.

  1. … 9 more files in changeset.
Prevent Groovy illegal access warnings

Start all processes that are likely to use Groovy with the

necessary --add-opens arguments to avoid noisy warnings that

our users can't do anything about.

  1. … 9 more files in changeset.
Remove jmock dependency for Gradle build

  1. … 4 more files in changeset.
Merge CORE and PLUGIN module types

  1. … 28 more files in changeset.
Delete UNDEFINED ModuleType

Document module types

Use Java 8 for internal subprojects

Merge pull request #6523 from gradle/wolfs/idea-import/spike

Use idea-ext plugin to allow native Intellij import of gradle/gradle

Merge pull request #6692 from gradle/oehme/forbid-java7

Raise minimum build JVM version to Java 8

  1. … 3 more files in changeset.