-
Notifications
You must be signed in to change notification settings - Fork 20
How to configure Android Studio to use .teamcity code files in project? #8
Comments
I am not familiar with what you are doing specifically but I manage a non-trivial amount of TeamCity Kotlin config. The lack of doc is frustrating and make using the DSL much harder than it needs to be. Here a couple hints that might help.
Hope that helps. |
@timdaman I also agree with your opinion of struggling with simple task as this is not relevant to other CI clients (such as Github CI, Jenkins or Gitlab CI).
|
I am short on time so I am not going to write a detailed answer right now. You issue with adding the Maven project is probably related to the To initially create a project it is best to download a empty one from the TeamCity server in question. There are a couple reasons.
|
@timdaman Hello, I've just tried to open an alone Maybe you can describe me the exact steps how can I run the code in IntelliJ? |
@timdaman I've also created some video which shows (perhaps in more details) the problem that I am encountering: https://www.youtube.com/watch?v=t4AboFhtb60&t=3s |
I am trying to setup a TeamCity project configuration using Kotlin DSL. I've created a sample project in TeamCity pointing to just an empty Android Studio project with empty Activity which I 've published in the github. I've enabled Kotlin DSL configuration on the TeamCity for that project.
After that TeamCity has commited a
.teamcity
folder to my Android Studio project. However, when I am inspecting the code insettings.kts
the IDE is not giving me any hints and I cannot use the autocompletion for the Kotlin DSL configuration code.For example I cannot navigate to implementation of function
triggers
, cannot use autocompletion etc.I was trying to follow https://blog.jetbrains.com/teamcity/2019/03/configuration-as-code-part-1-getting-started-with-kotlin-dsl/#commento-login-box-container but unfortunately I cannot right-click on the
pom.xml
file and don't see any option toAdd as Maven
.In addition I cannot see any External Libraries added to my project related to TeamCity DSL
I am using Android Studio 4.0
Is it possible to use such configuration in my case?
If so, can you please help me how I should properly setup it in Android Studio to have such benefits in Android Studio?
Android Studio project uses Gradle by default
The text was updated successfully, but these errors were encountered: