返回首页
We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [gradle-kotlin-dsl]

Kotlin language support for Gradle build scripts.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

gradle recipe/archetype/generators for multi-modules kotlin nodejs backend and reactjs frontend

I'm missing or looking for is something similar to a maven archetype or a yoeman generator. I need a starter project with best practices with the basic plumbing and scaffolding in place which i can ...
1
vote
1answer
16 views

TaskGraph.useFilter alternates for kotlin dsl

Im looking for an alternative to this line of code from gradle and im looking for its counter part in kotlin dsl can anyone shed some light on this as it is blocking builds for me and am at a loss as ...
0
votes
1answer
17 views

How do you upload an expansion file to a Draft Apk using Google Play Developer API Client Library for Java?

My current workflow is I publish my apks (4 splits by abi) to alpha in draft. This works fine because I am using Gradle Play Publisher. The next step is I upload the expansion file, this is a custom ...
2
votes
1answer
18 views

Gradle pre-compiled script plugin fails with `expression … cannot be invoked as a function` for first block

I have the following pre-compiled script plugin, which applies a Gradle core plugin and an external plugin (via id(...)): // buildSrc/main/kotlin/my-template.gradle.kts: import org.gradle.api....
2
votes
0answers
32 views

How to define Gradle project properties with Kotlin DSL

I'd like to check if two project properties are set and if not, set them to empty values in order to avoid a build failure. These properties are supposed come from ~/.gradle/gradle.properties (if ...
0
votes
0answers
42 views

Is it possible to generate Q classes by gradle (Kotlin-DSL) for Kotlin MongoDB Documents?

I have a project with Maven, Kotlin, QueryDSL, Spring Boot and MongoDB. It works quite well but I thought that migrating to Gradle could speed up building it. Everything was good before I began moving ...
0
votes
1answer
21 views

How to force Gradle process carriage return (\r) properly?

