Polish Gradle tasks for AOT processing
Closes gh-32946
This commit is contained in:
@@ -4,12 +4,28 @@ plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url 'file:repository' }
|
||||
}
|
||||
|
||||
configurations.all {
|
||||
resolutionStrategy {
|
||||
eachDependency {
|
||||
if (it.requested.group == 'org.springframework.boot') {
|
||||
it.useVersion project.bootVersion
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(":library")
|
||||
}
|
||||
|
||||
task('processTestAotClasspath') {
|
||||
dependsOn configurations.processTestAotClasspath
|
||||
doFirst {
|
||||
tasks.findByName('processTestAot').classpath.files.each { println it }
|
||||
configurations.processTestAotClasspath.files.each { println it }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,17 @@ plugins {
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url 'file:repository' }
|
||||
}
|
||||
|
||||
configurations.all {
|
||||
resolutionStrategy {
|
||||
eachDependency {
|
||||
if (it.requested.group == 'org.springframework.boot') {
|
||||
it.useVersion project.bootVersion
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -13,7 +24,8 @@ dependencies {
|
||||
}
|
||||
|
||||
task('processTestAotClasspath') {
|
||||
dependsOn configurations.processTestAotClasspath
|
||||
doFirst {
|
||||
tasks.findByName('processTestAot').classpath.files.each { println it }
|
||||
configurations.processTestAotClasspath.files.each { println it }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
<version>TEST-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.platform</groupId>
|
||||
<artifactId>junit-platform-launcher</artifactId>
|
||||
<version>1.9.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user