Simon Marquis
09/23/2023, 1:23 PMEmmanuel Guerin
09/27/2023, 1:42 PMEwan
09/28/2023, 5:11 PMplugins {
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
id 'java'
id 'org.springframework.boot' version '3.1.4'
id 'io.spring.dependency-management' version '1.1.3'
}
group = 'com.learning'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
//queryDSL
annotationProcessor 'com.querydsl:querydsl-apt:4.4.0'
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta"
//annotationProcessor "jakarta.annotation:jakarta.annotation-api"
//annotationProcessor "jakarta.persistence:jakarta.persistence-api"
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}
def querydslDir = "$buildDir/generated/querydsl"
querydsl{
jpa = true
querydslSourcesDir = querydslDir
}
sourceSets{
main.java.srcDir querydslDir
}
configurations {
querydsl.extendsFrom compileClasspath
}
compileQuerydsl{
options.annotationProcessorPath = configurations.querydsl
}
ritesh singh
09/30/2023, 1:53 PMhiltJavaCompileDebug
task, which ends up executing JavaCompile
- which is a @Cacheable
task i believe.
The task was not up-to-date because of the following reasons:
Output property 'destinationDirectory' file build/intermediates/hilt/component_classes/debug has been removed.
Output property 'destinationDirectory' file build/intermediates/hilt/component_classes/debug/com has been removed.
Output property 'destinationDirectory' file build/intermediates/hilt/component_classes/debug/com/target has been removed.
Output property 'destinationDirectory' file build/intermediates/hilt/component_classes/debug/dagger has been removed.
Output property 'options.generatedSourceOutputDirectory' file build/generated/hilt/component_sources/debug has been removed.
☝️ states, task was not up-to-date
because few files were removed, that seems valid in case of incremental/up-to-date cache! But since JavaCompile
task is @Cacheable
- it should have take the route of local cache after incremental cache miss?Bilgehan Kalkan
10/10/2023, 6:56 AMThe build scan publishing request was rejected as the data exceeded the maximum size.
message on builds with higher task counts(76326 tasks).
Is there an anyway to force it to publish build scan other than splitting invoked tasks?Zak Taccardi
10/10/2023, 6:12 PMFileNotFoundException
in my unit test web server when test are executed remotely via test distribution, but not when executed locally.
This is a file that is in a subproject/src/main/assets
folder (android subproject).
Do Gradle Enterprise/Develocity remote test agents have a unique way of handling files? How can I make sure files form this folder (git source code) are available in remote test execution?Harold Dost
10/18/2023, 4:30 AMtwisterrob
11/01/2023, 9:45 AM[![Revved up by Gradle Enterprise](<https://img.shields.io/badge/Revved%20up%20by-Gradle%20Enterprise-06A0CE?logo=Gradle&labelColor=02303A)](https://ge.detekt.dev/scans>)
What is the recommended wording and colors for Develocity?René
11/01/2023, 1:49 PMbuildFinished
hook in the buildscan plugin configuration cache compatible? The info box in the manual at https://docs.gradle.com/enterprise/gradle-plugin/#adding_data_at_the_end_of_the_build implies its not?Gabriel Feo
11/02/2023, 7:12 PMganachoco
11/07/2023, 12:59 AMPredictive Test Selection
on my android project.
But it seems to require JUnit5 to enable Predictive Test Selection
.
And android test frameworks (robolectric or android instrumentation tests) are still based on JUnit4.
Is there migration guide to use Predictive Test Selection
for android project?Slackbot
11/09/2023, 1:25 PMRené
11/21/2023, 10:38 PMThe build cache configuration of the root build differs from the build cache configuration of the early evaluated ':build-conventions', ':build-tools', ':build-tools-internal' included builds. It is recommended to keep them consistent, see here .
We apply our build cache configuration via an init script. That worked well before. When debugging, we see these events resolved from the export api
id: 0
event: BuildEvent
data: {"timestamp":1700602606852,"type":{"majorVersion":1,"minorVersion":1,"eventType":"BuildCacheConfiguration"},"data":{"local":{"type":"directory","className":"org.gradle.caching.local.DirectoryBuildCache","config":{"location":"/opt/buildkite-agent/.gradle/caches/build-cache-1","removeUnusedEntriesAfter":"7 days"},"push":true,"enabled":true},"remote":{"type":null,"className":null,"config":null,"push":null,"enabled":false},"buildCacheEnabled":true,"buildPath":":build-conventions"}}
id: 1
event: BuildEvent
data: {"timestamp":1700602608074,"type":{"majorVersion":1,"minorVersion":1,"eventType":"BuildCacheConfiguration"},"data":{"local":{"type":"directory","className":"org.gradle.caching.local.DirectoryBuildCache","config":{"location":"/opt/buildkite-agent/.gradle/caches/build-cache-1","removeUnusedEntriesAfter":"7 days"},"push":true,"enabled":true},"remote":{"type":null,"className":null,"config":null,"push":null,"enabled":false},"buildCacheEnabled":true,"buildPath":":build-tools"}}
id: 2
event: BuildEvent
data: {"timestamp":1700602612227,"type":{"majorVersion":1,"minorVersion":1,"eventType":"BuildCacheConfiguration"},"data":{"local":{"type":"directory","className":"org.gradle.caching.local.DirectoryBuildCache","config":{"location":"/opt/buildkite-agent/.gradle/caches/build-cache-1","removeUnusedEntriesAfter":"7 days"},"push":true,"enabled":true},"remote":{"type":null,"className":null,"config":null,"push":null,"enabled":false},"buildCacheEnabled":true,"buildPath":":build-tools-internal"}}
id: 3
event: BuildEvent
data: {"timestamp":1700602628253,"type":{"majorVersion":1,"minorVersion":1,"eventType":"BuildCacheConfiguration"},"data":{"local":{"type":null,"className":null,"config":null,"push":null,"enabled":false},"remote":{"type":"Gradle Enterprise","className":"com.gradle.enterprise.gradleplugin.internal.a.b","config":{"Allow untrusted server":"false","Cache path":"cache","Allow insecure protocol":"false","Use ExpectContinue":"false","Gradle Enterprise server":"<https://ge.acme.co>","Use username/password":"true","Build cache server":"<https://gradle-enterprise.elastic.co>","Use access key":"false"},"push":true,"enabled":true},"buildCacheEnabled":true,"buildPath":":"}}
before switching to the Gradle Enterprise connector we saw this "correct" appearing setup:
id: 0
event: BuildEvent
data: {"timestamp":1700052651320,"type":{"majorVersion":1,"minorVersion":1,"eventType":"BuildCacheConfiguration"},"data":{"local":{"type":null,"className":null,"config":null,"push":null,"enabled":false},"remote":{"type":"HTTP","className":"org.gradle.caching.http.HttpBuildCache","config":{"allowUntrustedServer":"false","authenticated":"true","useExpectContinue":"false","allowInsecureProtocol":"false","url":"<https://ge.acme.co/cache/>"},"push":true,"enabled":true},"buildCacheEnabled":true,"buildPath":":build-conventions"}}
id: 1
event: BuildEvent
data: {"timestamp":1700052652095,"type":{"majorVersion":1,"minorVersion":1,"eventType":"BuildCacheConfiguration"},"data":{"local":{"type":null,"className":null,"config":null,"push":null,"enabled":false},"remote":{"type":"HTTP","className":"org.gradle.caching.http.HttpBuildCache","config":{"allowUntrustedServer":"false","authenticated":"true","useExpectContinue":"false","allowInsecureProtocol":"false","url":"<https://ge.acme.co/cache/>"},"push":true,"enabled":true},"buildCacheEnabled":true,"buildPath":":build-tools"}}
id: 2
event: BuildEvent
data: {"timestamp":1700052654020,"type":{"majorVersion":1,"minorVersion":1,"eventType":"BuildCacheConfiguration"},"data":{"local":{"type":null,"className":null,"config":null,"push":null,"enabled":false},"remote":{"type":"HTTP","className":"org.gradle.caching.http.HttpBuildCache","config":{"allowUntrustedServer":"false","authenticated":"true","useExpectContinue":"false","allowInsecureProtocol":"false","url":"<https://ge.acme.co/cache/>"},"push":true,"enabled":true},"buildCacheEnabled":true,"buildPath":":build-tools-internal"}}
id: 3
event: BuildEvent
data: {"timestamp":1700052656465,"type":{"majorVersion":1,"minorVersion":1,"eventType":"BuildCacheConfiguration"},"data":{"local":{"type":null,"className":null,"config":null,"push":null,"enabled":false},"remote":{"type":"HTTP","className":"org.gradle.caching.http.HttpBuildCache","config":{"allowUntrustedServer":"false","authenticated":"true","useExpectContinue":"false","allowInsecureProtocol":"false","url":"<https://ge.acme.co/cache/>"},"push":true,"enabled":true},"buildCacheEnabled":true,"buildPath":":"}}
This appears to be a bug in the connector api. Is there a workaround or a fix for this?René
11/21/2023, 10:40 PMritesh singh
11/25/2023, 11:36 AMManuel Nakamurakare
11/27/2023, 7:26 PMCharbel Sadaka
12/05/2023, 7:27 AMKyle Lehman
12/07/2023, 7:52 PMprepareKotlinBuildScriptModel
task.Gabriel Feo
12/08/2023, 7:46 PMConan Bee
12/15/2023, 10:04 AMvoid configureA(Configuration c, List l) {
c.resolutionStrategy { ResolutionStrategy rs ->
List ll = []
rs.eachDependency {details ->
if (details.requested.name == "groovy") {
details.useVersion('3.0.8')
println details.requested.name
}
ll.add(details.requested.name)
project.logger.lifecycle("+++++++++ll: ${ll}++++++++++")
}
project.logger.lifecycle "==========ll: ${ll}=========="
}
project.logger.lifecycle "==========l: ${l}=========="
}
void configureInit() {
List l = []
project.configurations.configureEach {
configureA(it, l)
}
project.logger.lifecycle "########l: ${l}#########"
}
Vinay Potluri
01/23/2024, 12:57 AM--scan
flag for every command. How do I enable this flag by default for all commands within the project ?
2. Can I enable this for a set of tasks so that I have a single build scan for required tasks combined ?Sergey Chernov
01/26/2024, 11:33 AMJean Helou
02/02/2024, 3:09 PM❯ git diff
diff --git a/.mvn/gradle-enterprise.xml b/.mvn/gradle-enterprise.xml
index 11ead2618b..b91bda1be4 100644
--- a/.mvn/gradle-enterprise.xml
+++ b/.mvn/gradle-enterprise.xml
@@ -11,9 +11,9 @@
<buildScan>
<backgroundBuildScanUpload>#{isFalse(env['CI'])}</backgroundBuildScanUpload>
<!-- Always publish build scans for CI, only if requested locally -->
- <publish>#{env['CI'] == null ? 'ON_DEMAND' : 'ALWAYS'}</publish>
+ <publish>#{env['CI'] == null ? 'ALWAYS' : 'ALWAYS'}</publish>
<capture>
- <goalInputFiles>false</goalInputFiles> <!-- To be enabled locally when debugging goal caching or if we want to enable predictive test selection -->
+ <goalInputFiles>true</goalInputFiles> <!-- To be enabled locally when debugging goal caching or if we want to enable predictive test selection -->
<buildLogging>false</buildLogging> <!-- disabled by default for privacy and performance, to be discussed -->
<testLogging>false</testLogging> <!-- disabled by default for privacy and performance, to be discussed -->
</capture>
any idea what I'm missing here ?CristianGM
02/12/2024, 2:36 PMPhilip W
04/03/2024, 8:04 AMplugins {
id "com.gradle.develocity" version "3.17"
}
develocity {
buildScan {
termsOfUseUrl = '<https://gradle.com/terms-of-service>'
termsOfUseAgree = 'yes'
}
}
Jonathan kernan
04/03/2024, 3:51 PMJörgen Andersson
04/08/2024, 5:42 PMZak Taccardi
04/09/2024, 12:44 AMŁukasz Wasylkowski
04/15/2024, 11:30 AM--scan
it's now an opt-out via --no-scan
or publishing { onlyIf { false } }
to get back to the old behavior. Not a big deal, but there's no mention of that anywhere in the release notes, so we upgraded a bunch of repos only to have to go and adjust all the scripts to the old behavior.
Then there's 3.17.1 version which allows muting obscure deprecation warnings, apparently from transitive dependencies (why would they pull GE, I don't know). But the release notes say [NEW] Support muting Gradle Enterprise deprecation warnings coming from transitive dependencies
, but how do I do that?TrevJonez
04/17/2024, 5:17 PM