https://kotlinlang.org logo
j

Joachim Ansorg

11/13/2019, 6:34 PM
which repository provides
io.arrow-kt:arrow-meta-compiler-plugin:1.3.70-SNAPSHOT
? I'm trying to setup a simple project using arrow-meta by using https://plugins.gradle.org/plugin/io.arrow-kt.arrow, the gradle plugin requires the dependency above
r

raulraja

11/13/2019, 6:35 PM
@Rachel ^^^
j

Joachim Ansorg

11/13/2019, 6:46 PM
alternatively, is there something like https://github.com/arrow-kt/arrow/blob/rr-meta-prototype-integration/modules/meta/arrow-meta-test/build.gradle for the current version of arrow-meta? The module above isn't in the new
arrow-meta
repository, it was part of
rr-meta-prototype-integration
s

simon.vergauwen

11/13/2019, 7:01 PM
No, that is something I setup at the time to test locally and has been removed since then.
It’s very easy to setup. I can set it up again, it was a very convenient way of testing plugins but I don’t think it works for IDE plugins that way only compiler plugins.
☝🏽 1
r

Rachel

11/14/2019, 8:51 AM
Hi @Joachim Ansorg!!
io.arrow-kt:arrow-meta-compiler-plugin:1.3.70-SNAPSHOT
is provided by OSS: https://oss.jfrog.org/artifactory/oss-snapshot-local/io/arrow-kt/arrow-meta-compiler-plugin/1.3.70-SNAPSHOT/
So URL repository:
<https://oss.jfrog.org/artifactory/oss-snapshot-local/>
j

Joachim Ansorg

11/14/2019, 8:53 AM
thank you, @Rachel. I'll try that
👍 1
r

Rachel

11/14/2019, 8:54 AM
As that dependency is in OSS, we cannot still follow the guidelines here: https://plugins.gradle.org/plugin/io.arrow-kt.arrow
It's necessary to add that additional repository
I'm going to document it 👍
j

Joachim Ansorg

11/14/2019, 9:13 AM
thanks, that helped! I'll post the new build troubles in the channel
👍 1
i

Imran/Malic

12/02/2019, 1:06 PM
Did you add mavenCentral too ?
j

Joachim Ansorg

12/02/2019, 1:07 PM
I have
Copy code
repositories {
  mavenCentral()
  maven { url "<https://oss.jfrog.org/artifactory/oss-snapshot-local/>" }
}
i

Imran/Malic

12/02/2019, 1:10 PM
That’s weird.
r

Rachel

12/02/2019, 1:25 PM
Hi @Joachim Ansorg!
Is that repositories section inside buildscript? I mean, until we have the artifact in Maven Central it's necessary to use the legacy plugin application, adding OSS repository:
Copy code
buildscript {
  repositories {
    maven {
      url "<https://plugins.gradle.org/m2/>"
    }
    maven {
      url "<https://oss.jfrog.org/artifactory/oss-snapshot-local>"
    }
  }
  dependencies {
    classpath "io.arrow-kt:gradle-plugin:1.3.60-15-10c37f9"
  }
}

apply plugin: "io.arrow-kt.arrow"`
Please, check what I wrote because I'm using the mobile phone and maybe I made some mistake when writing it
Just copy the guideline from Gradle Plugin Portal and add OSS repository
j

Joachim Ansorg

12/02/2019, 1:34 PM
Thanks! I got this to work here. I misread the error message after updating the version of the gradle plugin. I had "kotlinVersion=1.3.50" which referenced dependencies with broken dependency, I think. The error was this (now solved with `kotlinVersion = 1.3.60'):
Copy code
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.60-eap-143.
     Required by:
         project : > org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.3.50
         project : > org.jetbrains.kotlin.kapt:org.jetbrains.kotlin.kapt.gradle.plugin:1.3.50
      > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.60-eap-143.
         > Could not get resource '<https://oss.jfrog.org/artifactory/oss-snapshot-local/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.60-eap-143/kotlin-gradle-plugin-1.3.60-eap-143.pom>'.
            > Could not HEAD '<https://oss.jfrog.org/artifactory/oss-snapshot-local/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.60-eap-143/kotlin-gradle-plugin-1.3.60-eap-143.pom>'. Re
i

Imran/Malic

12/02/2019, 6:31 PM
Yes,
Arrow-Meta
will always target the latest Kotlin version
Same goes for the Ide regarding IntelliJ
3 Views