Skip to content

Commit

Permalink
Build, CI: change maven groupID (#14)
Browse files Browse the repository at this point in the history
* chore: change maven groupID for finschia, remove publish task from tx
  • Loading branch information
jaeseung-bae authored Apr 27, 2023
1 parent 990be2f commit c807a53
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 80 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Security

### Build, CI
* [\#14](https://github.com/Finschia/finschia-kt/pull/14) change groupID for maven publish. remove tx module from maven publish.

### Document Updates

Expand Down
2 changes: 1 addition & 1 deletion crypto/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ tasks.javadoc {

publishing {
// Maven artifact
val groupIdVal = "io.github.finschia"
val groupIdVal = "network.finschia"
val artifactIdVal = "finschia-kt-crypto"
val versionVal: String? = System.getProperty("VERSION")

Expand Down
79 changes: 0 additions & 79 deletions tx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,82 +14,3 @@ dependencies {
implementation("org.bitcoinj:bitcoinj-core:$bitcoinjVersion")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinxVersion")
}

java {
withJavadocJar()
withSourcesJar()
}

tasks.javadoc {
if (JavaVersion.current().isJava9Compatible) {
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
}
}
publishing {
// Maven artifact
val groupIdVal = "io.github.finschia"
val artifactIdVal = "finschia-kt-tx"
val versionVal: String? = System.getProperty("VERSION")

// Maven pom info
val pomName = "finschia"
val pomDesc = artifactIdVal
val pomUrl = "https://github.com/Finschia/finschia-kt"
val pomScmConnection = "scm:git:git://github.com/Finschia/finschia-kt.git"
val pomDeveloperConnection = "scm:git:ssh://github.com/Finschia/finschia-kt.git"
val pomScmUrl = "https://github.com/Finschia/finschia-kt"

// Maven account
val ossrhUserName = System.getenv("OSSRH_USERNAME")
val ossrhPassword = System.getenv("OSSRH_PW")

publications {
create<MavenPublication>("mavenJava") {
groupId = groupIdVal
artifactId = artifactIdVal
version = versionVal?.substring(1) // without v

from(components["java"])
pom {
name.set(pomName)
description.set(pomDesc)
url.set(pomUrl)
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("dev")
name.set("dev")
email.set("[email protected]")
}
}
scm {
connection.set(pomScmConnection)
developerConnection.set(pomDeveloperConnection)
url.set(pomScmUrl)
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = uri("https://s01.oss.sonatype.org/content/repositories/releases/")
credentials {
username = ossrhUserName
password = ossrhPassword
}
}
}
}

signing {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
sign(publishing.publications["mavenJava"])
}

0 comments on commit c807a53

Please sign in to comment.