-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make template create Pattern2M cases
- Loading branch information
1 parent
deadb49
commit f2f5227
Showing
13 changed files
with
637 additions
and
466 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ plugins { | |
kotlin("jvm") | ||
`java-library` | ||
`maven-publish` | ||
`signing` | ||
id("io.github.gradle-nexus.publish-plugin") version "1.1.0" | ||
id("org.jetbrains.dokka") version "1.8.10" | ||
id("signing") | ||
} | ||
|
||
nexusPublishing { | ||
|
@@ -110,46 +110,42 @@ subprojects { | |
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("mavenJava") { | ||
from(components["kotlin"]) | ||
artifactId = varintName | ||
|
||
artifact(tasks["javadocJar"]) | ||
artifact(tasks["sourcesJar"]) | ||
|
||
pom { | ||
name.set("decomat") | ||
description.set("DecoMat - Deconstructive Pattern Matching for Kotlin") | ||
url.set("https://github.com/exoquery/decomat") | ||
|
||
licenses { | ||
license { | ||
name.set("The Apache Software License, Version 2.0") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
distribution.set("repo") | ||
} | ||
publications.withType<MavenPublication> { | ||
pom { | ||
name.set("decomat") | ||
description.set("DecoMat - Deconstructive Pattern Matching for Kotlin") | ||
url.set("https://github.com/deusaquilus/pprint-kotlin") | ||
|
||
licenses { | ||
license { | ||
name.set("The Apache Software License, Version 2.0") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
distribution.set("repo") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
name.set("Alexander Ioffe") | ||
email.set("[email protected]") | ||
organization.set("github") | ||
organizationUrl.set("http://www.github.com") | ||
} | ||
developers { | ||
developer { | ||
name.set("Alexander Ioffe") | ||
email.set("[email protected]") | ||
organization.set("github") | ||
organizationUrl.set("http://www.github.com") | ||
} | ||
} | ||
|
||
scm { | ||
url.set("https://github.com/exoquery/decomat/tree/main") | ||
connection.set("scm:git:git://github.com/ExoQuery/DecoMat.git") | ||
developerConnection.set("scm:git:ssh://github.com:ExoQuery/DecoMat.git") | ||
} | ||
scm { | ||
url.set("https://github.com/exoquery/decomat/tree/main") | ||
connection.set("scm:git:git://github.com/ExoQuery/DecoMat.git") | ||
developerConnection.set("scm:git:ssh://github.com:ExoQuery/DecoMat.git") | ||
} | ||
} | ||
} | ||
} | ||
|
||
tasks.withType<Sign> { | ||
onlyIf { !project.hasProperty("nosign") } | ||
} | ||
|
||
// Check the 'skipSigning' project property | ||
if (!project.hasProperty("nosign")) { | ||
// If 'skipSigning' is not present, apply the signing plugin and configure it | ||
|
@@ -158,7 +154,7 @@ subprojects { | |
signing { | ||
// use the properties passed as command line args | ||
// -Psigning.keyId=${{secrets.SIGNING_KEY_ID}} -Psigning.password=${{secrets.SIGNING_PASSWORD}} -Psigning.secretKeyRingFile=$(echo ~/.gradle/secring.gpg) | ||
sign(publishing.publications["mavenJava"]) | ||
sign(publishing.publications) | ||
} | ||
} | ||
} |
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
Oops, something went wrong.