user
11/26/2025, 2:05 PMuser
11/26/2025, 3:10 PMuser
11/26/2025, 4:20 PMprivate void printDataSourceConfiguration(String stage) {
<http://log.info|log.info>("Stage: ${stage}")
try {
// Unwrap if it's a TransactionAwareDataSourceProxy
DataSource actualDataSource = dataSource
actualDataSource = ((TransactionAwareDataSourceProxy) dataSource).getTargetDataSource()
def connection = actualDataSource.getConnection()
def metaData = connection.getMetaData()
<http://log.info|log.info>(" Database URL: ${metaData.getURL()}")
<http://log.info|log.info>(" Database Product: ${metaData.getDatabaseProductName()} ${metaData.getDatabaseProductVersion()}")
<http://log.info|log.info>(" Driver: ${metaData.getDriverName()} ${metaData.getDriverVersion()}")
connection.close()
} catch (Exception e) {
log.warn(" -> Could not extract connection metadata: ${e.message}")
}
}
what is the object I have to get data from?James Fredley
11/26/2025, 9:57 PMgiangio
11/27/2025, 10:14 AMincludes.js file:
// From Grails 7 included webjars
//= require webjars/dist/jquery.js
//= require webjars/dist/js/bootstrap.bundle.js
In the view:
<asset:javascript src="includes.js"/>
This is my build.radle :
assets {
minifyCss = true
minifyJs = true
minifyOptions = [
//SIMPLE (default) or ADVANCED or WHITESPACE_ONLY
optimizationLevel: "SIMPLE",
]
excludes = [
'webjars/jquery/**',
'webjars/bootstrap/**',
'webjars/bootstrap-icons/**',
]
includes = [
'webjars/jquery/*/dist/jquery.js',
'webjars/bootstrap/*/dist/js/bootstrap.bundle.js',
'webjars/bootstrap/*/dist/css/bootstrap.css',
]
}
They are not included. Building a jar shows:
11:06:33.369 [pool-1-thread-2] WARN asset.pipeline.DirectiveProcessor -- Unable to Locate Asset: /webjars/dist/jquery.js
11:06:33.372 [pool-1-thread-2] WARN asset.pipeline.DirectiveProcessor -- Unable to Locate Asset: /webjars/dist/js/bootstrap.bundle.js
11:06:36.139 [pool-1-thread-10] WARN asset.pipeline.DirectiveProcessor -- Unable to Locate Asset: /webjars/dist/jquery.js
11:06:36.140 [pool-1-thread-10] WARN asset.pipeline.DirectiveProcessor -- Unable to Locate Asset: /webjars/dist/js/bootstrap.bundle.js
11:06:36.567 [pool-1-thread-4] WARN asset.pipeline.DirectiveProcessor -- Unable to Locate Asset: /webjars/dist/css/bootstrap.css
11:06:39.512 [pool-1-thread-8] WARN asset.pipeline.DirectiveProcessor -- Unable to Locate Asset: /webjars/dist/css/bootstrap.css
What am I doing wrong?giangio
11/27/2025, 10:23 AMjar with the hash:rss
11/27/2025, 10:04 PMuser
11/28/2025, 1:13 PMinList("property", mySubQuery) I'm given an error:
ConverterNotFoundException: No converter found capable of converting from type [org.hibernate.criterion.DetachedCriteria] to type [java.lang.Long]
This is usually when there is some nesting of associations, but I haven't been able to extract a simple reproducible case from our application.
The issue arises in AbstractHibernateCriterionAdapter as follows
protected void applySubCriteriaToJunction(PersistentEntity entity, AbstractHibernateQuery hibernateCriteria, List<Query.Criterion> existing,
Junction conjunction, String alias) {
for (Query.Criterion subCriterion : existing) {
if (subCriterion instanceof Query.PropertyCriterion) {
Query.PropertyCriterion pc = (Query.PropertyCriterion) subCriterion;
if (pc.getValue() instanceof QueryableCriteria) {
pc.setValue(toHibernateDetachedCriteria(hibernateCriteria, (QueryableCriteria<?>) pc.getValue()));
}
else {
AbstractHibernateQuery.doTypeConversionIfNeccessary(entity, pc);
}
}
Here, pc.getValue() is an already converted Hibernate DetatchedCriteria, not the original Gorm DetachedCriteria - it looks like the gorm original has been converted, but I've yet been unable to trace where and when.
the Hibernate converted DC is not instanceof QueryableCriterion and so the engine looks instead to convert to a list of scalars.
Does anyone have any initial thoughts on bug/limitation or feature here?user
11/28/2025, 1:53 PMilPittiz
11/28/2025, 5:14 PMprofile: web) and multiple plugins (profile: plugin).
I’m trying to better understand if a multi-project build would fit my needs: I’m thinking of having 2 separate web-apps, sharing a bunch of code that I’d organize in one or more plugins.
If this is doable, what would ./gradlew assemble include in the .war archive? Both web-apps + all my plugins? Would ./gradlew appName:assemble create a .war for a single web-app?u47
12/02/2025, 10:28 PMgsandrew
12/03/2025, 12:36 AMuser
12/05/2025, 12:28 PMbuildscript {
repositories {
...
}
dependencies {
...
classpath 'org.grails.plugins:database-migration:4.1.0'
}
}
...
sourceSets {
main {
resources {
srcDir 'grails-app/migrations'
}
}
}
dependencies {
...
implementation 'org.grails.plugins:database-migration:4.1.0'
implementation 'org.liquibase:liquibase-core:4.19.0'
}
The folder structure is created correctly (grails-app/migrations/changelog.groovy), but even if it’s not, there are no failures in the build process, however, it just silently doesn’t run. Could anyone tell me what’s missing?user
12/07/2025, 8:28 AMuser
12/07/2025, 3:58 PMgsandrew
12/07/2025, 4:09 PMjdaugherty
12/07/2025, 4:09 PMjdaugherty
12/07/2025, 4:09 PMGaleno de Melo
12/09/2025, 5:51 PM./gradlew assetCompile , the gradle task compiles nicely until the first .scss file.
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
It happens mostly when using Docker with Java Temurin 8 image, but it sometimes happens locally on some devs computers. We are using the 3.2.5 version of asset pipeline plugin
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:3.2.5"
classpath "com.bertramlabs.plugins:asset-pipeline-core:3.2.5"
classpath "com.bertramlabs.plugins:sass-asset-pipeline:3.2.5"
When I tried moving to 3.4.0 with Sass Dart version, I saw the memory used by the process on System Monitoring jump from 3GB to 24GB in less than a minute. The files were being processed correctly and looking the debug logs I didn't find any circular injection, for example.
Do anybody else had this problem or something similar? Thanks in advanceu47
12/09/2025, 8:56 PMbuild.gradle and what's doing what (and how to configure it from within a Spring Boot app).u47
12/09/2025, 11:00 PMu47
12/09/2025, 11:26 PMjdaugherty
12/10/2025, 2:31 PMrss
12/10/2025, 2:54 PMu47
12/10/2025, 4:44 PMjdaugherty
12/10/2025, 4:44 PMjdaugherty
12/10/2025, 4:45 PMArtur Czocher
12/10/2025, 9:28 PMCaused by: groovy.lang.MissingMethodException: No signature of method: ......findConstraintsEvaluator() is applicable for argument types: () values: []
I can not find a solution. I asked AI 😄 and it told me to inject GrailsApplication to every Validateable class… there is hundreds of them.. is is this really it?rss
12/10/2025, 9:54 PMuser
12/12/2025, 4:31 PM