Manoj H Upendra Kumar
08/01/2022, 10:23 AMManoj H Upendra Kumar
08/01/2022, 2:51 PMgenerateGitProperties
task
Property 'gitProperties' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See <https://docs.gradle.org/6.9/userguide/more_about_tasks.html#sec:up_to_date_checks> for more details.
Property 'source' is declared without normalization specified. Properties of cacheable work must declare their normalization via @PathSensitive, @Classpath or @CompileClasspath. Defaulting to PathSensitivity.ABSOLUTE. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See <https://docs.gradle.org/6.9/userguide/more_about_tasks.html#sec:up_to_date_checks> for more details.
Eli Graber
08/01/2022, 7:21 AMNoClassDefFoundError
in consumers of the library.
Code in 🧵Tom Clift
08/02/2022, 6:03 AMdependencies {
// works (we want shared test classes that are not in the default configuration)
testImplementation project(path: ':test-common', configuration: 'testJar')
}
testing {
suites {
test {
dependencies {
// doesn't work
//implementation project(path: ':test-common', configuration: 'testJar')
implementation project(':test-common') {
// something here to indicate we want the `testJar` configuration?
}
}
}
}
}
this thread had some related discussion.Joshi Garikimukkala
08/02/2022, 10:56 AMTask libraryverifyReleaseResources FAILEDFAILURE: Build failed with an exception.
Javier Tobar
08/01/2022, 7:04 PM.avdl
file change and the task was just cached.
The resulting image was faulty and didn’t work properly. We had to force the re-generation of avro files by adding new lines to the file so that the changes would get detected.
I’ve tried replicating the issue locally to no avail, the change always gets detected locally.minhgo
08/03/2022, 6:13 AMProcess 'command 'C:\Users\.....\.mcreator\gradle\jdks\jdk8u332-b09\bin\java.exe'' finished with non-zero exit value 1* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 9s 10 actionable tasks: 3 executed, 7 up-to-date
François Guillot
08/03/2022, 6:32 AMTony Nyame
08/03/2022, 10:35 AMbuildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.buildG7.1.2'
classpath "org.jetbrains.kotlinkotlin gradle plugin$kotlin_version"
}
}
plugins {
id("java-gradle-plugin")
id("maven-publish")
id("com.gradle.plugin-publish") version "1.0.0-rc-1"
}
version = '0.0.1-SNAPSHOT'
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/......")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}Slackbot
08/03/2022, 10:38 AMMartin
08/03/2022, 2:51 PM./gradlew --stop
? Especially "low level" stacktraces. For an example:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.example.Foo
at ...
at ...
But if I re-run after a ./gradlew --stop
, I get more details:
Caused by: java.lang.ExceptionInInitializerError
at ...
at ...
Caused by: java.lang.NullPointerException: Cannot read the array length because the return value of "java.lang.Class.getEnumConstants()" is null
at ...
at ...
Is that because the classloader/JVM "knows" that a given class cannot be loaded and doesn't retry? Or something else? If that's the case, can I "flush" the classloader without doing a full stop of the daemon?Giuseppe Barbieri
08/03/2022, 9:24 PM- Problem: In version catalog misc, library aliases mpicbg and mpicbg. are mapped to the same accessor name getMpicbg().
library("mpicbg", "mpicbg:mpicbg:1.4.1")
library("mpicbg_", "mpicbg:mpicbg_:1.4.1")
is this normal?Lawrence
08/04/2022, 6:48 PM<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<properties>
<property>
<name>dependencyinjectorfactory</name>
<value>customimplementationclass</value>
</property>
</properties>
</configuration>
</plugin>
Is there an equivalent option for useTestNG in Gradle?Jason Kolovsky
08/04/2022, 10:12 PMjmfayard
08/05/2022, 5:21 AMscriptGoto
which only task is to run the scripts scripts/goto.main.kts
Giuseppe Barbieri
08/05/2022, 7:35 AMpluginManagement {
includeBuild("../gradle-catalog")
}
plugins {
id("org.scijava.catalogs")// version "31.1.2"
}
but I get:
An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.jvm', version: '1.7.10']
> Failed to apply plugin 'org.jetbrains.kotlin.jvm'.
> Cannot add extension with name 'kotlin', as there is an extension already registered with that name.
am I supposed to import such plugins differently?Hrafn Thorvaldsson
08/05/2022, 12:17 PMapply from <script-path>
when using Groovy does not work anymore.
Searching online I've come across all kinds of hacky solutions, but I'd like to figure out what the recommended standard way would be. From the official documentation I'm leaning towards Precompiled Script Plugins but would like some confirmation on that if at all possible.
_edit_: Just clarifying that while apply from
still functions, it's the generated type-safe accessors that are not working and I need to work around.Oliwer Lindell
08/05/2022, 3:23 PMJustin Tullgren
08/05/2022, 3:26 PMBen Madore
08/05/2022, 8:59 PMMyApiSpec.yaml
.
I want to generate code into two modules from this spec. api-model
which will be depended on only by the rest-app
module, and service-client
which will only be consuemd externally.
what’s the most appropriate way to share that api spec file across modules.
presently i have the file in api-model
and from that module i generate code INTO the other module. i assume this is not ideal.Zachary Sperske
08/06/2022, 11:55 PM.kt
files that have no enclosing class. I can see the methods in the resolved artifact, but I cannot reference them. Has anyone encountered this before when publishing a kotlin library?Chris Lee
08/07/2022, 5:21 PMJavi
08/08/2022, 10:36 AMwhenTaskAdded
. I have been able to move to withType().matching()
with no issues and fix it, but I want to know if using whenTaskAdded
is recommended and if it is not discouraged, why I am getting this incompatibility 🤔Oliwer Lindell
08/08/2022, 12:26 PMresources
wouldn't be included even after explicit definition?Slackbot
08/08/2022, 1:41 PMNiels Doucet
08/08/2022, 1:42 PMRobert Stancu
08/08/2022, 2:28 PMBálint Hegyi
08/08/2022, 3:28 PMVinay Potluri
08/08/2022, 6:01 PMClayton Walker
08/08/2022, 6:40 PMThe request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version, so compatibility cannot be checked.