Commit Graph

291 Commits

Author SHA1 Message Date
Stephane Nicoll
c36ae847fb Harmonize ProjectDescription name 2019-08-25 03:17:25 +02:00
Stephane Nicoll
286e38888c Migrate ProjectDescription to an interface
This commit migrates ProjectDescription to an interface with read-only
accessors and create a MutableProjectDescription implementation that can
be used for both purposes.

As a result, the type separation between ResolvedProjectDescription and
ProjectDescription is no longer necessary.

Closes gh-993
2019-08-25 03:03:57 +02:00
Stephane Nicoll
91656ba0f8 Polish 2019-08-23 15:06:36 +02:00
Stephane Nicoll
b711ac73c9 Polish "Add support for Maven resources"
See gh-967
2019-08-23 15:03:05 +02:00
Leonardo Ramos
df62424c0e Add support for Maven resources
See gh-967
2019-08-23 13:58:11 +02:00
Stephane Nicoll
1082ac7bf7 Extract project generation test utility to dedicated module
This commit extracts various test utilities to a dedicated
initializr-generator-test module for easier consumption. The previous
test-jar are no longer published and a dependency to this new module
should be equivalent.

This commit also cleans various resources that were located in the wrong
place. In particular initializr-generator does not know anything about
metadata anymore.

Closes gh-988
2019-08-21 16:10:06 +02:00
Stephane Nicoll
dbd1198996 Rename SourceCodeStructure to SourceStructure
This commit generalizes the main and test structure so that it can be
used for more use cases.
2019-08-21 16:09:17 +02:00
Stephane Nicoll
19ed484dc3 Add SourceCodeStructure abstraction
Closes gh-987
2019-08-19 19:09:26 +02:00
Stephane Nicoll
976f290144 Harmonize logging test configuration 2019-08-18 14:35:51 +02:00
Stephane Nicoll
dee5467bd1 http -> https 2019-08-18 14:07:02 +02:00
Stephane Nicoll
f083e6e5cd Make sure MavenBuildWriter uses https link wherever possible 2019-08-18 13:35:47 +02:00
Stephane Nicoll
ff6e26463b Add Bill Of Materials
Closes gh-981
2019-08-15 07:53:46 +02:00
Stephane Nicoll
a3826cfaed Polish "Add support for removing build plugins"
See gh-978
2019-08-13 20:30:07 +02:00
HaiTao Zhang
083213c904 Add support for removing build plugins
See gh-978
2019-08-13 17:47:36 +02:00
Stephane Nicoll
f33a661074 Be more defensive when extracting filename from URI
Closes gh-827
2019-08-12 13:52:34 +02:00
HaiTao Zhang
71364408fa Rename versionRange attribute to compatibilityRange
See gh-968
2019-08-09 11:20:02 +02:00
Stephane Nicoll
98bdd29356 Guard compilation unit from null attributes
Closes gh-975
2019-08-07 15:29:57 +02:00
Stephane Nicoll
5672806380 Handle dependency without scope
This commit updates BuildSystem writer implementations to handle a
dependency without scope rather than ignoring it. If a dependency has
no scope it is managed as it had DependencyScope.COMPILE.

