-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build, CI: change maven groupID (#14)
* chore: change maven groupID for finschia, remove publish task from tx
- Loading branch information
1 parent
990be2f
commit c807a53
Showing
3 changed files
with
2 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"]) | ||
} |