Commit Graph

1206 Commits (f52c081ec1a6c700547951f9e68225d83c855843)

Author SHA1 Message Date
Andy Wilkinson 1e4e64aa8c Polish "Support inlining a conf script into the default launch script"
Closes gh-9590
7 years ago
JustinKSU 5ee28a08e1 Support inlining a conf script into the default launch script
See gh-9590
7 years ago
Andy Wilkinson 3db5843c8b Polish "Find .conf file next to symlink to jar that's using the launch script"
Closes gh-8988
7 years ago
Ali Shahbour 56a5888008 Find .conf file next to symlink to jar that's using the launch script
See gh-8988
7 years ago
Andy Wilkinson 6d8c333016 Replace convention mappings with PropertyState and Provider
Closes gh-9891
7 years ago
Andy Wilkinson 6eee9de3c1 Rework BootRun so that it does not subclass JavaExec
This commit reworks BootRun so that it no longer subclasses JavaExec.
This provides Boot with greater control of how the executed JVM is
configured, including the possibility of using @Option to provide args
and JVM args via the command line (gh-1176). It also allows some usage
of convention mappings to be removed in favour of PropertyState and
Provider (gh-9891). For users who relied up the advanced (and rather
complex) configuration options provided by JavaExec, an escape hatch
is provided by allowing the JavaExecSpec that's used to execute the
JVM to be customized.

Closes gh-9884
7 years ago
dreis2211 f3472beed8 Remove redundant semicolons
Closes gh-10422
7 years ago
Stephane Nicoll 7b675fc53e Make spring-boot-loader its Java 9 friendly
This commit updates the integration tests of "spring-boot-loader" to
not use `@PostConstruct` but rather `InitializingBean`

Closes gh-10274
7 years ago
Andy Wilkinson c03bb4c1fe Test the Gradle plugin against Gradle 4.1 and 4.2
Closes gh-10417
7 years ago
Andy Wilkinson 45a24b8705 Upgrade to Log4j 2.9.1
This commit uppgrade our Log4j dependency to 2.9.1. It also modifies
ModifiedClassPathRunner so that log4j-*.jar jars are always excluded
from the class path when using the runner. This is necessary due to
a change in Log4j [1] which makes assumptions about the class loader
hierarchy that do not hold true when using the modified class path
runner. Specifically, it assumes that the system class loader should
always be used to load providers. This is exactly what we don't want
to happen when using the modified class path runner as it breaks the
filtering of the class path and leads to Log4j classes being loaded
from both the system class loader and the filtering class loader.

Closes gh-10407

[1] 9422ca7489
7 years ago
Stephane Nicoll 4ddba74e2f Polish "Clean up Java 6 leftover"
Closes gh-10367
7 years ago
Johnny Lim bbeba4a016 Clean up Java 6 leftover
See gh-10367
7 years ago
Andy Wilkinson 96bf799b5c Simply Gradle plugin DSL for configuring a jar or war's launch script
Closes gh-9948
7 years ago
Andy Wilkinson 70393300c2 Polish "Use -parameters compiler arg by default in Gradle builds"
Closes gh-9839
7 years ago
kashike 238ef98f8b Use -parameters compiler arg by default in Gradle builds
See gh-9839
7 years ago
Andy Wilkinson 975c005dfb Determine Spring Boot version for bom import correctly when using Java 9
In Java 9, a package may return null for its implementation version
even when the manifest attribute specifying the version is present
in the jar from which the package was loaded.

This commit updates DependencyManagementPluginAction to fall back to
accessing the jar and its manifest attributes directly when the
implementation version of its package is null.

Closes gh-10049
7 years ago
Raja Kolli a4a0eef186 Upgrade to Hibernate Validator 6.0.2.Final
Closes gh-9969
7 years ago
Stephane Nicoll 8351042469 Polish "Fix handling of empty/null arguments"
Closes gh-9916
7 years ago
Björn 0867ac5777 Fix handling of empty/null arguments
See gh-9916
7 years ago
Phillip Webb 324a00fd6d Polish 7 years ago
Johnny Lim bd2d08bcd0 Polish
Closes gh-10282
7 years ago
Stephane Nicoll 222ed44bd4 Replace enabledByDefault to DefaultEnablement
This commit introduces a DefaultEnablement enum that replaces the
"enabledByDefault" boolean flag of Endpoint. This allows to better
control what indicates the default enablement of an endpoint.

