how do I say `maven { url "<https://oss.sonatype.o...
# gradle
h
how do I say
maven { url "<https://oss.sonatype.org/content/repositories/snapshots/>" }
in kts ?
b
maven { url = uri("...") }
g
Starting from Gradle 4.2 just
maven("url")
👍 1
h
thx, I think I am still on an old gradle version where this does not work.. Will try updating this first
g
4.2 not released yet, rc2 available tho
b
@gildor IntelliJ IDEA 2017.3 EAP (Build #IU-173.2290.1) marks
maven("url")
as bad code. In the console everything works normally... personally I prefer to write a code so that it and in the latest version of IDE worked without red marks
h
hm I updated my gradle-wrapper.properties to use 4.2 rc2 but he still only offers
Action
or
Closure
as arguments for
maven()
no wait
autocomplete offers the right thing but Editor marks it as an error
thats what Victor said I guess
b
yes
h
so this is an IntelliJ issue?
g
@BorzdeG this function is part of kotlin-dsl and kotlin-dsl is a part of Gradle and should work with 2017.2 and 2017.3, it's just a Kotlin code
@hkokocin update properties is not enough, try to clean IDE cache
h
k, thx
g
Anyway, if it still doesn't work maybe make sense to create kotlin-dsl issue
b
Everything works - clean cache of IDEA and executed Gradle refresh for the project
👍 2
h
looks fine for me as well now!