I have simple code and three different outputs. How to force IDEA and/or Gradle to process carriage return properly ? for(int i = 0; i < 5; i++) { System.out.format("%2d\r", i); ...
0
votes
1answer
39 views

How to add a dependency to build.gradle.kts for kotlin-multiplatform (kotlin 1.3.50)?

I started a new project with kotlin-multiplatform to create a library usable on iOS and Android using this tutorial : http://play.kotlinlang.org/hands-on/Targeting%20iOS%20and%20Android%20with%...
0
votes
0answers
25 views

Getting newly published package from JitPack fails

I'm trying to publish my java library to JitPack using the maven-publish plugin in Gradle. I have done all that the docs have said, and JitPack says publishing was a success, but it seems like I ...
0
votes
0answers
36 views

Android Development checklist

I just learnt Kotlin and a little bit of Java which I am improving on by the day. I want to start dabbing my hands on building an Android Application until I attended an event today here in Nigeria ...
0
votes
0answers
16 views

Configure plugin in separate file using Kotlin DSL

to differenciate diferent plugins configurations, I use separate files. For example: ./build.gradle.kts ./detekt.gradle.kts ./settings.gradle.kts ./module1 ./module2 ... In the root ...
0
votes
1answer
126 views

Using Android library in Kotlin multiplatform library

I have three targets commonMain/androidMain/iOSMain respectively. Because I need to access the assets in Android devices in androidMain module. I found I cannot use the Android API... The following is ...
0
votes
0answers
20 views

Using build.gradle.kts to add file to .framework when build iOS framework

I am using Kotlin multiplatform, and I'd like to know is it possible to put some files to .framwork when build for iOS. Following is part of my build.gradle.kts file: val packForXcode by tasks....
0
votes
0answers
12 views

w: warning: The following options were not recognized by any processor: '[moshi.generated, kapt.kotlin.generated]'

I can't recognize this Error: w: warning: The following options were not recognized by any processor: '[moshi.generated, kapt.kotlin.generated]' This is bulid.gradle file kapt { useBuildCache = ...
0
votes
0answers
10 views

Gradle not recognizing springboot buildInfo plugin

I am trying to add the springboot buildInfo plugin to my build.gradle.kts so I can generate the build-info.properties file and expose the build info (i.e. app version) via the /actuator/info endpoint. ...
0
votes
0answers
30 views

Kotlin Gradle DSL with buildSrc compilation error

I try a test project with migrating from Gradle Groovy DSL to Kotlin DSL. I stucked at using buildSrc. I have kotlin file Dependencies.kt inside buildSrc. When using value to set classpath of app ...
0
votes
0answers
12 views

Cannot access 'delegate': it is invisible (private in a supertype) in 'Build_gradle'

Android Studio 3.5 build.gradle: buildTypes { release { } debug { configBuildType(delegate, DEBUG_APP_NAME, DEBUG_APP_ID_SUFFIX, DEBUG_API_BASE_URL) } } def configBuildType(buildType, ...
-1
votes
1answer
22 views

How convert custom Groovy task to custom Kotlin task?

Android Studio 3.5 In app/build.gradle : buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules....
0
votes
0answers
10 views

build.gradle.kts -> Unresloved reference extra

In my project Android project in build.gradle.kts I want to declare extra property like this: build.gradle.kts buildscript { exta.set("kotlinVersion", "1.2.40") repositories { google(...
0
votes
1answer
38 views

Not able download dependencies in build.gradle.kts file using intellij

I am doing a Spring Boot Kotlin Project. Here is my build.gradle.kts file. import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id("org.springframework.boot") version "2.1.8.RELEASE" ...
0
votes
0answers
18 views

gradle always use repo.maven.apache.org even if i point custom repositories

From my network i can't access http://repo.maven.apache.org/maven2 repository, so i have to point proxy like http://nexus.companyproxy.com:8099/nexus/content/groups/public My configuration contains ...
0
votes
0answers
17 views

Access third party Plugin class in custom Plugin gradle-kotlin-dsl

I'm writing a custom gradle plugin class in kotlin-dsl I'm facing a problem that I cannot access class from third party plugin within the custom plugin function. I have tried to make a TestPlugin.kt ...
0
votes
1answer
33 views

How do I create an Eclipse project using the Gradle Kotlin DSL?

How can I get the same result from Eclipse as I would from the console with gradle init --type java-application --test-framework testng --dsl kotlin? I'm seeing the wizard: but no gradle-kotlin-dsl ...
2
votes
1answer
34 views

Gradle wrapper fails to find javafx on build, built-in gradle works okay on build

The issue is that executing gradle commands via the wrapper will cause the compileKotlin step to fail with different mentions that it is unable to find javafx-related classes/packages. I'm setting up ...
0
votes
1answer
34 views

Where to put credentials in gradle

Where can I put my credentials in gradle without making them public? I would like to know some best pratics, and to understand well the difference between inserting them in gradle.properties or as ...
2
votes
3answers
136 views

How to consolidate imported plugins to custom plugin in Gradle using Kotlin

I have microservices that will share some of the same configuration between all of them, mainly Jib, publish, and release. Not sure if it's possible to do the same for dependencies but it would be ...
0
votes
0answers
25 views

how to get Eclipse to correctly open a gradle project?

Both Kotlin and Gradle installed fine through the marketplace: And I've right clicked the project "refresh dependencies" from the Gradle context menu: what else can I do to get Eclipse to load this ...
0
votes
0answers
91 views

how to correct red “import” error messages from Eclipse?

I created a project using gradle init --type java-application --test-framework testng --dsl kotlin but Eclipse shows: For what it's worth, this runs fine: thufir@dur:~/eclipse-workspace/baseX$ ...
0
votes
0answers
28 views

gradle kotlin-dsl move android {} into subproject {} in root project build.gradle.kts

I'm trying to move android {} (individual module) into subprojects {} (root project build.gradle.kts) (to avoid duplicate of same android {} in every module) I was able to move when using gradle ...
0
votes
0answers
96 views

Gradle Configuration for Kotlin Multiplatform Project in Java and Js

Seems all ok! But... I have created a Kotlin Multiplatform Project in Js and Java. I worked on create the right tests for all target and the right configuration for the build. Seems all go right, i ...
1
vote
0answers
43 views

Jitpack builds successfuly, but jars are empty for every module

In recent release of our library we decided to add some kotlin-dsl features to our build, though for now we've added buildSrc build.gradle.kts and Dependencies.kts file containing libraries versions ...
1
vote
1answer
89 views

How to Make Kotlin Gradle Plugin not Manage Version

When I use Kotlin Gradle Plugin and consume Kotlin BOM at the same time it seems that the plugin version takes in priority for kotlin-stdlib, how do I make the plugin not manage my dependency? ...
0
votes
1answer
37 views

Publish java library with custom primary artifact

I m trying to create a java library with custom primary artifact.. I followed this documentation, but the problem is when i run the "publish" task, i get this error. Could not determine the ...
1
vote
0answers
46 views

Create java library with dependecies

How to create a java library with its dependencies file, to be used in other java projects? My current library gradle is : import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { ...
1
vote
1answer
37 views

Publishing Library using Kotlin DSL

I want to publish an Android library using Kotlin DSL. I got some errors val sourcesJar by tasks.registering(Jar::class) { archiveClassifier.set("sources") from(sourceSets.getByName("main")....
1
vote
0answers
41 views

How to set unit test jvmargs using gradle kotlin dsl

I'm trying to set jvmargs for unit tests using kotlin-dsl and I can't get it to work. This is so that I can add the "-noverify" argument and allow intellji test runner to collect code coverage info. ...
0
votes
0answers
9 views

How to use the kotlin gradle DSL with google app engine plugin

I am following this tutorial http://github.com/GoogleCloudPlatform/gradle-appengine-plugin. It says to import a dependency using dependencies { appengineSdk 'com.google.appengine:appengine-java-...
0
votes
1answer
83 views

Protobuf configuration Intellij Idea Plugin Gradle-kotlin-dsl kotlin

Hey I would like to set up protobuf in intellij idea plugin as a client for other protobuf server (written in golang). That will be my first java approach to grpc. I tried to use kotlin classess ...
1
vote
1answer
61 views

How to add a resValue from the environment in Gradle Kotlin DSL?

I am trying to add a resource value from the environment on my machine via resValue using the Gradle Kotlin DSL. My issue is that the desired variable, BearerToken is unresolved. The value is stored ...
1
vote
0answers
31 views

Cannot find implementation for Room Database using Kotlin Gradle DSL

I am having difficulty adding the Jetpack Room library to my Gradle Kotlin DSL project. I've modified the Room implementations steps from the Room documentation, and run into this error: java.lang....
5
votes
0answers
52 views

Gradle does not execute any tests on commandline

My Gradle project is using KotlinDSL and JUnit5 / Jupiter (and Kotlin as a programming language), Gradle does not seem to pick up any of my tests properly. When I run Gradle test on the command line, ...
0
votes
0answers
41 views

How to configure kotlin test output in kotlin gradle DSL?

I have let gradle generate a gradle app for me (gradle init --type=kotlin-application). It users kotlin-test (org.jetbrains.kotlin:kotlin-test) as test framework. However, when I invoke "./gradlew ...
0
votes
2answers
72 views

how to break from lambda passed to recursive function when provided condition met

I am writing a custom loop dsl and I want it's usage to look like below var counter1 = 0 var counter2 = 0 loop { counter1 += 1 println(counter1) stopIf(...
0
votes
1answer
60 views

ClassNotFoundException exception when using library

I created a common library to use it in my spring microservices. In this library I used some other libraries (example: libphonenumber). I created the jar file and imported it into another project, and ...
0
votes
0answers
42 views

Problems to importing libraries with android and Shared Library of native Kotlin

I'm just testing this option to create Shared Library with native Kotlin. I configured all android studio project as tutorial says and I want try to create Log class to print my shared library errors ...
0
votes
1answer
24 views

Gradle plugin configuration in kotlin script

I'm trying to configure Kotlin net.researchgate.release plugin. I have following setup (kts script): plugins { ... id("net.researchgate.release") version "2.8.1" } In the same script I'm ...
0
votes
1answer
26 views

Importing members from multiple classes in single function to build kotlin dsl

I have a special use case to provide dsl to our library consumer. I want to expose single function and inside that function, I want all the required utilities are imported. Because of some ...
1
vote
1answer
53 views

How do I split up the settings.kts file for TeamCity's Kotlin Configuration?

I have a TeamCity settings.kts file where it consists of the Root Project and hence all subsequent sub project. Currently, it's one big massive file and I am trying to split up the KTS file based on ...
0
votes
0answers
37 views

how to configure build.gradle.kts to fix error “Duplicate JVM class name generated from: package-fragment”

I'm trying to follow this tutorial http://dev.to/tagmg/step-by-step-guide-to-building-web-api-with-kotlin-and-dropwizard and am instead writing my gradle.build file in Kotlin's DSL and am finding ...
1
vote
1answer
135 views

build.gradle.kts & multi-module-project: how to add other project so that transitive dependencies are available too

Having the following multi-module-setup: multi ├── projA │ └── build.gradle.kts ├── projB │ └── build.gradle.kts ├── build.gradle.kts └── settings.gradle.kts with the following content (...

返回首页
杏彩计划 杏彩官网 杏彩APP 杏彩走势图 杏彩下载 杏彩官方 杏彩网站 杏彩怎么玩 杏彩官方 杏彩靠谱吗 杏彩代理 杏彩骗局 杏彩投注 杏彩倍率 杏彩开奖 杏彩漏洞