Andy Wilkinson
c66d2e8039
Relax the Gradle plugin's Kotlin version constraint
...
Enforcing the spring-boot-dependencies platform makes for too strong
an opinion about the version of Kotlin that should be on the build
script's classpath. It clashes with the version of Kotlin that's
embedded in Gradle and used with Gradle's Kotlin DSL.
This commit switches to a normal platform (rather than an enforced
platform) which allows it to express an opinion about the version of
Kotlin without making it a strict requirement.
Closes gh-19609
2020-01-13 11:00:49 +00:00
Andy Wilkinson
7fda317f0d
Merge branch '2.1.x' into 2.2.x
...
Closes gh-19657
2020-01-12 10:42:42 +00:00
Andy Wilkinson
617ebaf3c0
Isolate Gradle Plugin build from other Gradle configuration
...
Closes gh-19656
2020-01-12 10:41:38 +00:00
Andy Wilkinson
ce99db1902
Port the build to Gradle
...
Closes gh-19609
Closes gh-19608
2020-01-10 14:15:35 +00:00
Andy Wilkinson
47b47c28a0
Reduce visibility of the Gradle plugin's test methods
...
See gh-19287
2019-12-05 10:24:48 +00:00
Andy Wilkinson
76f03a8cad
Fix reflective access to archiveBaseName property
...
Previously, reflective access to the archiveBaseName property
incorrectly treated the property as a String. It should have been
treated as a Property<String>. This caused an exception to be thrown
and the deprecated baseName property to be used as a fallback.
This commit corrects the reflective access to the archiveBaseName
property. It also updates the tests to fail if a build outputs a
deprecation warning. Tests that use Gradle's Maven plugin have been
updated to expect deprecation warnings when run with Gradle 6.0 where
the plugin is deprecated. Tests that configure an archive's base name
have been updated to use archiveBaseName when running with Gradle 6.0
and later.
Closes gh-18663
2019-11-27 12:52:05 +00:00
dreis2211
347434ba81
Test the Gradle Plugin against Gradle 6.0.1
...
See gh-19065
2019-11-21 13:44:55 +01:00
Johnny Lim
96a029e44f
Polish a test name
...
See gh-18999
2019-11-13 08:52:32 +01:00
Andy Wilkinson
379ba0dc00
Support Gradle 6.0
...
Previously, our Gradle plugin was not tested against Gradle 6.0,
a number of deprecation warnings were output when using the plugin
with Gradle 6, and some functionality related to the application
plugin did not work as expected.
This commit tests the plugin against Gradle 6. It also avoids calling
deprecated APIs. The plugin is compatibile against Gradle 4.10 where
the deprecated APIs' replacements are not available so reflection is
used to call the replcaements. Lastly, the way in which the base name
of the boot distribution that is created when the application plugin
is applied has been modified to ensure that it is effective when using
Gradle 6.
Closes gh-18663
2019-11-11 16:36:40 +00:00
Stephane Nicoll
b951e70d18
Merge branch '2.1.x'
...
Closes gh-18850
2019-11-04 09:57:48 +01:00
dreis2211
8955d5c1b5
Test the Gradle Plugin against Gradle 5.6.4
...
See gh-18845
2019-11-04 09:56:12 +01:00
Andy Wilkinson
03f5791860
Merge branch '2.1.x'
...
Closes gh-18650
2019-10-18 10:37:39 +01:00
dreis2211
d17f11dbe1
Test the Gradle Plugin against Gradle 5.6.3
...
See gh-18648
2019-10-18 10:35:54 +01:00
Johnny Lim
137538f415
Remove accidental JavaVersion.current() call in BootRun
...
It was added accidentally in d2b28ceb
.
See gh-18619
2019-10-16 13:40:21 +01:00
Andy Wilkinson
9a89039172
Provide a marker artifact for Boot's Gradle plugin
...
Closes gh-18514
2019-10-11 16:51:29 -05:00
Andy Wilkinson
9e514ab7f9
Provide plugin release repository for Asciidoctor Extensions
...
See b5069a4f8a
2019-10-02 13:43:34 +01:00
Andy Wilkinson
46c30d6bb0
Merge branch '2.1.x'
...
Closes gh-18476
2019-10-02 10:48:57 +01:00
Andy Wilkinson
3d4157ad6d
Correct SCM URLs in published poms
...
Previously, Maven's default behaviour was relied up which resulted
in the artifact ID being appended to each URL as it was inherited.
This behaviour can only be disabled in Maven 3.6 and later, a version
that we cannot use due to an incompatibility with the Flatten Plugin.
This commit works around Maven's default behaviour by defining
properties for the SCM URL, connection, and developer connection and
then explicitly defining the settings in each pom using these
properties. The explicit definition of the properties in each pom
prevents them being inherited from the parent, thereby disabling the
unwanted appending of the artifact ID to the URL.
Fixes gh-18328
2019-10-02 10:48:30 +01:00
Andy Wilkinson
ed29eea365
Align Spring Asciidoctor Extension dependency with new module names
2019-10-01 14:54:03 +01:00
Stephane Nicoll
852b369ce1
Revert to fixed version
2019-10-01 15:20:23 +02:00
Andy Wilkinson
a6f1619971
Use Asciidoctor extension to verify documented configuration properties
...
Closes gh-18451
2019-10-01 10:39:06 +01:00
Phillip Webb
a13666d696
Polish "Simplify code"
...
See gh-18342
2019-09-26 19:12:18 -07:00
Yuyan
4d0da4b700
Simplify code
...
See gh-18342
2019-09-26 19:09:28 -07:00
Brian Clozel
eeaa9bc6c1
Fix ref docs code snippet theme
...
This commit also fixes a link in the reference documentation.
See gh-18293
2019-09-24 11:25:57 +02:00
Phillip Webb
838e7eb605
Extract spring-doc-resources URL property
...
Update the build to use a shared spring-doc-resources URL
rather than repeating it multiple times.
See gh-18293
2019-09-20 21:38:56 -07:00
Andy Wilkinson
d5fc324537
Upgrade to Asciidoctor Maven Plugin 1.6.0
...
Closes gh-17234
2019-09-20 11:59:16 +01:00
Andy Wilkinson
d2b28ceba5
Don't add -Xverify:none to JVM args when running on Java 13
...
Closes gh-17008
2019-09-18 21:51:41 +01:00
Johnny Lim
5b41c3b608
Polish
...
See gh-18192
2019-09-12 14:55:47 +02:00
Andy Wilkinson
0c0e2dd54b
Merge branch '2.1.x'
...
Closes gh-18186
2019-09-09 11:16:30 +01:00
Andy Wilkinson
7b1e10ed00
Use one sentence per line in Actuator and Gradle plugin doc source
...
Closes gh-18185
2019-09-09 10:59:49 +01:00
Andy Wilkinson
fc1889ee72
Merge branch '2.1.x'
...
Closes gh-18167
2019-09-06 14:04:54 +01:00
dreis2211
ae30515e5e
Test the Gradle Plugin against Gradle 5.6.2
...
See gh-18164
2019-09-06 13:19:08 +01:00
Andy Wilkinson
7f8b3a7b86
Test the Gradle Plugin against Gradle 5.6.1
...
Closes gh-17995
2019-08-29 12:53:50 +01:00
dreis2211
26a22fa523
Test the Gradle Plugin against Gradle 5.6.1
...
See gh-17984
Closes gh-17984
2019-08-29 12:46:26 +01:00
Stephane Nicoll
b57db504df
Fix broken build due to Kotlin upgrade
2019-08-29 10:01:16 +02:00
Andy Wilkinson
a785a5b58a
Test the Gradle Plugin against Gradle 5.6
...
Closes gh-17883
2019-08-16 08:46:48 +01:00
dreis2211
56940fca97
Test the Gradle Plugin against Gradle 5.6
...
See gh-17876
2019-08-16 08:45:33 +01:00
SaberXu
c6c3a91f8d
Simplify if statements
...
See gh-17785
2019-08-08 14:32:37 +02:00
Stephane Nicoll
5926547767
Merge branch '2.1.x'
...
Closes gh-17745
2019-07-31 15:15:21 +02:00
Stephane Nicoll
0c560795fd
Harmonize settings.gradle documentation in Gradle getting started guide
...
See gh-17736
2019-07-31 15:11:53 +02:00
Dave Syer
e7b0450a7f
Add missing repositories to snapshot configuration
...
See gh-17736
2019-07-31 15:00:07 +02:00
Phillip Webb
8bc780762a
Merge branch '2.1.x'
2019-07-24 11:42:48 +01:00
Phillip Webb
fb1dd8fe93
Merge branch '2.0.x' into 2.1.x
2019-07-24 11:41:32 +01:00
Phillip Webb
913e831f4e
Merge '1.5.x' into 2.0.x
2019-07-24 11:39:58 +01:00
Stephane Nicoll
f3a138da16
Skip Gradle Plugin test when building with JDK 13
...
See gh-16970
2019-07-24 08:49:52 +02:00
Phillip Webb
30b5ba87ae
Merge branch '2.0.x' into 2.1.x
2019-07-17 21:48:01 +01:00
Phillip Webb
01933f9b06
Merge previously split strings
...
Merge some string lines that were previously split because of the
90 chars wide formatting.
2019-07-15 00:24:19 +01:00
Stephane Nicoll
79b29396d0
Merge branch '2.1.x'
...
Closes gh-17506
2019-07-14 13:14:21 +02:00
dreis2211
e9203a280c
Test the Gradle Plugin against Gradle 5.5.1
...
See gh-17496
2019-07-14 13:13:17 +02:00
Andy Wilkinson
2816635418
Polish
2019-07-04 17:51:20 +01:00
Andy Wilkinson
aa01bd3890
Polish "Polish GradleCompatibilityExtension's javadoc"
...
See gh-17411
2019-07-04 10:18:18 +01:00
dreis2211
dc4cc214fe
Polish GradleCompatibilityExtension's javadoc
...
See gh-17411
2019-07-04 10:13:17 +01:00
Andy Wilkinson
9d5fa98334
Merge branch '2.1.x'
...
Closes gh-17429
2019-07-04 10:07:40 +01:00
Andy Wilkinson
7553b60e68
Test the Gradle Plugin against Gradle 5.5
...
Closes gh-17428
2019-07-04 10:05:57 +01:00
Phillip Webb
a66c4d3096
Unify method visibility of private classes
...
Apply checkstyle rule to ensure that private and package private
classes do not have unnecessary public methods. Test classes have
also been unified as much as possible to use default scoped
inner-classes.
Closes gh-7316
2019-07-03 11:39:47 -07:00
Andy Wilkinson
1fa48882bb
Merge branch '2.1.x'
...
See gh-17362
2019-06-29 20:39:19 +01:00
Andy Wilkinson
f4e7b80651
Merge branch '2.0.x' into 2.1.x
...
See gh-17361
2019-06-29 20:38:18 +01:00
Andy Wilkinson
761856ac70
Merge branch '1.5.x' into 2.0.x
2019-06-29 20:29:16 +01:00
Phillip Webb
605599138e
Merge branch '2.1.x'
2019-06-28 23:56:02 -07:00
Phillip Webb
92bff3c328
Merge branch '2.0.x' into 2.1.x
2019-06-28 23:42:28 -07:00
Phillip Webb
cfeb0239b7
Merge branch '1.5.x' into 2.0.x
2019-06-28 23:28:34 -07:00
Madhura Bhave
7e22901bb2
Fail build on unresolved documentation links
...
Closes gh-12005
2019-06-28 12:04:30 -07:00
Andy Wilkinson
66f1344f7c
Merge branch '2.1.x'
...
Closes gh-17335
Closes gh-17292
2019-06-27 12:00:34 +01:00
Andy Wilkinson
91786bc712
Merge branch '2.0.x' into 2.1.x
...
Closes gh-17334
2019-06-27 11:39:17 +01:00
Andy Wilkinson
256a0d636d
Merge branch '1.5.x' into 2.0.x
2019-06-27 11:39:02 +01:00
Stephane Nicoll
e560b7f6ba
Remove public modifier on JUnit5 lifecycle methods
...
See gh-17292
2019-06-21 18:09:05 +02:00
Phillip Webb
1e0cf960f0
Reinstate single page HTML and PDF docs
...
Closes gh-16854
2019-06-17 20:44:01 -07:00
Phillip Webb
2c2b962204
Merge branch '2.1.x'
...
Closes gh-17232
2019-06-17 15:54:51 -07:00
Phillip Webb
d82ccf1405
Ensure META-INF/MANIFEST.MF remains as first entry
...
Update Gradle archive tasks to ensure that `META-INF/` and
`META-INF/MANIFEST.MF` remain as the first entries of the archive.
Prior to this commit, rewritten archives would violate the implicit
specification of `JarInputStream` that these entries should be first.
Fixes gh-16698
2019-06-17 15:48:14 -07:00
Johnny Lim
368c0eebe4
Fix typo
...
See gh-17132
2019-06-16 11:42:00 +02:00
Phillip Webb
b3d5cd538d
Add JUnit 5 checkstyle rules
...
Add a rule to enforce JUnit 5 usage and conventions.
Closes gh-17093
2019-06-10 16:16:45 -07:00
Andy Wilkinson
b18fffaf14
Move tests to JUnit 5 wherever possible
2019-06-07 12:25:54 +01:00
Andy Wilkinson
aef92b9295
Merge branch '2.1.x'
...
Closes gh-17079
2019-06-07 11:00:44 +01:00
Andy Wilkinson
24925c3dae
Merge branch '2.0.x' into 2.1.x
...
Closes gh-17078
2019-06-07 10:50:34 +01:00
Andy Wilkinson
c6c139d980
Merge branch '1.5.x' into 2.0.x
2019-06-07 10:46:31 +01:00
Phillip Webb
ad5e905bd7
Update copyright header of changed files
2019-05-30 11:30:43 -07:00
Andy Wilkinson
ecf7c817a6
Build and test the Gradle plugin with Java 11 and 12
...
Closes gh-12333
2019-05-29 07:20:34 +01:00
dreis2211
e59d734098
Fix Gradle plugin code formatting
...
See gh-16984
2019-05-28 18:10:04 +01:00
Andy Wilkinson
c80218064f
Use sorted properties to make build info output repeatable
...
Closes gh-14494
2019-05-28 16:30:36 +01:00
Andy Wilkinson
54b123028c
Default to optimized launch of the JVM when using Gradle's bootRun
...
Closes gh-16222
2019-05-25 09:29:52 +01:00
Andy Wilkinson
7713a7f33a
Fix inclusion of Gradle DSL snippets in plugin reference docs
...
Closes gh-16968
2019-05-25 09:21:10 +01:00
Andy Wilkinson
babb94c791
Migrate spring-boot-gradle-plugin's tests to JUnit 5
...
Closes gh-16959
2019-05-24 20:17:34 +01:00
Andy Wilkinson
f35b91a172
Raise minimum supported version of Gradle to 4.10 and encourage use of 5.x
...
Closes gh-16681
2019-05-03 13:07:15 +01:00
Andy Wilkinson
538030b57e
Merge branch '2.1.x'
...
Closes gh-16693
2019-05-01 11:20:56 +01:00
Andy Wilkinson
881fbeff43
Test the Gradle Plugin against Gradle 5.4.1
...
Closes gh-16576
2019-05-01 10:47:35 +01:00
Andy Wilkinson
7d2a99943f
Merge branch '2.1.x'
2019-04-17 09:26:28 +01:00
Andy Wilkinson
dfbc787737
Test the Gradle plugin against Gradle 5.4
...
Closes gh-16576
2019-04-17 09:25:28 +01:00
Andy Wilkinson
9d1f584560
Adapt Gradle plugin tests to change in Kotlin's packaging
...
Closes gh-16554
2019-04-15 12:36:58 +01:00
Phillip Webb
52e635b823
Merge branch '2.1.x'
2019-04-02 20:50:22 -07:00
Phillip Webb
912e0a87a8
Merge branch '2.0.x' into 2.1.x
2019-04-02 20:49:44 -07:00
Phillip Webb
8c2e0a61ae
Merge branch '1.5.x' into 2.0.x
2019-04-02 20:48:00 -07:00
Stephane Nicoll
c4b1a22e89
Polish "Add Spring-specific styling to Gradle Plugin's documentation"
...
Closes gh-16327
2019-04-02 16:49:11 +02:00
Hendrig Sellik
466b57cd44
Add Spring-specific styling to Gradle Plugin's documentation
...
This commit replaces the default Asciidoctor styling with
Spring specific styling.
First, we need to unzip the contents of the Spring Asciidoctor
documentation resources provided by the
`io.spring.docsresources:spring-docs-resources` distribution zip. This
is done in a `/target/refdocs` folder. We then copy all files from
`src/main/asciidoc` to the same location, and then launch the generation
process.
See gh-16327
2019-04-02 16:38:50 +02:00
Andy Wilkinson
c5024f21a4
Merge branch '2.1.x'
2019-04-02 14:40:35 +01:00
Andy Wilkinson
6aa4fe579a
Polish
...
See gh-16068
2019-04-02 14:40:18 +01:00
Andy Wilkinson
ac4d6bb10f
Merge branch '2.1.x'
2019-04-02 10:27:45 +01:00
Andy Wilkinson
db4623c519
Merge branch '2.0.x' into 2.1.x
2019-04-02 10:27:34 +01:00
Andy Wilkinson
7b5f46d6e3
Add Spring-Boot-* manifest attributes to jars and wars built with Gradle
...
Closes gh-16068
2019-04-02 10:13:09 +01:00
Stephane Nicoll
17a800b577
Merge branch '2.1.x'
2019-03-29 10:51:44 +01:00
Stephane Nicoll
62d9c0a8b3
Test against Gradle 5.3.1
2019-03-29 10:51:31 +01:00