forked from spring-projects/spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes spring-projectsgh-19609 Closes spring-projectsgh-19608
- Loading branch information
1 parent
abe95fa
commit ce99db1
Showing
974 changed files
with
17,092 additions
and
26,580 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
plugins { | ||
id 'org.jetbrains.kotlin.jvm' apply false // https://youtrack.jetbrains.com/issue/KT-30276 | ||
} | ||
|
||
description = 'Spring Boot Build' | ||
|
||
allprojects { | ||
group 'org.springframework.boot' | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { url 'https://repo.spring.io/milestone' } | ||
maven { url 'https://repo.spring.io/snapshot' } | ||
} | ||
|
||
configurations.all { | ||
resolutionStrategy.cacheChangingModulesFor 60, 'minutes' | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
= BOM Plugin | ||
|
||
Allows one to publish a BOM from Gradle. | ||
Properties, dependencies, and other BOMs are applied to the `bom {}` extension. | ||
|
||
This plugin applies the `java-platform` and `maven-publish` plugins to the Project it's applied to. | ||
|
||
== Usage | ||
|
||
[source,groovy,indent=0] | ||
---- | ||
plugins { | ||
id 'org.springframework.boot.bom' | ||
} | ||
bom { | ||
property 'logback.version', '1.2.3' | ||
property 'junit-jupiter.version', '5.3.2' | ||
dependency 'ch.qos.logback', 'logback-classic', '${logback.version}' | ||
dependency 'ch.qos.logback', 'logback-core', '${logback.version}' | ||
bomImport 'org.junit', 'junit-bom', '${junit-jupiter.version}' | ||
} | ||
---- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
plugins { | ||
id 'java-gradle-plugin' | ||
id 'io.spring.javaformat' version '0.0.18-SNAPSHOT' | ||
id 'checkstyle' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
gradlePluginPortal() | ||
maven { url 'https://repo.spring.io/release' } | ||
} | ||
|
||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
|
||
dependencies { | ||
checkstyle 'io.spring.javaformat:spring-javaformat-checkstyle:0.0.15' | ||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.0' | ||
implementation 'commons-codec:commons-codec:1.13' | ||
implementation 'org.apache.maven:maven-embedder:3.6.2' | ||
implementation 'org.asciidoctor:asciidoctor-gradle-jvm:2.4.0' | ||
implementation 'org.springframework:spring-core:5.2.2.RELEASE' | ||
implementation 'org.springframework:spring-web:5.2.2.RELEASE' | ||
implementation 'com.google.code.gson:gson:2.8.5' | ||
implementation 'io.spring.javaformat:spring-javaformat-gradle-plugin:0.0.15' | ||
testImplementation 'org.assertj:assertj-core:3.11.1' | ||
testImplementation 'org.apache.logging.log4j:log4j-core:2.12.1' | ||
testImplementation 'org.junit.jupiter:junit-jupiter:5.5.2' | ||
} | ||
|
||
checkstyle { | ||
def archive = configurations.checkstyle.filter { it.name.startsWith('spring-javaformat-checkstyle')} | ||
config = resources.text.fromArchiveEntry(archive, 'io/spring/javaformat/checkstyle/checkstyle.xml') | ||
toolVersion = 8.11 | ||
} | ||
|
||
gradlePlugin { | ||
plugins { | ||
autoConfigurationPlugin { | ||
id = "org.springframework.boot.auto-configuration" | ||
implementationClass = "org.springframework.boot.build.autoconfigure.AutoConfigurationPlugin" | ||
} | ||
bomPlugin { | ||
id = "org.springframework.boot.bom" | ||
implementationClass = "org.springframework.boot.build.bom.BomPlugin" | ||
} | ||
configurationPropertiesPlugin { | ||
id = "org.springframework.boot.configuration-properties" | ||
implementationClass = "org.springframework.boot.build.context.properties.ConfigurationPropertiesPlugin" | ||
} | ||
conventionsPlugin { | ||
id = "org.springframework.boot.conventions" | ||
implementationClass = "org.springframework.boot.build.ConventionsPlugin" | ||
} | ||
deployedPlugin { | ||
id = "org.springframework.boot.deployed" | ||
implementationClass = "org.springframework.boot.build.DeployedPlugin" | ||
} | ||
integrationTestPlugin { | ||
id = "org.springframework.boot.integration-test" | ||
implementationClass = "org.springframework.boot.build.test.IntegrationTestPlugin" | ||
} | ||
mavenPluginPlugin { | ||
id = "org.springframework.boot.maven-plugin" | ||
implementationClass = "org.springframework.boot.build.mavenplugin.MavenPluginPlugin" | ||
} | ||
mavenRepositoryPlugin { | ||
id = "org.springframework.boot.maven-repository" | ||
implementationClass = "org.springframework.boot.build.MavenRepositoryPlugin" | ||
} | ||
optionalDependenciesPlugin { | ||
id = "org.springframework.boot.optional-dependencies" | ||
implementationClass = "org.springframework.boot.build.optional.OptionalDependenciesPlugin" | ||
} | ||
starterPlugin { | ||
id = "org.springframework.boot.starter" | ||
implementationClass = "org.springframework.boot.build.starters.StarterPlugin" | ||
} | ||
} | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
pluginManagement { | ||
repositories { | ||
mavenCentral() | ||
gradlePluginPortal() | ||
maven { url 'https://repo.spring.io/snapshot' } | ||
} | ||
resolutionStrategy { | ||
eachPlugin { | ||
if (requested.id.id == 'io.spring.javaformat') { | ||
useModule "io.spring.javaformat:spring-javaformat-gradle-plugin:${requested.version}" | ||
} | ||
} | ||
} | ||
} | ||
|
||
apply from: new File(settingsDir, '../gradle/build-cache-settings.gradle') |
Oops, something went wrong.