-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Maven publish config * Maven publish config * Test: maven release action * Disable sign * Try remove string quotes * Try fix gpg sign * deploy all packages * Rename package from `ork.ksmt` to `io.ksmt` * Enable maven deploy * Add javadoc * try give more memory for dokka * Update release workflow * Update docs and examples * Upgrade version to 0.5.2
- Loading branch information
Showing
256 changed files
with
4,345 additions
and
4,260 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
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 |
---|---|---|
@@ -1,15 +1,61 @@ | ||
import gradle.kotlin.dsl.accessors._87b80c14bf1c4d505c7a71d7741e0994.signing | ||
import org.gradle.api.Project | ||
import org.gradle.api.component.AdhocComponentWithVariants | ||
import org.gradle.api.component.SoftwareComponent | ||
import org.gradle.api.publish.maven.MavenPublication | ||
import org.gradle.kotlin.dsl.get | ||
|
||
fun Project.removeTestFixtures(softwareComponent: SoftwareComponent) { | ||
with(softwareComponent as AdhocComponentWithVariants) { | ||
withVariantsFromConfiguration(configurations["testFixturesApiElements"]) { | ||
skip() | ||
fun MavenPublication.addKsmtPom() { | ||
pom { | ||
packaging = "jar" | ||
name.set("io.ksmt") | ||
description.set("Kotlin API for various SMT solvers") | ||
url.set("https://www.ksmt.io/") | ||
|
||
licenses { | ||
license { | ||
name.set("The Apache License, Version 2.0") | ||
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") | ||
} | ||
} | ||
|
||
issueManagement { | ||
url.set("https://github.com/UnitTestBot/ksmt/issues") | ||
} | ||
|
||
scm { | ||
connection.set("scm:git:https://github.com/UnitTestBot/ksmt.git") | ||
developerConnection.set("scm:git:https://github.com/UnitTestBot/ksmt.git") | ||
url.set("https://github.com/UnitTestBot/ksmt") | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("saloed") | ||
name.set("Valentyn Sobol") | ||
email.set("vo.sobol@mail.ru") | ||
} | ||
|
||
developer { | ||
id.set("CaelmBleidd") | ||
name.set("Alexey Menshutin") | ||
email.set("alex.menshutin99@gmail.com") | ||
} | ||
} | ||
withVariantsFromConfiguration(configurations["testFixturesRuntimeElements"]) { | ||
skip() | ||
} | ||
} | ||
|
||
fun MavenPublication.signKsmtPublication(project: Project) = with(project) { | ||
signing { | ||
val gpgKey = project.stringProperty("mavenSignGpgKey")?.removeSurrounding("\"") | ||
val gpgPassword = project.stringProperty("mavenSignGpgPassword") | ||
|
||
if (gpgKey != null && gpgPassword != null) { | ||
useInMemoryPgpKeys(gpgKey, gpgPassword) | ||
sign(this@signKsmtPublication) | ||
} | ||
} | ||
} | ||
|
||
fun MavenPublication.addSourcesAndJavadoc(project: Project) { | ||
artifact(project.tasks["kotlinSourcesJar"]) | ||
artifact(project.tasks["dokkaJavadocJar"]) | ||
} |
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
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
Oops, something went wrong.