With DefaultEnablement#ENABLED, the endpoint is enabled unless an
endpoint specific property says otherwise. With DefaultEnabled#DISABLED,
the endpoint is disabled unless an endpoint specific property says
otherwise. DefaultEnablement#NEUTRAL provides a dedicated option to
indicate that we should resort to the default settings in absence of
a specific property.

See gh-10161
7 years ago
Stephane Nicoll 6cd624ba39 Restore processing of Endpoint meta-data 7 years ago
Stephane Nicoll a4a19e1e01 Polish
This commit makes sure that the defaultValue has to be provided in
assertions. If not present, no defaultValue should be generated.
7 years ago
Stephane Nicoll 7b846e0412 Merge branch '1.5.x' 7 years ago
Stephane Nicoll af18110226 Polish "Improve exception message for invalid source"
Closes gh-10130
7 years ago
Aurélien Pupier 44b60c72e3 Improve exception message for invalid source
See gh-10130
7 years ago
Andy Wilkinson 7fc12bc8a3 Polish 7 years ago
Johnny Lim db76112700 Polish
See gh-10109
7 years ago
Phillip Webb 2c97d3a5e9 Polish 7 years ago
Johnny Lim 118f65556f Remove unused ExpectedExceptions
Closes gh-10101
7 years ago
Stephane Nicoll def094b844 Advertize web endpoints as disabled by default
Following the rework on Security that expects web endpoints to be
disabled by default, this commit updates the metadata (including the
automatic generation) to reflect this decision.
7 years ago
Johnny Lim 9439467664 Remove null check before instanceof
Closes gh-10033
7 years ago
Stephane Nicoll 83e81e13f2 Add support of metadata generation for Endpoints
This commit improves the configuration metadata annotation processor to
explicitly handle `@Endpoint` annotated class. Adding a new endpoint on
a project potentially creates the following keys:

* `endpoints.<id>.enabled`
* `endpoints.<id>.cache.time-to-live`
* `endpoints.<id>.jmx.enabled`
* `endpoints.<id>.web.enabled`

Default values are extracted from the annotation type. If an endpoint
is restricted to a given tech, properties from unrelated techs are not
generated.

Closes gh-9692
7 years ago
Stephane Nicoll d5ba8f671a Make Spring Boot Antlib's integration tests compatible with JDK 9
Closes gh-10021
7 years ago
Andy Wilkinson 7a82660bb1 Make ModifiedClassPathRunner compatible with JDK 9
Closes gh-10020
7 years ago
Andy Wilkinson a07833fb51 Make BootRunIntegrationTests compatible with Java 9
Closes gh-10019
7 years ago
Andy Wilkinson 4106615425 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 7a87c69dd0 Normalize spec when creating jar URL by removing /../ and /./
Previously when Handler was creating a URL from a context URL and a
spec, any occurrances of /../ or /./ in the spec would be left as-is.
This differed from the JDK's Handler implementation which normalizes
the URL by modifying the path to remove any occurrences of /../ or
/./

This commit updates our Handler implementation to align it with the
JDK's. Tests have been added to assert that, given the same inputs,
the two Handler classes produce the same output.

Closes gh-9917
7 years ago
Andy Wilkinson 7bd285dd93 Polish 7 years ago
Phillip Webb 2b846ad7b4 Fix typo in Maven plugin integration test 7 years ago
Andy Wilkinson 71ade559d5 Merge branch '1.5.x' 7 years ago
Andy Wilkinson b7ac5f2eb2 Polish "Make JarURLConnection return entry's last modified time"
Closes gh-9893
7 years ago
rostislav.dudka 7c7259beec Make JarURLConnection return entry's last modified time
See gh-9893
7 years ago
Andy Wilkinson fb510043a2 Look in the right place for plugin's classes during integration tests
See gh-9516
7 years ago
Andy Wilkinson 36120d729a Ignore mainClassName property when its value is null
Closes gh-9892
7 years ago
Andy Wilkinson c2459fce47 Raise the minimum version of Gradle to 4.0
Closes gh-9516
7 years ago
Spring Buildmaster 17a5bb0be4 Next development version 7 years ago
Spring Buildmaster 41c5c0e7c9 Next development version 7 years ago
Andy Wilkinson 8b53ff454c Merge branch '1.5.x' 7 years ago