Quick and Easy Gradle setup (#89)
Open
Junkeri tech nepal opened 3 months ago

Looks like the maven repo is located at https://maven-repo.tigase.org/repository/release, I was struggling to integrate the library in kotlin based gradle project, after adding maven("https://maven-repo.tigase.org/repository/release/") resolved my issues

For more detail visit https://github.com/tigase/halcyon

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"
}
wojciech.kapcia@tigase.net commented 3 months ago

Is this a question? Or more like a guide? If it's intention is to server as a guide then I welcome you to enhance Halcyon documentation: https://tigase.dev/tigase/_libraries/halcyon/~files/master/docs/src/restructured by creating a pull-request :-)

issue 1 of 1
Type
Usuability
Priority
Normal
Assignee
Version
none
Sprints
n/a
Customer
n/a
Issue Votes (0)
Watchers (4)
Reference
tigase/_libraries/halcyon#89
Please wait...
Page is in error, reload to recover