Zac Sweers
08/31/2021, 6:14 PMJames Whitehead
09/09/2021, 2:11 AMGabriel Duncan
09/16/2021, 6:04 PMdsvoronin
09/20/2021, 8:09 PMamadeu01
09/22/2021, 7:58 PMapply
, however it did not workGabriel Duncan
09/25/2021, 2:33 AMZac Sweers
10/18/2021, 2:40 PMEgons Zile
10/22/2021, 3:46 PMankushg
10/24/2021, 2:55 AMNick Halase
11/01/2021, 8:00 PMAdam S
11/03/2021, 9:39 PM<rootDir>/build/js/packages/data-model/node_modules/.bin/tstl
, but can I create a Gradle task that executes npx tstl
or similar in a nice way?
I feel like I'm close. I see in NpmProject
there's fun useTool(...)
- but I can't figure out how to access the NpmProject
from within a build.gradle.kts.
https://github.com/JetBrains/kotlin/blob/0915dac1f9f0e435e85d6b0cf3d255da1fd9ece1/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/js/npm/NpmProject.kt#L86
I also see there's a NodeJsExec
- but I can't see how to get the required KotlinJsCompilation
instance
https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/js/nodejs/NodeJsExec.ktVaios Tsitsonis
11/04/2021, 8:42 AMtapchicoma
11/09/2021, 1:02 PMmserralta
11/09/2021, 1:02 PMArian Stolwijk
11/09/2021, 1:13 PMgradlePluginPortal
to mavenCentral
, works a little bit, but then fails with:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.5.21')
Searched in the following repositories:
MavenLocal(file:/home/arian/.m2/repository/)
MavenRepo
tapchicoma
11/09/2021, 1:15 PMreactormonk
11/16/2021, 12:18 AMflatDir
, can I somehow also add the dependencies of these libs to gradle without copypasta?PHondogo
12/04/2021, 8:00 PMMorgan Pittkin
12/07/2021, 6:18 PMinternal
in each layer should only be visible to other code in that layer (and its corresponding test sourceSet).
Code outside of the module (jar) should only be able to see public code in the infrastructure layer. That is what comprises the public API for the whole jar file, and it is tiny. Just a couple of extension functions, interfaces, and classes.
The compilation should result in only a single jar file.
Is that something I can get working with sourceSets? Would JPMS modules be a better fit? I've never played around with JPMS, and I'm still learning Gradle.
I know I can mostly achieve this by just extracting the layers into their own projects, but then it's hard to enforce the encapsulation because other projects can simply declare a dependency on those. I considered using a composite build but then I can't share dependencies or convention plugins between the components. We aren't a huge team, so it wouldn't be the end of the world, but if I can come up with a better solution then that would be ... better!
Thanks a lot,
MorganKshitij Patil
12/08/2021, 6:31 PMjava.lang.reflect.*
package in a Kotlin/Java library? I am able to access this package in the main "android-application" module but some isn't working in my Java-Library module. I have added the following dependencies in this library module
kotlin-stdlib
com.google.code.findbugs
moshi
, retrofit
, moshi-kotlin-codegen
ursus
12/15/2021, 2:47 PMAyfri
12/15/2021, 3:07 PMrocketraman
01/13/2022, 12:16 AMCreateStartScripts
for a target in the JVM part of a multiplatform project. The usual setting classpath via tasks.getByName("jar").outputs.files + configurations.getByName("runtimeClasspath")
does not work. Anyone know the right values?
I've tried
classpath = tasks.getByName("jar").outputs.files +
tasks.getByName("jvmJar").outputs.files +
configurations.getByName("jvmRuntimeClasspath")
but it doesn't work. The script doesn't have the right classpath. Its missing the jar that is output in build/libs
and it also seems to be missing some core stuff like "coroutines" that is defined in common.
SOLVED, seems to work:
val backendJar by tasks.existing
val backendRuntimeClasspath by configurations.existing
classpath = files(backendJar, backendRuntimeClasspath)
See also https://youtrack.jetbrains.com/issue/KT-50227dave08
01/16/2022, 4:06 PMCarter
01/17/2022, 6:14 PMleandro
01/17/2022, 6:18 PMCarter
01/17/2022, 6:23 PMCarter
01/17/2022, 6:23 PMwolf
01/18/2022, 9:50 AMBig Chungus
01/26/2022, 2:50 PM