-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55ec56f
commit b7c5245
Showing
1 changed file
with
37 additions
and
23 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 |
---|---|---|
|
@@ -4,31 +4,45 @@ plugins { | |
`maven-publish` | ||
} | ||
|
||
publishing.publications.register(project.name, MavenPublication::class) { | ||
artifactId = "javacan-${project.name}" | ||
from(components["java"]) | ||
java { | ||
withSourcesJar() | ||
withJavadocJar() | ||
} | ||
|
||
pom { | ||
name = "JavaCAN" | ||
description = project.description | ||
url = "https://github.com/pschichtel/JavaCAN" | ||
licenses { | ||
license { | ||
name = "MIT" | ||
url = "https://opensource.org/licenses/MIT" | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("pschichtel") | ||
name.set("Phillip Schichtel") | ||
email.set("[email protected]") | ||
publishing { | ||
publications { | ||
register<MavenPublication>("maven") { | ||
artifactId = "javacan-${project.name}" | ||
from(components["java"]) | ||
|
||
pom { | ||
name = "JavaCAN" | ||
description = project.description | ||
url = "https://github.com/pschichtel/JavaCAN" | ||
licenses { | ||
license { | ||
name = "MIT" | ||
url = "https://opensource.org/licenses/MIT" | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("pschichtel") | ||
name.set("Phillip Schichtel") | ||
email.set("[email protected]") | ||
} | ||
} | ||
scm { | ||
url.set("https://github.com/pschichtel/JavaCAN") | ||
connection.set("scm:git:https://github.com/pschichtel/JavaCAN") | ||
developerConnection.set("scm:git:[email protected]:pschichtel/JavaCAN") | ||
} | ||
} | ||
} | ||
scm { | ||
url.set("https://github.com/pschichtel/JavaCAN") | ||
connection.set("scm:git:https://github.com/pschichtel/JavaCAN") | ||
developerConnection.set("scm:git:[email protected]:pschichtel/JavaCAN") | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
useGpgCmd() | ||
sign(publishing.publications) | ||
} |