Speed up gradle build
This commit is contained in:
@@ -8,28 +8,28 @@ A suite of tests for applications using AOT on the JVM and in Graal native image
|
||||
|
||||
[source,]
|
||||
----
|
||||
./gradlew --offline :<name of the project>:jvmAotTest
|
||||
./gradlew :<name of the project>:jvmAotTest
|
||||
----
|
||||
|
||||
for example
|
||||
|
||||
[source,]
|
||||
----
|
||||
./gradlew --offline :actuator-webmvc:jvmAotTest
|
||||
./gradlew :actuator-webmvc:jvmAotTest
|
||||
----
|
||||
|
||||
=== Run a single test
|
||||
|
||||
[source,]
|
||||
----
|
||||
./gradlew --offline :<name of the project>:build
|
||||
./gradlew :<name of the project>:build
|
||||
----
|
||||
|
||||
for example
|
||||
|
||||
[source,]
|
||||
----
|
||||
./gradlew --offline :actuator-webmvc:build
|
||||
./gradlew :actuator-webmvc:build
|
||||
----
|
||||
|
||||
=== Add a new sample
|
||||
|
||||
@@ -3,8 +3,30 @@ pluginManagement {
|
||||
plugins {
|
||||
id "io.spring.javaformat" version "0.0.34"
|
||||
id "org.graalvm.buildtools.native" version "0.9.13"
|
||||
id "org.springframework.boot" version "3.0.0-SNAPSHOT"
|
||||
id "org.springframework.boot.aot" version "3.0.0-SNAPSHOT"
|
||||
}
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
mavenCentral()
|
||||
maven {
|
||||
url "https://repo.spring.io/release"
|
||||
content {
|
||||
includeGroup "io.spring.ge.conventions"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// This is needed to prevent gradle from checking for newer versions of the Spring Boot
|
||||
// plugin on every build in every sub-project
|
||||
buildscript {
|
||||
dependencies {
|
||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:3.0.0-SNAPSHOT")
|
||||
}
|
||||
configurations.classpath {
|
||||
resolutionStrategy {
|
||||
cacheDynamicVersionsFor 24, 'hours'
|
||||
cacheChangingModulesFor 24, 'hours'
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
@@ -12,11 +34,11 @@ pluginManagement {
|
||||
maven {
|
||||
url "https://repo.spring.io/snapshot"
|
||||
}
|
||||
maven {
|
||||
url 'https://repo.spring.io/milestone'
|
||||
}
|
||||
maven {
|
||||
url "https://repo.spring.io/release"
|
||||
content {
|
||||
includeGroup "io.spring.ge.conventions"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user