Add build and publish the jar libra

This commit is contained in:
Sambo Chea 2020-08-27 10:19:50 +07:00
parent 32441f7de6
commit a8841a537d
2 changed files with 26 additions and 0 deletions

View File

@ -1,5 +1,7 @@
plugins { plugins {
kotlin("jvm") version "1.4.0" kotlin("jvm") version "1.4.0"
`java-library`
id("de.marcphilipp.nexus-publish") version "0.4.0"
} }
group = "com.cubetiqs.libra" group = "com.cubetiqs.libra"
@ -13,3 +15,22 @@ dependencies {
implementation(kotlin("stdlib")) implementation(kotlin("stdlib"))
testImplementation("org.junit.vintage:junit-vintage-engine:5.6.2") testImplementation("org.junit.vintage:junit-vintage-engine:5.6.2")
} }
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
}
nexusPublishing {
repositories {
create("mavenJava") {
nexusUrl.set(uri("https://nexus.osa.cubetiqs.com/repository/local-maven-dev/"))
snapshotRepositoryUrl.set(uri("https://nexus.osa.cubetiqs.com/repository/local-maven-dev/"))
username.set("cubetiq")
password.set("cube17tiq")
}
}
}

View File

@ -0,0 +1,5 @@
package com.cubetiqs.libra.moneyutils
interface MoneyExchangeAdapter {
fun getRate(currency: String): Double
}