cedric
08/29/2019, 9:24 PMrun {}
(JavaExec
plug-in) in Gradle but in Kotlin? It can’t work out of the box since run
is part of the standard library, but even importing it and renaming it to _run
still won’t let me use Gradle’s run
symbol…jmmk
09/24/2019, 6:22 PMjvmTarget
setting in the build plugins to support 13
?Ran
10/29/2019, 10:02 AMEugen Martynov
12/18/2019, 11:59 AMKstabks
12/21/2019, 1:22 AMVijay
02/03/2020, 4:03 AMaipok
02/28/2020, 2:14 PMregister("flavorName"){ initWith="otherFlavor" }
in kotlin build script?Dariusz Kuc
04/13/2020, 11:12 PMDariusz Kuc
04/15/2020, 10:23 PMAbstractMojoTest
from maven-plugin-testing-harness
using Gradle? e.g. in my multi module lib I’m building both gradle and maven plugins and currently looking into how to write unit tests for the maven pluginCLOVIS
05/07/2020, 3:16 PMWesley Acheson
09/03/2020, 4:53 PMJúlio Santos
09/22/2020, 5:37 PMEugene
10/09/2020, 12:42 PMCLOVIS
10/23/2020, 10:15 PMmadisp
11/03/2020, 8:42 AMJuan-Carlos Foust
01/15/2021, 10:07 PMmvn clean install
from the command line (and JitPack). More details in this thread any help would be appreciated.elect
01/22/2021, 6:32 PMkotlinc
shell command when compiling some kotlin sources with ant?Matteo Mirk
01/26/2021, 3:20 PMDariusz Kuc
02/02/2021, 10:41 PMkotlin-maven-plugin
documentation site that lists all of the available goals and configurations? e.g. there is https://kotlinlang.org/docs/reference/using-maven.html but it doesn't mention script
goal (example from IT https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-maven-plugin-test/src/it/test-executeKotlinScriptBuildAccess/pom.xml#L31)CLOVIS
02/06/2021, 1:01 PMmaven-publish
). The Kotlin documentation states that it's necessary to define an artifact
block "in the publication's scope". What does that mean exactly? Do you know of an example/open source project that does that?SomeCat
02/16/2021, 6:51 PMankushg
02/23/2021, 10:02 PMankushg
02/24/2021, 4:44 PMEvan
03/03/2021, 6:11 PMkotlin-dsl
and the buildSrc
folder in my project. It relies on jCenter
which is at end of life. Does anyone know what repository I need to migrate to?diesieben07
03/16/2021, 7:44 PMkotlin {
sourceSets.all {
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
}
}
I would like to move this into buildSrc so in the modules I can just do:
kotlin {
configureExperimentalAnnotations()
}
To do this, I'd want to do this as an extension function on KotlinProjectExtension
, but I have no idea which dependency I need in the buildSrc
Gradle script for that. kotlin-gradle-plugin
doesn't have it.
Any advice?Slackbot
07/19/2021, 10:42 AMRob Elliot
07/21/2021, 9:39 AMkotlin-maven-plugin
, is there a way to exclude a dependency from the test compile classpath?
Context - I’m migrating a project from JUnit 4 to JUnit 5. But it uses testcontainers, which has a transitive dependency on JUnit 4. It’s really easy to accidentally use JUnit 4 annotations, and then find your tests aren’t running… I’d like to exclude JUnit 4 from the test compile classpath so that if you do so you find out fast.
Maven doesn’t distinguish between compile & runtime for test scope (why not?!) so I can’t just drop it down to be a runtime scoped dependency.
I could exclude it as a dependency of testcontainers, but:
a) that would exclude it from the runtime classpath, and testcontainers probably needs it
b) the odds are some other dependency will bring it in, now or later… playing whack-a-mole like that is zero fun
(Yes it would be easy in Gradle. No I’m not up for having that fight now.)Eugen Martynov
07/23/2021, 6:29 AMCaused by: java.lang.IllegalAccessError: class org.jetbrains.kotlin.kapt3.base.KaptContext (in unnamed module @0x52c27981) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module @0x52c27981
Any ideas? It is JDK 16 ARM and quite standard android projectNorbi
08/06/2021, 10:27 AMBrian Donovan
12/11/2021, 6:02 PM