Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Update build init versions to latest

    • -1
    • +1
    ./internal/ScalaLibraryProjectInitDescriptor.java
  1. … 2 more files in changeset.
Update build init versions to latest

    • -1
    • +1
    ./internal/ScalaLibraryProjectInitDescriptor.java
  1. … 2 more files in changeset.
Update build init versions to latest

    • -1
    • +1
    ./internal/ScalaLibraryProjectInitDescriptor.java
  1. … 2 more files in changeset.
User Provider API in InitBuild task

  1. … 2 more files in changeset.
Upgrade JUnit version (#12924)

Upgrade JUnit to 4.13, JUnit platform to 5.6.2

    • -1
    • +1
    ./internal/ScalaLibraryProjectInitDescriptor.java
  1. … 331 more files in changeset.
Upgrade JUnit

    • -1
    • +1
    ./internal/ScalaLibraryProjectInitDescriptor.java
  1. … 330 more files in changeset.
Build Init plugin: use configuration avoidance for task registration (kotlin part)

Signed-off-by: Erhard Pointl <epeee@users.noreply.github.com>

  1. … 1 more file in changeset.
Use seperate version for scala

    • -1
    • +1
    ./internal/ScalaLibraryProjectInitDescriptor.java
  1. … 1 more file in changeset.
Address compiler warnings in 'build-init' subproject

    • -5
    • +5
    ./internal/TemplateOperationFactory.java
Address compiler warnings in 'build-init' subproject

    • -5
    • +5
    ./internal/TemplateOperationFactory.java
Address compiler warnings in 'build-init' subproject

    • -5
    • +5
    ./internal/TemplateOperationFactory.java
Fix build-init plugin for instant execution capturing Task.onlyIf

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

Build Init plugin: use configuration avoidance for task registration

Signed-off-by: Erhard Pointl <epeee@users.noreply.github.com>

  1. … 2 more files in changeset.
Fix maven repository declarations in build-init build script builder

Current build script builder generates the maven repo declaration like so:

```

maven {

url = "some-url"

}

```

This fails with Kotlin build scripts as Kotlin will not infer "some-url" to ba a URI.

This change makes the uri() declaration explicit always, so that the generated code will be:

```

maven {

url = uri("some-url")

}

```

  1. … 2 more files in changeset.
Use latest Groovy snapshot in build-init while testing

    • -0
    • +2
    ./internal/JvmProjectInitDescriptor.java
  1. … 1 more file in changeset.
Update scalatest to version 3.1.0

    • -2
    • +4
    ./internal/ScalaLibraryProjectInitDescriptor.java
  1. … 3 more files in changeset.
Handle duplicated entries

    • -12
    • +50
    ./internal/GitIgnoreGenerator.java
  1. … 2 more files in changeset.
Handle duplicated entries

    • -12
    • +50
    ./internal/GitIgnoreGenerator.java
  1. … 2 more files in changeset.
Init Groovy/Scala library with `java-library` plugin applied

It is now always working and recommended to apply the `java-library`

plugin when developing a library in Groovy or Scala. This allows

users to define 'api' dependencies. Before, users had to utilize

'compile' (which is now deprecated). When using 'gradle init' this new

recommendation should be reflected to avoid confusion.

This is also in line with what we do for a Kotlin library created with

'gradle init'.

    • -0
    • +6
    ./internal/GroovyLibraryProjectInitDescriptor.java
    • -2
    • +1
    ./internal/GroovyProjectInitDescriptor.java
    • -0
    • +1
    ./internal/ScalaLibraryProjectInitDescriptor.java
Init Groovy/Scala library with `java-library` plugin applied

It is now always working and recommended to apply the `java-library`

plugin when developing a library in Groovy or Scala. This allows

users to define 'api' dependencies. Before, users had to utilize

'compile' (which is now deprecated). When using 'gradle init' this new

recommendation should be reflected to avoid confusion.

This is also in line with what we do for a Kotlin library created with

'gradle init'.

    • -0
    • +6
    ./internal/GroovyLibraryProjectInitDescriptor.java
    • -2
    • +1
    ./internal/GroovyProjectInitDescriptor.java
    • -0
    • +1
    ./internal/ScalaLibraryProjectInitDescriptor.java
Append .gitignore file on `gradle init` if it exists

Especially when using other scaffolding mechanisms (e.g. new

GitHub repository or gitignore.io), a `.gitignore` may already

exist before invoking `gradle init`. Just append gradle specific

ignore patterns in those cases.

Signed-off-by: Benjamin Muskalla <benjamin.muskalla@tasktop.com>

  1. … 3 more files in changeset.
Append .gitignore file on `gradle init` if it exists

Especially when using other scaffolding mechanisms (e.g. new

GitHub repository or gitignore.io), a `.gitignore` may already

exist before invoking `gradle init`. Just append gradle specific

ignore patterns in those cases.

Signed-off-by: Benjamin Muskalla <benjamin.muskalla@tasktop.com>

  1. … 3 more files in changeset.
Only link to GitHub docs

    • -1
    • +0
    ./internal/GitAttributesGenerator.java
Autodetect TestFramework if none is configure explicitly

When the TestFramework of a Test task is not configured explicitly it

used to default to `useJUnit()`. Now, the task's classpath is inspected

for a junit-platform-engine.jar or testng.jar. If one of them is found,

the task uses the JUnit Platform or TestNG to execute tests,

respectively.

Since we have internal dependencies on the JUnit Platform and TestNG,

all Test tasks in our own build are configured to `useJUnit()` and

explicitly.

    • -8
    • +2
    ./internal/JavaProjectInitDescriptor.java
  1. … 12 more files in changeset.
Replace `FileResolver.resolveFilesAsTree()` and `compositeFileTree()` with `FileCollectionFactory`.

    • -5
    • +5
    ./internal/LanguageSpecificAdaptor.java
  1. … 28 more files in changeset.
Replace `FileResolver.resolveFilesAsTree()` and `compositeFileTree()` with `FileCollectionFactory`.

    • -5
    • +5
    ./internal/LanguageSpecificAdaptor.java
  1. … 43 more files in changeset.
Replace `FileResolver.resolveFilesAsTree()` and `compositeFileTree()` with `FileCollectionFactory`.

    • -5
    • +5
    ./internal/LanguageSpecificAdaptor.java
  1. … 43 more files in changeset.
Replace `FileResolver.resolveFilesAsTree()` and `compositeFileTree()` with `FileCollectionFactory`.

    • -5
    • +5
    ./internal/LanguageSpecificAdaptor.java
  1. … 28 more files in changeset.
Fix comments in the generated build.gradle file

Signed-off-by: ikngtty <ikngtty@gmail.com>

    • -2
    • +2
    ./internal/GroovyApplicationProjectInitDescriptor.java
    • -2
    • +2
    ./internal/JavaApplicationProjectInitDescriptor.java
    • -1
    • +1
    ./internal/KotlinApplicationProjectInitDescriptor.java
Apply `Anonymous type can be replaced with lambda` inspection the whole project

    • -14
    • +11
    ./internal/BuildScriptBuilder.java
    • -15
    • +5
    ./internal/maven/MavenProjectsCreator.java
  1. … 662 more files in changeset.