Closes gh-972
2019-08-05 16:17:42 +02:00
Stephane Nicoll
65562e1e92 Polish 2019-08-05 14:16:42 +02:00
Stephane Nicoll
844c7ca004 Make DefaultProjectAssertGenerator more flexible
This commits adds a public constructor to take a ProjectDirectoryFactory
implementation to make it more obvious it is a required component. In
the absence of a configured factory, one is retrieved from the context
as before.
2019-08-05 13:39:24 +02:00
Stephane Nicoll
316751a57c Consistently create project directory
Closes gh-971
2019-08-05 13:39:24 +02:00
Stephane Nicoll
c7093c6b51 Polish "Adding field declaration for code generation"
See gh-881
2019-07-25 16:34:57 +02:00
Matt Berteaux
e7d5f8ffaf Adding field declaration for code generation
See gh-881
2019-07-25 13:54:02 +02:00
Stephane Nicoll
7800d50551 Polish "Clean root resource path if necessary"
See gh-964
2019-07-25 13:46:54 +02:00
Toon Geens
52872f9a72 Clean root resource path if necessary
See gh-964
2019-07-25 13:46:54 +02:00
Stephane Nicoll
7b18b15a5a Polish "Write Gradle plugin repositories section only if necessary"
See gh-880
2019-07-25 11:39:10 +02:00
abdelghani.roussi
afd96dcdf5 Write Gradle plugin repositories section only if necessary
See gh-880
2019-07-25 11:38:19 +02:00
Stephane Nicoll
449b22403a Upgrade to spring-javaformat 0.0.15
Closes gh-949
2019-07-10 14:57:35 +02:00
Rodrigo Graciano
c5bc699459 Fix error message when a version could not be parsed
See gh-948
2019-07-10 08:44:36 +02:00
Andy Wilkinson
d38463c4e7 Fix references to built-in configurations with Gradle Kotlin DSL
Closes gh-917
2019-06-27 20:42:12 +01:00
Stephane Nicoll
2f50cf1c8f Format source code
Closes gh-923
2019-06-12 14:46:53 +02:00
Andy Wilkinson
50160d4931 Polish "Allow adding <extensions>true</extensions> to plugin config"
See gh-921
2019-06-10 14:13:46 +01:00
Olga Maciaszek-Sharma
3e86a446a8 Allow adding <extensions>true</extensions> to plugin config
See gh-921
2019-06-10 14:13:37 +01:00
Andy Wilkinson
04b2777b32 Correct Kotlin DSL syntax for adding and customizing configurations
Fixes gh-917
2019-06-06 09:51:20 +01:00
Stephane Nicoll
ce150380c2 Polish method name 2019-05-31 12:13:59 +02:00
Stephane Nicoll
e063405b92 Allow to initialize a dependency builder from an existing dependency 2019-05-31 11:19:37 +02:00
Stephane Nicoll
31b60a6955 Model custom configuration for a Gradle dependency
Closes gh-850
2019-05-31 11:19:30 +02:00
Stephane Nicoll
d32b2f6a20 Model that a Maven dependency is optional
Closes gh-913
2019-05-31 09:35:43 +02:00
Stephane Nicoll
e6f287b298 Fix compatiblity with Microsoft Windows
Closes gh-879
2019-05-29 16:10:54 +02:00
Stephane Nicoll
62d0a94364 Migrate ProjectAssert to java.nio.file.Path 2019-05-28 15:29:28 +02:00
Stephane Nicoll
b8cac0407b Add dependency builder
This commit adds a builder for Dependency to allow it to be further
tuned without having to add an extra constructor.
2019-05-22 15:44:30 +02:00
Stephane Nicoll
a2950c9a56 Add support for dependency exclusions
Closes gh-906
2019-05-22 11:59:15 +02:00
Stephane Nicoll
b0597aaca1 Add modifiers support to TypeDeclaration
Closes gh-908
2019-05-22 10:10:30 +02:00
Stephane Nicoll
c298a6d021 Polish 2019-05-21 13:45:58 +02:00
Stephane Nicoll
75228ba4a3 Add parentheses for method invocations with no argument
Closes gh-907
2019-05-21 11:39:04 +02:00
Stephane Nicoll
372e823d21 Fix version references in Gradle KTS build
Closes gh-901
2019-05-17 18:45:40 +02:00
Stephane Nicoll
c7c16872c4 Polish "Add Gradle Kotlin DSL support"
In particular, this commit replaces the GradleKts dedicated build system
in favor of a dedicated build system dialect.

Closes gh-851

Co-authored-by: Andy Wilkinson <awilkinson@pivotal.io>
2019-05-15 16:54:50 +02:00
jnizet
239116b29a Add Gradle Kotlin DSL support
This commit refactors the existing Groovy DSL writers in order to share
code between the Groovy DSL and Kotlin DSL writers.

See gh-851
2019-05-15 16:54:50 +02:00
jnizet
020d66be63 Add GradleKts build system
This commit adds a BuildSystem implementation for the Gradle Kotlin DSL

See gh-851
2019-05-15 16:54:50 +02:00
Madhura Bhave
0f645c7143 Polish "Add support for Gradle's tasksWithType"
Closes gh-890

Co-authored-by: Stephane Nicoll <snicoll@pivotal.io>
2019-05-02 10:42:21 +02:00