-
Notifications
You must be signed in to change notification settings - Fork 40.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
25 changed files
with
170 additions
and
119 deletions.
There are no files selected for viewing
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
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
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
4 changes: 4 additions & 0 deletions
4
...radle/plugin/JavaPluginActionIntegrationTests-applyingJavaPluginCreatesBootJarTask.gradle
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,4 @@ | ||
plugins { | ||
id 'org.springframework.boot' version '{version}' | ||
id 'java' | ||
} |
4 changes: 4 additions & 0 deletions
4
...radle/plugin/JavaPluginActionIntegrationTests-applyingJavaPluginCreatesBootRunTask.gradle
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,4 @@ | ||
plugins { | ||
id 'org.springframework.boot' version '{version}' | ||
id 'java' | ||
} |
12 changes: 12 additions & 0 deletions
12
...PluginActionIntegrationTests-applyingJavaPluginCreatesDevelopmentOnlyConfiguration.gradle
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,12 @@ | ||
plugins { | ||
id 'org.springframework.boot' version '{version}' | ||
id 'java' | ||
} | ||
|
||
springBoot { | ||
mainClass = "com.example.Main" | ||
} | ||
|
||
gradle.taskGraph.whenReady { | ||
println "developmentOnly exists = ${configurations.findByName('developmentOnly') != null}" | ||
} |
4 changes: 4 additions & 0 deletions
4
...avaPluginActionIntegrationTests-errorMessageIsHelpfulWhenMainClassCannotBeResolved.gradle
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,4 @@ | ||
plugins { | ||
id 'org.springframework.boot' version '{version}' | ||
id 'java' | ||
} |
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
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
16 changes: 16 additions & 0 deletions
16
...oot/gradle/plugin/JavaPluginActionIntegrationTests-javaCompileTasksUseUtf8Encoding.gradle
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 @@ | ||
plugins { | ||
id 'org.springframework.boot' version '{version}' | ||
id 'java' | ||
} | ||
|
||
springBoot { | ||
mainClass = "com.example.Main" | ||
} | ||
|
||
gradle.taskGraph.whenReady { | ||
gradle.taskGraph.allTasks.each { | ||
if (it instanceof JavaCompile) { | ||
println "${it.name} = ${it.options.encoding}" | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...adle/plugin/JavaPluginActionIntegrationTests-noBootJarTaskWithoutJavaPluginApplied.gradle
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,3 @@ | ||
plugins { | ||
id 'org.springframework.boot' version '{version}' | ||
} |
3 changes: 3 additions & 0 deletions
3
...adle/plugin/JavaPluginActionIntegrationTests-noBootRunTaskWithoutJavaPluginApplied.gradle
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,3 @@ | ||
plugins { | ||
id 'org.springframework.boot' version '{version}' | ||
} |
16 changes: 16 additions & 0 deletions
16
...aPluginActionIntegrationTests-productionRuntimeClasspathIsConfiguredWithAttributes.gradle
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 @@ | ||
plugins { | ||
id 'org.springframework.boot' version '{version}' | ||
id 'java' | ||
} | ||
|
||
springBoot { | ||
mainClass = "com.example.Main" | ||
} | ||
|
||
gradle.taskGraph.whenReady { | ||
def attributes = configurations.findByName('productionRuntimeClasspath').attributes | ||
println "${attributes.keySet().size()} productionRuntimeClasspath attributes:" | ||
attributes.keySet().each { attribute -> | ||
println " ${attribute}: ${attributes.getAttribute(attribute)}" | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...eClasspathIsConfiguredWithResolvabilityAndConsumabilityThatMatchesRuntimeClasspath.gradle
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,19 @@ | ||
plugins { | ||
id 'org.springframework.boot' version '{version}' | ||
id 'java' | ||
} | ||
|
||
springBoot { | ||
mainClass = "com.example.Main" | ||
} | ||
|
||
gradle.taskGraph.whenReady { | ||
analyzeConfiguration('productionRuntimeClasspath') | ||
analyzeConfiguration('runtimeClasspath') | ||
} | ||
|
||
def analyzeConfiguration(String configurationName) { | ||
Configuration configuration = configurations.findByName(configurationName) | ||
println "$configurationName canBeResolved: ${configuration.canBeResolved}" | ||
println "$configurationName canBeConsumed: ${configuration.canBeConsumed}" | ||
} |
Oops, something went wrong.