Oliwer Lindell
08/08/2022, 7:20 PMEli Graber
08/08/2022, 10:35 PMkotlin-dsl
.
Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' optionAre there any issues with using
-jvm-target=17
in a project that uses kotlin-dsl
?Eli Graber
08/09/2022, 1:38 AMEli Graber
08/09/2022, 9:13 AMRegularFileProperty
as its output, and another API that is expecting the task's output to be a `DirectoryProperty`(which would be the `RegularFileProperty`'s parent file). Is there any way to map that?Robert Stancu
08/09/2022, 10:42 AMBen Madore
08/09/2022, 6:58 PMtest-results/build.gradle.kts
i don’t want to do
dependencies {
testReportAggregation(project(":module1"))
testReportAggregation(project(":module2"))
...
testReportAggregation(project(":moduleN"))
}
is this verboten:
dependencies {
project.rootProject.subprojects.findAll { !it.path.contains('test-results') }.each {
testReportAggregation(project(it.path))
}
}
Hristo Alexiev
08/09/2022, 8:41 PMJohn Bellini
08/09/2022, 11:44 PM/root/.gradle
. Is it possible to change the location to another user specified locatin?
My rationale to wanting to do this is b/c the gitlab documentation states you cannot cache files that are outside of the project directory such as /root/.gradle
Resource missing. [HTTP HEAD: <https://plugins.gradle.org/m2/org/gradle/kotlin/kotlin-dsl/org.gradle.kotlin.kotlin-dsl.gradle.plugin/2.1.7/org.gradle.kotlin.kotlin-dsl.gradle.plugin-2.1.7.jar>]
Downloading <https://plugins.gradle.org/m2/org/gradle/kotlin/gradle-kotlin-dsl-plugins/2.1.7/gradle-kotlin-dsl-plugins-2.1.7.pom> to /root/.gradle/.tmp/gradle_download413948827872553347bin
Downloading <https://plugins.gradle.org/m2/org/gradle/kotlin/gradle-kotlin-dsl-plugins/2.1.7/gradle-kotlin-dsl-plugins-2.1.7.module> to /root/.gradle/.tmp/gradle_download980103202218045376bin
Downloading <https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.31/kotlin-gradle-plugin-1.5.31.pom> to /root/.gradle/.tmp/gradle_download11092993221762932122bin
Downloading <https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-sam-with-receiver/1.5.31/kotlin-sam-with-receiver-1.5.31.pom> to /root/.gradle/.tmp/gradle_download1470356469180692778bin
Downloading <https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.5.31/kotlin-stdlib-jdk8-1.5.31.pom> to /root/.gradle/.tmp/gradle_download240355558296687077bin
Satyarth Sampath
08/11/2022, 8:15 AM--rerun-tasks
or with build-cache disabled may help confirm that? But this most probably is a convention used by the task/plugin responsible for publishing. What version of AGP and gradle are these?El Zhang
08/11/2022, 1:08 PMproject
with a composite-built project
? I know it’s feasible to replace a module
with a project
, or replace a module
with a module
, but I did not see project to project from the document. https://docs.gradle.org/current/userguide/resolution_rules.htmlCristianGM
08/12/2022, 9:23 AMVinay Potluri
08/12/2022, 11:51 PMclass ExamplePlugin : Plugin<Project> {
override fun apply(project: Project) {
project.task("example") {
doLast {
println("hello world")
}
}
}
gradlePlugin {
plugins {
create("simplePlugin") {
id = "org.example.example"
implementationClass = "ExamplePlugin"
}
}
}
Alon Eitan
08/15/2022, 12:51 PM├── root
│ ├── foo1
│ ├── foo2
│ └── foo3
│ ├── bar1
│ ├── bar2
│ └── bar3
In my company we call them "multi layer projects" but I'm not sure that's the accepted termTanguy Retail
08/16/2022, 7:10 PM./gradlew :A:build
; B and A will be successfully recompiled, but tests are only run on project A.
Is it intended behaviour (I guess so but cannot figure out why)?
How does Gradle determine if the test task needs to be rerun?Daniel Singer
08/16/2022, 11:43 PMCannot inline bytecode built with JVM target 17 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' optionIs there a way to override the JVM target to use 17 without applying
kotlin-dsl
?Joshua Fenemore
08/17/2022, 8:20 PMNoel O'Brien
08/17/2022, 11:17 PMroi
in it but don’t seem to have made a note of it 😕Emil Kantis
08/18/2022, 6:01 AMReceiver class org.gradle.accessors.dm.LibrariesForKotest_Decorated does not define or inherit an implementation of the resolved method 'abstract org.gradle.api.plugins.ExtensionContainer getExtensions()' of interface org.gradle.api.plugins.ExtensionAware.
Any ideas? 🤔David Otto
08/18/2022, 7:34 AMjava.toolchain.languageVersion
?Ryan Schmitt
08/18/2022, 5:53 PM--release
flag through the JavaPluginExtension
?neeraj bhusare
08/19/2022, 9:19 AMdependencyResolutionManagement
. Is there a way I can access the custom-repo in the publishing
block in a subproject?
The intention was to avoid redefining the custom repo.tony
08/19/2022, 4:22 PM* What went wrong:
Execution failed for task ':features:open-tickets-v2:split-ticket:impl-mobile:testDebugUnitTest'.
> No tests found for given includes:
I have a situation where I (think I) must set a test filter, and I'd like the task to just pass if there are no matching testsphildo
08/19/2022, 7:33 PMFAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':generateJsonModelDebug'.
> java.lang.NullPointerException (no error message)
phildo
08/19/2022, 7:34 PMStylianos Gakis
08/20/2022, 1:05 PMPluginAccessors
?
Inside a normal build.gradle.kts
I can do alias(libs.plugins.doctor)
with my version catalogs contain under the [plugins]
block, this doctor = { id = "com.osacky.doctor", version.ref = "doctor" }
However inside my convention plugin, I do not know how to get the same reference. Right now in order to get my library references I just do val libs = extensions.getByType<VersionCatalogsExtension>().named("libs")
, but not sure if there’s an alternative to do the same to get the plugins. I am now using normal strings to apply the plugins, just like here but this seems prone to typos and such.Emil Kantis
08/20/2022, 4:17 PMextensions
caused the issue. Reported hereBarteks2x
08/20/2022, 5:23 PM7:17:13 PM: Executing 'build'...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':newTestTask'.
> Could not resolve all task dependencies for configuration ':newTestConf'.
> The consumer was configured to find attribute 'transformed' with value 'true'. However we cannot choose between the following variants of project :sub:
- Configuration ':sub:runtimeElements' variant classes:
- Unmatched attributes:
- Provides artifactType 'java-classes-directory' but the consumer didn't ask for it
- Provides org.gradle.category 'library' but the consumer didn't ask for it
- Provides org.gradle.dependency.bundling 'external' but the consumer didn't ask for it
- Provides org.gradle.jvm.version '8' but the consumer didn't ask for it
- Provides org.gradle.libraryelements 'classes' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
- Doesn't say anything about transformed (required 'true')
- Configuration ':sub:runtimeElements' variant resources:
- Unmatched attributes:
- Provides artifactType 'java-resources-directory' but the consumer didn't ask for it
- Provides org.gradle.category 'library' but the consumer didn't ask for it
- Provides org.gradle.dependency.bundling 'external' but the consumer didn't ask for it
- Provides org.gradle.jvm.version '8' but the consumer didn't ask for it
- Provides org.gradle.libraryelements 'resources' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
- Doesn't say anything about transformed (required 'true')
The following variants were also considered but didn't match the requested attributes:
- Configuration ':sub:runtimeElements':
- Incompatible because this component declares attribute 'transformed' with value 'false' and the consumer needed attribute 'transformed' with value 'true'
* 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>
BUILD FAILED in 75ms
7:17:13 PM: Execution finished 'build'.
Stylianos Gakis
08/20/2022, 11:09 PMcompileOnly
before, and I can’t figure out exactly when you’d want to do so, but reading the description it made me think maybe it’d make sense for something like dependencies that your convention plugins may need in order to configure other plugin’s tasks and stuff like that.
Like I’m testing in my convention plugin, to turn this implementation
into compileOnly
since I only use this to configure some org.jlleitschuh.gradle.ktlint
tasks here, and as I understand it, I only need this at compile time. In fact even if I change all of these four implementations to compileOnly it still seems to work.
Is this a valid use case for it? is this considered “premature optimization” since maybe this change doesn’t mean much? Just looking to understand compileOnly
a bit better here basically 👀Arya Mohajer
08/21/2022, 2:14 PMArya Mohajer
08/21/2022, 2:14 PMA failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction> Android resource linking failed ERRORF\programming\flutter\project\Mr.one\build\app\intermediates\packaged_manifests\debug\AndroidManifest.xml17 AAPT: error: resource mipmap/ic_launcher (aka Mr.one.com.mrone:mipmap/ic_launcher) not found. * 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 BUILD FAILED in 2s Exception: Gradle task assembleDebug failed with exit code 1