Kotlin DSL + gradle

Answered

Recently I've started using the Kotlin DSL from a gradle project and have run into a couple of problems integrating it nicely into things.  Rather than raising bugs for these right off I thought I'd mention them here first

1. The org.jetbrains.teamcity:configs-dsl-kotlin-plugins:SNAPSHOT:pom dependency - "SNAPSHOT" is not recognised as a snapshot dependency by Gradle (they look for "-SNAPSHOT") - is there any reason this needs to be "SNAPSHOT" instead of "1.0-SNAPSHOT" (which is the dependency version for all the dependencies inside the pom anyway)?

2. The pom.xml file doesn't appear to be used by TeamCity - I changed the source root since gradle + IDEA wouldn't let me have the project root directory as a source root (and also since having the project root dir as source root just feels wrong).  I assume this means I can just get rid of pom.xml then?

 

0
2 comments

I think nothing prevents us from using 1.0-SNAPSHOT for configs-dsl-kotlin-plugins, I've filed an issue for that: https://youtrack.jetbrains.com/issue/TW-48030. Pom.xml is used to deliver all dependencies into IDE, TeamCity server indeed doesn't use it. If you retrieve dependencies using Gradle, then it is safe to delete the pom.xml.

0
Avatar
Permanently deleted user

Thanks!

0

Please sign in to leave a comment.