Christoph Sturm
09/22/2022, 10:11 PMregister("runWithEnv", JavaExec::class) {
environment("XXXX", "YYY")
classpath = sourceSets.main.get().runtimeClasspath
mainClass.set("...")
}
Eli Graber
09/23/2022, 1:49 AMrrva
09/23/2022, 6:56 AMjava.lang.Exception: Cannot create empty file: /builds/myproject/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab
gradle 7.5.1, kotlin 1.7.10, gitlab.
Usually, retrying the build works. It seems to be some cache lifecycle issue.John
09/23/2022, 2:40 PMmelix
09/23/2022, 4:15 PMAlexandru Hadăr
09/23/2022, 5:13 PMbuild.gradle
file, the plugin
closure applies the plugin to all submodules in the app.
However, if I have something like:
plugins {
id("com.android.application") version "7.1.0-beta02" apply false
id("org.jetbrains.kotlin.android") version "1.5.30" apply false
}
Wouldn’t that mean that all my submodules will become android applications
?Zak Taccardi
09/25/2022, 4:49 AMVampire
09/25/2022, 12:18 PMAnderson Lameck
09/26/2022, 1:36 AMbecause
clause when using version catalogs?
This appears to be working
val commonMain by getting {
dependencies {
api("com:kool-dep:1.0.0") {
because("I like cool things")
}
}
}
This one does not appear to be working
val commonMain by getting {
dependencies {
api(libs.koolDep) {
because("I like cool things")
}
}
}
melix
09/26/2022, 8:30 AMSebastian Schuberth
09/27/2022, 7:00 AM--scan
/ --no-scan
?Justin Tullgren
09/27/2022, 2:28 PMmaven
publish components, where one includes the source and docs, while the other does not? For publishing a "release" to a public repo with just docs. This is for a multi project, where the consumer uses an Android Library which is dependent on the other projects in the build.Hervé Guillemet
09/28/2022, 3:58 AMtasks.register<JavaExec>("someTask") {
classpath = sourceSets["main"].runtimeClasspath
mainClass.set("some.class")
mainModule.set("some.module")
args("--foo")
}
, but if I use the --args bar
option when launching the task, this will override the setting of --foo
.
Any way to force a command line argument from the build script that won't get erased when --args
is used ?Jakub Chrzanowski
09/28/2022, 5:53 AMVerificationTask
? Does that interface provide a unified setter/getter, or is there any logic within Gradle internals?Matan Sabag
09/28/2022, 1:37 PMZak Taccardi
09/28/2022, 7:27 PM@OutputDirectory val outputDir: Property<Directory> = objects.directoryProperty()
@Internal
val outputFile: Provider<RegularFile>
get() = outputDir
.map { it.file("SharedGroovyCode.groovy") }
outputDir
is the main output here, and outputFile
is just an accessor to more conveniently access a subset of that output downstream.Barteks2x
09/28/2022, 9:57 PMorg.gradle.jvmargs
property, and because of that gradle runs out of memory. Is there any way to make it actually use that property?Zak Taccardi
09/29/2022, 4:36 PMFileSystemLocation
that I know is a file and not a directory, how can I reliably convert it to a RegularFile
?Mike Rampson
09/29/2022, 5:14 PMmaxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
Caleb Cushing
09/29/2022, 5:34 PMDaniel Svensson
09/30/2022, 8:46 AMSid B
10/01/2022, 4:33 AMgradle init
(with experimental features) recently for setting up a new project.
It generated this testing block
testing {
suites {
val test by getting(JvmTestSuite::class) {
useJUnitJupiter("5.9.1")
}
}
}
If I don't need any additional test suites, Does this approach have any advantages over using the test extension like this? (other than automatically adding the junit-jupiter
dependency)
tasks.test {
useJunitPlatform()
}
Stylianos Gakis
10/01/2022, 12:09 PMBen Blechman
10/03/2022, 9:44 PMabstract class MyBuildServiceParameters: BuildServiceParameters {
abstract val myOtherService: Property<OtherBuildService>
Documentation seems pretty thin on this subject.Petri Kivikangas
10/04/2022, 5:34 AMjava -Djarmode=layertools -jar target/docker-spring-boot-0.0.1.jar extract
Caleb Cushing
10/04/2022, 3:02 PMRomulo Ruas
10/04/2022, 6:30 PMCaleb Cushing
10/04/2022, 11:37 PMCaleb Cushing
10/05/2022, 5:54 AMWishmi
10/05/2022, 5:10 PM