tigase / halcyon

Kotlin Multiplatform XMPP client library
GNU Affero General Public License v3.0
58 stars 9 forks source link

Gradle integration #17

Closed junkeritechnepal closed 3 months ago

junkeritechnepal commented 3 months ago

I had previously issue but resolved later, I was missing maven("..../release") like below

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
    kotlin("jvm") version "1.3.61"
    application
}

group = "org.example"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
    maven("https://maven-repo.tigase.org/repository/release/")

}

dependencies {
    implementation(kotlin("stdlib-jdk8"))

    implementation("tigase:jaxmpp-core:3.3.0")
    implementation("tigase.halcyon:halcyon-core-jvm:1.0.0")

    testImplementation(kotlin("test"))
    implementation(kotlin("stdlib-jdk8"))

}

tasks.test {
    useJUnitPlatform()
}

tasks.withType<KotlinCompile> {
    kotlinOptions.jvmTarget = "1.8"
}

application {
    mainClass.set("MainKt")
}

val compileKotlin: KotlinCompile by tasks

compileKotlin.kotlinOptions {
    jvmTarget = "1.8"
}
woj-tek commented 3 months ago

hi,

NOTE: Tigase Halcyon has new home at tigase.dev/tigase/_libraries/halcyon - please submit all issues/pull-requests there!


Regarding your question - we do have our own maven repository: https://maven-repo.tigase.org/#artifact/tigase.halcyon/halcyon-core-jvm/1.0.1-SNAPSHOT