Add build and publish the jar libra
This commit is contained in:
parent
32441f7de6
commit
a8841a537d
@ -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")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
package com.cubetiqs.libra.moneyutils
|
||||||
|
|
||||||
|
interface MoneyExchangeAdapter {
|
||||||
|
fun getRate(currency: String): Double
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user